Questions tagged [attiny]

ATtiny is a family of small, low-power 8-bit RISC microcontrollers from Atmel. Commonly found in smaller Arduino prototyping platform boards and projects.

Filter by
Sorted by
Tagged with
3
votes
1answer
2k 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: ...
2
votes
2answers
2k views

How to prevent DC motor from dropping voltage of supply when switching on

I have a circuit which uses an ATtiny85 output to a transistor (S9013), which will trigger a relay that controls a motor. The reason for the transistor to relay is because I do not have a transistor ...
26
votes
5answers
5k views

Making a battery last a long time in a microcontroller circuit

I'm hoping to power an ATtiny85V for a nice long time on some small battery, probably a coin cell. I've looked into the software side, and my code is watchdog timer driven, has unused analog and ...
17
votes
3answers
19k views

Use AVR Watchdog like normal ISR

I'm trying to wrap my head around the watchdog timer on the ATTinyX5 series. So things I've read made it seem like you could use it for making the program do something specific ever N seconds but ...
7
votes
1answer
11k 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 ...
5
votes
1answer
2k views

What does the 'A' trailing letter in Atmel's ATtiny devices mean?

I have both on stock: ATtiny861A-SU and ATtiny861-20SU. But I can not find out any difference between them except 'In-System Programmable via SPI Port' available for 'A' version. Could anyone tell ...
3
votes
2answers
10k views

Problem programming ATTiny85 “Invalid device signature.”

I am trying to program ATTin85 using Arduino I used the hardware support file from "High-Low Tech" here http://hlt.media.mit.edu/?p=1695 With this schematic: After downloading the ArduinoISP sketch ...
7
votes
4answers
3k 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 ...
5
votes
2answers
3k views

Does the internal 8Mhz oscillator in an ATTINY run even if no clocks are connected to it?

If I set up the fuses on an ATTINY so that the system clock uses the internal 128Khz oscillator (sometimes called the "Watchdog oscillator"), does the internal 8Mhz oscillator still run? It does not ...
4
votes
4answers
20k views

How can I tell that USBasp is working?

I have the USBasp programer and I'm trying to burn bootloader on Atmega328 so that it can be used as a replacement chip in Arduino board (replacement chips with the bootloader installed are quite ...
4
votes
2answers
1k views

ADC calibration in ATTiny88

I'm writing an embedded app for ATtiny88 - one of its task is to measure voltages of serial connected two 12 V car batteries. The microcontroller is powered from around 4.5-5 V (LM317), measured ...
3
votes
4answers
2k views

Does anyone have code to emulate a 16-bit input shift register with an ATtiny2313?

I would like to use an ATtiny2313 to emulate a Super Nintendo controller because I have an ATtiny2313 but I do not have an input shift register and I don't feel like soldering wires onto an existing ...
17
votes
7answers
34k views

How do I set the clock speed fuses on an ATtiny85 when using an Arduino as a programmer?

I'm following this tutorial, programming the ATtiny85 with an Arduino, using it to play some tones (through a piezo speaker). I'm struggling with getting the tones at the right pitch (I'm creating the ...
5
votes
7answers
21k views

Best way to send sensor readings over simple RF connection

I have bought a pair of simple 315MHz TX/RX modules. I want to use these to connect a battery powered ATTiny85 to an Arduino base station. The ATTiny needs to regularly wake up and send a sensor ...
4
votes
2answers
10k views

Burn Micronucleus bootloader to use ATtiny85 via USB (AVRDUDE)

I am working on an ATtiny85 USB development board, and I need to flash the Micronucleus bootloader on it. I have heard that this bootloader allows the ATtiny85 to be programmed via USB from the ...
8
votes
7answers
18k views

Measuring 0 - 1MHz ( 0.25Hz resolution) Squarewave using an MCU

I need to measure the frequency of square-wave that can vary between 0 and 1MHz, and has a resolution of 0.25Hz. I havent decided on which controller yet but It will most likely be one of the 20pin ...
2
votes
3answers
4k views

How much current is a powered-down ATtiny84 supposed to take?

I know this sounds like a stupid question, but I'm wondering if the datasheet has an error or something. I have an ATtiny84 connected to my bench power supply set for 3 volts. It's fused for the ...
34
votes
1answer
7k views

Why does my AVR reset when I call wdt_disable() to try to turn the watchdog timer off?

I am having a problem where executing a disable watchdog sequence on an AVR ATtiny84A is actually resetting the chip even though the timer should have plenty of time left on it. This happens ...
5
votes
4answers
517 views

How often do AVR's actually glitch and need a watch-dog reset in the real-world?

Have you ever seen an otherwise happy AVR spontaneously glitch and require a reset? Assuming: a nice stead power supply that stays inside the specified range a correctly sized decoupling cap ...
5
votes
4answers
6k 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" ...
3
votes
1answer
796 views

Combining dirty 12V inputs with delicate micro controller

I'm building a (LED) blinker circuit for my motorcycle. It will have the basic on/off blinking for left and right (J1 & J2) and an "emergency" mode (J3) for more "aggressive" LED blinking, which ...
8
votes
1answer
4k 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 ...
5
votes
1answer
3k 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 ...
5
votes
2answers
470 views

Programming several AVRs with one ISP: which line to break?

Let's suppose that I have two AVRs connected to one ISP connector. To programm only one MCU in this configuration I neet to break one (or mayby several) lines goes to the MCU I don't want to be ...
4
votes
3answers
1k views

Arduino Bootloader Follow On

Two parts: Is it possible to write an Arduino Bootloader for a Tiny AVR? Is it worthwhile to write a Arduino Bootloader for an Tiny AVR? (more subjective, contingent on 1) Regards, Vic
4
votes
1answer
3k views

Can an ATtiny with RSTDISBL programmed be reprogrammed over ISP?

The ATtiny85 datasheet, on page 152, seems pretty clear on this: After this fuse has been programmed device can be programmed via high-voltage serial mode, only. But elsewhere, on page 28, it ...
3
votes
3answers
1k views

433 Mhz + Attiny85 improve range

I want to send information from my Attiny85 to my Raspberry. For the moment. Attiny and Emitter work on 5V Emitter have a 433 Mhz 1/2 waveform antenna I'am using virtual wire Raspberry receiver work ...
3
votes
1answer
1k views

nRF24L01+ RX in pulsed operation to save power?

I'm considering building a handheld radio receiver based on an nRF24L01+ and an ATtiny chip. It needs to receive "continuously", to receive a control signal that might operate some attached LEDs or ...
3
votes
2answers
4k views

Memory management problems with ATTiny85

The setup is as follows: I have a little program to drive single color 8x8 led matrix using 595 shift registers that are supplied with data by ATTiny85 through USI as SPI Master. I upload program to ...
2
votes
2answers
2k views

How many servos can I run on an ATtiny85?

This is my first time asking a question on this website, so please correct me if I'm doing something wrong... I have been working on a small project which runs three Servo motors on an ATtiny85, ...
2
votes
1answer
2k views

ATTiny Circuit only works when connected to AVR ISP

I've got a very simple circuit (as you can see from the diagram below) with an ATTiny45 and a piezo buzzer. Everything worked great as I was testing it out and had the ISP (an AVR ISP MkII) attached. ...
2
votes
2answers
872 views

Why does the ATTiny84 have both an analog comparator and an ADC?

I have been reading through the datasheet for the ATTiny84A, and noticed that it has both an analog comparator and the ability to use its ADC in unipolar or bipolar differential mode. From what I can ...
2
votes
3answers
686 views

How to power an attiny from a solar panel?

I'm using an attiny microprocessor that uses around 6mA plus another 3mA for the LED. It periodically runs a servo ( Tower 9G ) that according to a few source online draws 120 - 200 mA ( for around 6 ...
2
votes
1answer
1k 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 pull ...
1
vote
1answer
366 views

Serial Programming and I2C port “conflict”

I'm designing a board in which an Attiny85 is connected to an accelerometer (MPU-6050) via I2C. The I2C pins are in the ISP bus (SDA/MOSI, SCL/SCK). I wonder what happens to the accelerometer during ...
1
vote
1answer
673 views

In-place programming of ATtiny85

I've been playing around with an idea for a little hand-held gaming device using a Nokia 5110 screen and an ATtiny85. The ATtiny is programmed using my Genuino UNO as ISP. I was wondering if it's ...
0
votes
2answers
118 views

Extremely low data rate transmission over long distance for attinys

For a lighting project I need to be able to trigger 20 units every couple of seconds independently which are daisy chained with 1-2 m space between each of them like so: Control station ====== Unit 1 ...
0
votes
1answer
206 views

For a 'customized' arduino consuming less energy making use of Attiny85 vs PCB Fabrication?

Currently I am working on a prototype project where I try to move a servo (6V) according to the level of light that is recognized by a photodiode making use of the ISR function. A torch light is used ...
0
votes
2answers
103 views

Using switches installed across pins on AVR

I have the following layout, the switches are part of an existing hardware piece I'd like to reuse. I'd like to be able to detect button presses on the vol+ and vol- buttons. The plan was to actively ...
0
votes
1answer
646 views

Controlling a servo with Attiny85 OCR1B

I currently have a project where I need to control a servo using OCR1B. I already figured out how to use one with Timer0, but I can't use that for this project though. So, my questions are: - How ...