We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [attiny]

An 8-bit, low power AVR microcontroller from Atmel.

Filter by
Sorted by
Tagged with
0
votes
1answer
6k views

How do i properly read an analog pin on attiny85?

Anyone ever run into a problem with your attiny not reading your analog pins correctly? (-1023 or 1023 or 0 value) How did you resolve the issue? Here's what my code looks like now : 4th revision ...
0
votes
1answer
500 views

IR not working on Attiny85

After countless attemps on making this thing work i'm not sure what the hell is going on. First of all you can't use the normal IR library because Attiny85 is crap and due to timer isses it wont work. ...
1
vote
1answer
471 views

Programmed device causes issues between computer and ISP

I'm using a Digispark, which is basically an attiny85 packaged with a few other things, as an ISP to program attiny85's. The Digispark is loaded with Littlewire and recognized as an USBtinySPI device ...
0
votes
1answer
2k views

Arduino Attiny 85 IR library compiler error

I'm about to ask a question for the most common problem which everyone has with attiny85 and the IR library. I will try to make this question as simple as possible. Few things about the lib and the ...
1
vote
2answers
3k views

Arduino Uno (master) and ATTiny85 (slave) I2C connection not working

I am trying to send and receive data using I2C between an Arduino Uno and an ATTiny85. The Arduino Uno is using the Wire library. The ATTiny85 is using the TinyWire library and is programmed (and ...
2
votes
2answers
165 views

time error in controlling a clock

I have designed and 3d printed a clock. I am controlling the clock using a Arduino sketch running on a Attiny2313. The stepper motor I am using is a 12v 1:12 ratio stepper. The total number of steps ...
0
votes
1answer
1k views

Arduino on attiny85 driving 4-digit 7-segment using two 74HC595N shift register not alternating fast enough

I am using a port of the Arduino libraries on an AtTiny85 (1MHz) to drive a 4-digit 7-segment LED (common cathode, 12-pin). I'm just counting from 0 to 9 and alternating between the first two digits (...
4
votes
1answer
5k views

I²C between ATTiny85 (8MHz) and Arduino Uno

I keep receiving the following error in myATTiny85-Slave code below: sketch_mar12a.ino: In function 'void setup()': sketch_mar12a:19: error: 'class USI_TWI_S' has no member named 'onRequest' ...
9
votes
1answer
8k views

Emulating 1-wire device(s)

What I want to do is make a ATTiny IC become a slave on the 1-wire bus, with its own S/N and command list for its specific functions. What I want to know is if I can use the one wire library from ...
1
vote
2answers
362 views

Attiny85 with arduino as ISP

After serveral attempts, I can't make my arduino UNO to program an attiny85, no matter what I do. I've tried under windows 7 and also under ubuntu 14.04, to no avail. I've followed instructions on hi ...
4
votes
2answers
8k views

How to program ATTiny85 running 3.3V

I have a working project built around ATTiny85 on a breadboard running at 5V. Now I want to move this prototype on a PCB where it will be powered from batteries. All components used are capable of ...
1
vote
0answers
200 views

Arduino and ATtiny84 w/RF

I'm trying to send data from an ATtiny84 [1mhz] to Arduino Uno using a 433Mhz rf module and Manchester lib. Now I came across a weird problem, no matter what value I transmit, When I receive it on the ...
2
votes
2answers
455 views

Programming an Array of ATTiny

I am designing a board for my electronics project and i am using a number of ATTiny85 for it. The ATTiny's will be SMD so i will not be able to remove them for programming. Moreover all of the pins ...
0
votes
1answer
969 views

use shiftIn and shiftOut with attiny85

I want my Attiny85 to communicate with another attiny85. one attiny should send a message to my other attiny. When he receives the correct message he should turn one led on. Just a very simple test ...
0
votes
1answer
835 views

Does the map() function works on an ATtiny85?

I have a working project on Arduino Uno.Now I want to shrink my project using an ATtiny85. Before purchasing an waiting for the shipment to arrive, I want to make sure that my whole code will run on ...
1
vote
1answer
5k views

Read temperature (DS18B20) with the ATTiny85

I'm trying to read the temperature of a DS18B20 with my ATTiny85 - but I'm getting rubbish data :D I should have gotten ~22 degrees, but I'm getting 129! I followed this tutorial i found here, but ...
8
votes
4answers
11k views

Is SoftwareSerial left out for the ATTiny85/84?

I want to use SoftwareSerial with my ATTiny85 and when I google it several projects claim that they are using it... I downloaded the hardware from https://code.google.com/p/arduino-tiny/, but when I ...
3
votes
1answer
4k views

Attiny85 and 433Mhz RF

I have this cheap RF link that I had working with the Arduni UNO, but I wanted to make it smaller and ATTiny85 should do the trick. The RF module is connected (data pin) to PB3 on the ATTiny. But I ...
2
votes
2answers
5k views

RCSwitch on Attiny85

I would like to use my Attiny85 as an remote controlled relay switch. I have already tested the sketch on my Atmega328 and it worked. Now I wanted to burn the sketch on my Attiny85 using ArduinoISP ...
0
votes
2answers
717 views

Shift register on Attiny85 programmed by Arduino

Shift registers need 3 digital pins in order to work (data, clock and latch), but Attiny45/85 chips provides 2 digital and 2 analog pins. Would I use 1 analog pin as digital pin? How?
6
votes
4answers
6k views

ATtiny85 minimum setup to blink led

What would be the (very) minimum schematic to make a ATtiny85 blink a led? Restrictions are: There must be a C program compiled and uploaded to it, just like an Arduino board would have. The code ...
5
votes
2answers
279 views

Ideas for setting I2C device IDs

I am using I2C to communicate between a collection of ATtiny85s that are acting as controllers for various parts of a system and the "Main Brain" -- a RaspberryPi. Most of the ATtiny85s only have a ...
1
vote
0answers
2k views

attiny85 in sleep mode failing to wake properly [closed]

For my attiny85, I'm having trouble getting it to sleep and wake up cleanly. I have a sleep mode with a watchdog timer that wakes every 8 seconds, or when interrupted. And then when that has repeated ...
1
vote
0answers
88 views

HCF4021BE seemingly not working

void setup() { // put your setup code here, to run once: pinMode(3,OUTPUT);//data pinMode(4,OUTPUT);//clock } void loop() { // put your main code here, to run repeatedly: // byte sender=...
8
votes
4answers
10k views

ATtiny85. How do I burn a bootloader? What is the process?

I want to use all six I/O pins of an ATtiny85, that means also using the reset pin as an I/O pin, however, I found out that if I disable the RESET pin, I can no longer program the ATtiny using an ISP ...
5
votes
1answer
657 views

Extract .hex from ATtiny45 using Arduino

As it is possible to program a ATtiny45 using Arduino as ISP Programmer, is there a way to backup an ATtiny45 program to a .hex file using Arduino?
-1
votes
1answer
2k views

Arduino Mega 2560 as ISP for ATTINY2313 / ATMEGA328P

I have posted this on the Arduino forum also, but I give it more chance if posted here also. I've been trying to use my Arduino Mega as an ISP for programming two different ATMEGA328P's and a ...
1
vote
0answers
690 views

RF RX not working when using ATtiny85 at 1MHz

The ATTiny85 code fails to read input from a 433Mhz RF receiver when working at 1MHz. The following example compiles perfectly and runs OK wihen the ATTiny85 is working at 8MHz. However, it compiles ...
0
votes
1answer
258 views

Attiny84A and IR Sensor

I have a GP2Y0A21YK0F Sharp IR Analog Distance Sensor 10-80cm + Cable, Arduino Compatible and its is connected to my Arduino. All works well and I can read the analog data with the following code: #...
2
votes
1answer
18k views

ATTiny85 Interrupt id vs pin when programming with Arduino

I am using an Arduino Uno with the Arduino as ISP sketch to program an ATtiny85. I followed this tutorial to set up to program the ATtiny, and successfully got it to run Blink and an interrupt-free ...
11
votes
3answers
44k views

When using Arduino Uno as ISP does “Yikes! Invalid device signature” mean a bad connection, bad config, or bad version of avrdude?

I'm using an Arduino UNO to program a pre-compiled hex image to an ATTINY45, using the avrdude in the Arduino IDE directory, on Windows 7. The Uno has the ISP sketch loaded from the examples directory ...
2
votes
3answers
3k views

Attiny13 + Arduino

I started my first try in programming an ATTINY13 with my Arduino 2560. Everything seemed fine, however when I wanted to run the blink example, my LED did not blink, it keeps lighting. I am using 5V ...
2
votes
2answers
6k views

'OUTPUT' was not declared in this scope - ATtiny85 with Arduino Uno r3 as ISP

I'm trying to follow this this tutorial to program an ATtiny85 micro-controller using my Arduino Uno r3 as the ISP. I am up to the final step on the tutorial, but get an error when attempting to ...
2
votes
1answer
2k views

Reliably duplicate custom IR remote control with ATTiny85

This is something I'm struggling with for a while and fail to find solid solution. The Arduino IR library provides method for recording arbitrary IR code and re-sending it. This gave me different ...
5
votes
1answer
8k views

Is it possible to program an Attiny85 with a USB-to-TTL converter?

I currently use my Arduino to program Attiny85. As I have one of these USB-to-TTL adapters I am wondering if it is possible to program Attiny85 with it, to free up my Arduino. I know it is possible to ...
5
votes
1answer
2k views

Is programming the ATTiny85 possible in 1.5?

I upgraded to Arduino 1.5.7 in hopes of using the command line interface for a larger project. However, the old package I was using to program the ATTiny85 chip with the Sparkfun Tiny AVR Programmer ...
3
votes
1answer
604 views

How to add the -F switch for avrdude in Arduino IDE

So, before starting to learn with something else, I'll give it one last try. The avrdude is complaining that the device signature doesn't match. Whatever, I don't care. To me, what's written on it is ...
1
vote
2answers
2k views

What pins should I use when blinking AtTiny13 with arduino IDE?

I'm trying to program AtTiny13 using Arduino IDE. I have connected the atTiny to my PC using USBasp programer. I want to write a simple blink application to test whether it works or not. Which pins ...
0
votes
2answers
1k views

How can I send serial over RF?

I've got the following: #include <SoftwareSerial.h> const int rx = -1; const int tx = 4; SoftwareSerial mySerial(rx, tx); void setup() { mySerial.begin(2400); pinMode(tx, OUTPUT); } ...
2
votes
1answer
3k views

I cannot find the I2C device by scanning

I've been trying to get a LCD I bought from deal extreme to work for some time with my ATTiny85 chip. It should be capable. I've tried googling the device but there is no proper documentation, so I ...
5
votes
1answer
354 views

Operating / pin voltages ATTiny chips

I would like to set up a project with an ATtiny chip, such as the ATtiny84 or ATtiny85, in which I interface the microcontroller directly with an XBee for both wireless serial communication, as well ...
5
votes
2answers
13k views

I²C with ATTiny85 at 8MHz using TinyWireM library

Hello fellow Arduino enthusiasts, I am trying to make the ATTiny85 talk I²C with a MMA7660 breakout board I have (it's an accelerometer, this is a follow up question to my previous one). I would ...
1
vote
1answer
1k views

MMA7660 accelerometer with ATTiny85

I'm trying to make the ATTiny85 work with the MMA7660 accelerometer, so far, without any success. Google search for "ATTiny85 MMA7660" gives poor results, and I'm not sure it has been done at all, at ...
8
votes
3answers
5k views

Manchester Library Won't Compile for Attiny85

I am creating a wireless sensor using an Attiny85. I want to send the data to an arduino uno, so I purchased the 315mhz rf link kit from spark fun. Since the Attiny85 does not have a TX I decided to ...
5
votes
2answers
1k views

Changing pins used in ArduinoISP example

I have built my own ATTiny programmer, but made a bit of a mistake along the way - I didn't align the headers properly, and now instead of them plugging into pins 10, 11, 12 and 13 as per the ...
5
votes
4answers
15k views

RF remote control using VirtualWire on ATtiny85 running at 8MHz on internal oscillator

I'm trying to make an RF remote control using ATtiny85 running at 8MHz on internal oscillator, this cheap RF 434MHz transmitter module (like the one below), and VirtualWire lib, but had no success so ...