Questions tagged [attiny]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
959 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 ...
8
votes
3answers
6k 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 ...
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 ...
0
votes
2answers
805 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?
5
votes
2answers
302 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 ...
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 ...
1
vote
0answers
97 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=...
5
votes
1answer
721 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
vote
0answers
711 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
300 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: #...
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 ...
6
votes
1answer
9k 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 ...
3
votes
1answer
750 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 ...
0
votes
2answers
2k 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
4k 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 ...
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 ...
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 ...

1 2 3 4 5
6