ATtiny is a family of small, low-power 8-bit RISC microcontrollers from Atmel.

learn more… | top users | synonyms

2
votes
2answers
33 views

ATtiny85, ARduino IDE, TinyDebug: Error sending int values

The setup: An ATtiny85 is programmed using the Arduino IDE, it is supposed to read the ambient light from an LDR and turn on/off an LED accordingly. To get a better understanding of what my sensor ...
2
votes
1answer
37 views

ATTINY 84 Aref pin?

I want to program an ATTINY84 ucontroller using Arduino UNO as ISP. In my program I need to use the Aref that is located in pin P0 of the ATTINY84. I know I can call analogReference() on Arduino UNO ...
1
vote
1answer
60 views

ATTiny45 Quadrature Decoder Pull-Up resistors

I am trying to use the ATTiny Quadrature Decoder from here. The schematic that I have attached here has two external 10K Pull-up resistors. I have looked into the ATTiny45 datasheet and it seems that ...
0
votes
0answers
29 views

avrdude - stk500_cmd(): programmer is out of sync [duplicate]

I am trying to upload a hex file using the ISP sketch on my Arduino to use it as a programmer to program my ATtiny85, but I keep getting error messages from avrdude. After some researching I figured ...
1
vote
0answers
64 views

avrdude error - stk500_paged_write() protocol error

I am using my Arduino Uno as a programmer to program my ATtiny85. I uploaded the ArduinoISP sketch to my Uno. I double checked my wiring, did some googling, but I still can't figure out why I get this ...
1
vote
2answers
95 views

avrdude error - stk500_getsync(): not in sync: resp=0xff

I am using my Arduino Uno as a programmer to program my ATtiny85. I uploaded the ArduinoISP sketch to my Uno. I double checked my wiring, did some googling, but I still can't figure out why I get this ...
3
votes
1answer
90 views

Error while uploading hex file to AVR uC

I am trying to upload a hex file to an ATtiny85 from Ubuntu by running these commands: ...
0
votes
1answer
47 views

programming an attinya13 with arduino mega2560 (blink sketch load wrong, led stays on)

I'm trying to program an attiny13a with an arduino mega 2560I load the blink sketch, and avrdude says it uploads completely, but the led on the attiny13a doesn't blink, it just stays on (it's ...
6
votes
2answers
122 views

ATTiny85 not working after burning bootloader

I am having a problem with my ATTiny85. I should mention I use Arduino as an ISP to program it. My ATTiny worked fine until I decided that I need to step up the clock speed from 1MHz to 20MHz so I ...
5
votes
1answer
157 views

AVR Pin Dual Use: Input and Output at (seemingly) the same time

I have been working on a few different versions of a bicycle light control circuit which reads in various buttons and sets various outputs accordingly such as headlight, taillight, blinkers, etc. My ...
1
vote
2answers
113 views

AVR AtTiny84 is stuck on 128kHz clock, avrdude + Arduino as ISP can't reach it

While experimenting with the power consumption of different clock rates by setting fuse bits, I seem to have irreversibly programmed an ATTiny84 chip to the 128kHz internal oscillator, and now avrdude ...
4
votes
4answers
172 views

ATtiny2313 refuses to be programmed after setting CPU clock to 500kHz

The other day I was writing a program for an ATtiny2313. Once it worked I decided to test it at the various clock speeds that are available and programmed through setting the LFUSE as described on ...
0
votes
1answer
59 views

Single FET Bus Switch schematic in EAGLE

I've added a SN74CBT1G384DBV into my schematic in Eagle (which I want to use to enable/disable a logic signal line). Once placed into the schematic there only appear to be connection points for VCC ...
7
votes
2answers
277 views

Program AVR EEPROM directly from C source

When you include the following code in an AVR C source, you can apparently directly program the fuses, without the need for an extra command or .hex file: ...
0
votes
0answers
53 views

Library for multi-master comunication of two ATTinys 261/461/861 I2C/SPI

I am building device with two ATTiny 461 connected by about 60 cm long cable. I need ATTinys to send/receive only few bytes once a time. Random time, random direction. I would like multi-master ...
2
votes
1answer
413 views

Best way to communicate Raspberry Pi and ATTiny13

What is best way to connect two or three microcontrollers, ATTiny13 to Raspberry-Pi and get master (Raspberry Pi) communication? Are there any ready libraries for ATTiny13 for SPI or I2C? Maybe some ...
1
vote
0answers
116 views

ATTiny Default AREF

I am trying to get the Adafruit Electret Microphone Amplifier to work with an ATTiny85 but am having some trouble with the reference voltage. I am using a 5V circuit because I am also powering a strip ...
3
votes
2answers
385 views

SPI.h for ATTiny

Is there a different implementation of the Arduino SPI library that can be used for the ATTinyX5 series? I assume, partly because I believe the ATTiny SPI is provided via USI... I got the environment ...
2
votes
2answers
164 views

Setting up an ATtiny45 as I2C master - SCL toggles low, but refuses to toggle high

Another pin, another question: However closely related to Setting up an ATtiny45 as I2C master - SDA stuck low this is different question. I'm trying to control a DAC from an ATtiny45, but somehow ...
2
votes
1answer
127 views

Setting up an ATtiny45 as I2C master - SDA stuck low

I'm trying to control a DAC from an ATtiny45, but somehow the SDA line is stuck low. To find the problem in the code I did the following: I simplified the circuit to only the controller with the ...
1
vote
3answers
302 views

Ethernet shield-like functionality for ATTINY IC

I'm looking to shrink-ify my arduino project in the future, and I was wondering if there's anything like an all-in-one 'tiny' ethernet board that'll work with an attiny chip, preferably with the ...
0
votes
1answer
99 views

attiny85 drops voltage level on an output pin… why?

I am in the process of building a wireless transmitter that is driven by an attiny85. I have programmed the MCU to encode the data using Manchester encoding and I have used an oscilloscope to show me ...
6
votes
3answers
130 views

Capacitor and ISP issue

If I remove C5 I am able to use ISP. However, with C5 on board ISP programming fails... Capacitor is for button debouncing. What is the quick workaround to have ...
5
votes
2answers
246 views

How can I determine if a microcontroller is damaged?

I have a few microcontrollers sitting in my "junk parts" bin. I think some of them arrived there when, after programming them, they exhibited strange behavior. I've since learned a lot, for example, ...
0
votes
0answers
179 views

vUSB Keyboard with AtTiny using processing

I think that this is a very noob question, but... Anyway... Here is the problem. I am trying to make a device that receive a RF code (333Mhz) and send to the keyboard (HID) via USB. I already made ...
3
votes
1answer
388 views

FTDI-based programmer works with ATmega but not ATtiny?

I'm using an FTDI-based bit-bang programmer for my AVR MCUs with AVRDUDE. It works perfectly with ATmega32A, but does not work with ATtiny45. The command that I use to try if it works is: ...
1
vote
1answer
158 views

Multiple masters for i2c device

I have a DS1307 RTC chip that I want to interface with multiple masters. One, an ATMega chip, will only ever really need to pull time data from the chip and the other (probably just an ATTiny) will ...
2
votes
1answer
376 views

Use unused SPI MISO pin for I/O on ATTiny

I want to use an attiny85 for a project that will be controlling some LEDs over a pseudo SPI that only needs to use SCLK and MOSI. Is there any way to reconfigure pin 6 (MISO) on the 85 to be used as ...
4
votes
2answers
638 views

Fading RGB led with ATtiny2313 timer

I'm trying to make mood lamp with only hardware PWM and interrupts (i. e. main loop should be empty). I'm doing it as a challenge to learn how timers work, not for any practical reason. So far I've ...
1
vote
2answers
224 views

v-usb, zener diodes and circuit

I've toying with V-USB for a few days and got a circuit working in a breadboard with a Attiny85 and 3.6 Zener diodes. However, when I tried to get it done in a stripboard, it doesn't work. Assuming ...
5
votes
2answers
761 views

Problem shrinking Arduino project to ATtiny 85 20MHz

This is a similar problem as this one: Programming an ATtiny 85 with Arduino However the latter question refers to older software/arduino and did not reach a resolution. I'm using Arduino 1.0.1 ...
3
votes
2answers
280 views

avr attiny84: wrong delay

I'm pretty new to avr programming. I'm facing a strange problem that I can't solve so far. I've wrote a simple code: ...
6
votes
2answers
1k views

Need help understanding AVR ATMEGA / ATTINY timer mirrored output

I am trying to use Timer1 of Atmel AVR microcontroller, either AtMega328 as used in the Arduino, or the ATTiny85, to output two clock signals which are mirror images of each other. The frequency I am ...
1
vote
1answer
327 views

ISP programming of an attiny88 not working [closed]

I'm trying to get an ATTiny88 running for the first time and have problems with getting the software on it. The JTAGICE3 isn't able to connect to the ATtiny88. I get the error "Unable to enter ...
1
vote
4answers
1k views

ATTiny25/45/85 as I2C master AND slave

I'm still trying to wrap my head around I2C as well as the ATTiny. I've found plenty of tutorials on how to use the tiny as an I2C slave as well as master, but is it possible to use it as both at the ...
1
vote
1answer
754 views

Programming ATtiny84 using Arduino (leonardo)

I am trying to program the Attiny84 using an Arduino(Leonardo). I have seen this Shrinkify video. -and I have been following this Programming tuturial. I have connected everything. Using Arduino ...
1
vote
4answers
226 views

attiny13a SMD production programming without programming jumper? Possible?

I'm struggling to find a decent way to program a production run of some boards. The boards are going to be about 2cm by 3cm ovals with a surface mount SOIC 8 pin Atmel attiny13a microcontroller. The ...
2
votes
3answers
2k views

Programming an ATtiny 85 with Arduino

I followed this tutorial and got the following error when trying to compile upload the attiny85 sketch: avrdude: usbdev_open(): did not find any USB device "usb" ...
5
votes
1answer
289 views

Safety of powering 5V circuit of 240V main outlet using adapter

I have created a circuit using an ATTiny that will need constant power. I was thinking of using one of the 240V to 5V USB adapters that come with many phones to power this circuit. Will I need to put ...
5
votes
2answers
213 views

How can I instruct my compiler to use 8 bit bytes instead of 16 bit integers?

I have the following code in my microcontroler program: ...
7
votes
1answer
185 views

While loop optimized away

I have the following code in my microcontroler program: // Wait for ADC conversion to complete while ( ( ADCSRA && _BS( ADSC ) ) == _BS( ADSC ) ) {} ...
5
votes
1answer
816 views

Why does my ATtiny13 report wrong device ID?

I am using an Arduino (with ATmega168) as an ISP programmer to program ATtiny13. When I try to do this, avrdude reports: ...
1
vote
3answers
1k views

Changed fuses on ATtiny85, now Invalid Device Signature

I changed the clock fuse bits on my ATtiny85. Now I can't flash anything to it or even change the fuse back. I get the error: ...
7
votes
1answer
428 views

Can an ATmega or ATtiny device signature be read while running?

While programming an ATtiny or ATmega, avrdude prints the device signature, in this example it is an ATtiny. avrdude: Device signature = 0x1e910a Can I read this ...
1
vote
1answer
340 views

attiny861 does not want to wake on interrupt but simulation works

I successful managed to make a software UART without using the USI module and its interrupts. The AVR code examples on Atmel and avrfreaks just do not work in either simulation or a real device so I ...
1
vote
0answers
304 views

attiny avr programmer

I would like to build an attiny programmer , I found tow circuits which are serial programmer ... can you help me to decide any one is better. first one which I think is old:attiny board second one ...
3
votes
2answers
222 views

Append source code to flash image when programming an AVR

Is it possible for Arduino / ATmega / ATtiny when programming the device to attach the C source code at the end the machine code flash image? That way if I have the device, I can always retrieve the ...
4
votes
2answers
590 views

How is this motor on a Romotive controlled?

I have bought a Romo Robot by Romotive. Unfortunately I'm having some technical issues(it does not work, at all) with it so I decided to explore the PCB a bit and see what its made of. I understand ...
2
votes
2answers
3k views

How to program ATTINY2313 with USBASP?

I've got an USBASP v2 programmer with 10-pin ICSP output. Could anyone tell me which pins to connect to program my ATTINY2313 with AVRDUDE (under Ubuntu). For some reason, I keep getting: ...
2
votes
1answer
698 views

Backup AVR with avrdude

I'm heavily experimenting with ATtiny AVR's and I can't afford to buy a new AVR for every experiment, so I thought up a backup script. The idea is that I can bring my AVR back to factory defaults ...

1 2