An 8-bit, low power AVR microcontroller from Atmel.
Questions tagged [attiny]
319 questions
27
votes
1 answer
ATtiny85: Power consumption vs clock speed
Short and simple: What is the power consumption for an ATtiny85 running at 1 MHz and 8 MHz using the internal clock? Not using any sleep modes.
I have googled a lot and can't find any info on this. I ask because I want to know if it is worth using 1…
marlar
- 487
- 1
- 6
- 10
14
votes
4 answers
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 and that works- the heartbeat LED pulses…
Yary
- 361
- 1
- 2
- 7
13
votes
1 answer
_delay_ms() is much slower than expected (by a factor of 6) on TinyAVR 0/1 (ATTiny1604)
I designed a custom AVR development board using the Atmel ATTiny1604 microcontroller. It belongs to the new Tiny-0 family, due to its recentness, some required changes to relevant toolchains have yet to be included into the stable version (I prefer…
比尔盖子
- 439
- 2
- 12
10
votes
1 answer
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 the arduino site to send data as a slave.
For…
RSM
- 1,457
- 1
- 11
- 26
10
votes
3 answers
ATtiny85 communication with computer through USB
I am trying to receive and send some data from a computer to an ATtiny through USB. Can an ATtiny85 IC communicate with a computer through USB? If yes, how should it be connected?
Aboobacker Siddique
- 109
- 1
- 1
- 3
9
votes
4 answers
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 try to add SoftwareSerial and compile I get:
fatal…
Jason94
- 303
- 1
- 5
- 11
8
votes
4 answers
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 programmer.
However, I found out that there are…
Calin
- 243
- 1
- 3
- 9
8
votes
3 answers
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 use the Manchester library however it won't…
Joel
- 523
- 3
- 15
7
votes
4 answers
Optimizing code for ATtiny10
I'm trying to squeeze code onto an ATtiny10, but I'm just not getting there. I'm using 1060 bytes and only have space for 1024 bytes.
The code is simple enough; I need to read a button pin. If high it needs to pick a random value and that causes one…
Earthbound Ruben
- 111
- 4
7
votes
3 answers
How to deep sleep ATtiny/ATmega (to run for years with batteries) but still detect a button press?
Question (TL;DR): what is the optimal method to deep sleep (to run an ATtiny45 or ATmega on batteries for 1+ year) but still be able to detect a button press? Is it possible to deep sleep until a button is pressed?
I'm using a classic "debounce"…
Basj
- 449
- 2
- 9
- 23
7
votes
4 answers
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 would use a simple "delay" to wait a little bit…
DrBeco
- 269
- 1
- 2
- 8
7
votes
3 answers
Can I connect an SD card shield to Digispark ATtiny85 board?
I have a Digispark ATtiny85 Arduino board (as shown in the picture). Can I connect a SD card shield to this board as a normal Arduino? How can I do that I'm new to this field?
knobiDev
- 183
- 2
- 8
7
votes
1 answer
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 program Atmega's with such a thing.
If it is in…
marlar
- 487
- 1
- 6
- 10
7
votes
3 answers
ATTiny85 I2C LCD
My setup is as follows:
Arduino IDE 1.6.11
Arduino Pro Mini as ISP
ATTiny85 1602A LCD with I2C board
The libraries I use are:
TinyWireM (source: https://github.com/adafruit/TinyWireM)
LiquidCrystal_I2C (modified for ATTiny) (source:…
Thijs
- 432
- 1
- 6
- 21
7
votes
4 answers
Can you access the EEPROM of an ATtiny with Arduino Code?
I'm attempting to reduce the amount of RAM being used by my program by writing some values to the EEPROM of my micro controller. I'm currently programming on the ATtiny85 which has 512 Bytes of EEPROM. According to the documentation this is how you…
Isabel Alphonse
- 203
- 1
- 4
- 11