Forgot your password?
No account? Register one!
images are CC BY-NC-SA 3.0
added to your
Description: The ATtiny84 is another of Atmel's little tiny 8-Bit Processors. 8K of program space, 12 I/O lines, and 8-channel 10 bit ADC. It will run up to 20MHz with an external crystal and can be programmed in circuit.
No account? Register one!
Forgot your password?
yay! a little-ish chip for little-ish projects. but not so little you run out of pins and yell obscenities at it.
Thank you Sparkfun! Now I can start my world Domination plan using ATtiny’s with 8 Pins, 14 Pins, and 20 Pins.
20 pins –> ATtiny2313
According to the datasheet, it will work down to 2.7 volts at 8mhz, which makes this chip ideal for battery powered projects, since battery voltage goes down as the batteries die. Yet, it will also work fine at 5 volts (mine is running off of that and it hasn’t left a crater in my breadboard) so it could run directly off of 3 AA batteries (1.5 v * 3 = 4.5 for alkalines, 1.2 * 3 = 3.6 for rechargeables)
Of course, you could use 6 AA batteries and a 5v regulator, but who wants to use that many batteries? I use rechargeable AA batteries to power my portable projects and a 9v 1000 mA, UL listed DC power supply for my stationary ones (with the appropriate regulators of course)
BTW, http://hlt.media.mit.edu/?p=1695 has a solution for those who want to make smaller projects using the Arduino environment. This makes for a relatively inexpensive project if you’re looking to make a few small “light show” type devices and/or you’re good at multiplexing. Since the Arduino Uno can be used as an ISP, I recommend picking up one of those, because you’ll get to work with a pre-made board off the bat and then “graduate” to using one to program another.
Happy to see these here. They are a nice little chip. I still have a couple left in my stockpile, but I know where I will be replenishing my supply from now.
If you want to use the arduino ide with this, the MIT High-Low Tech group have done a great job with the integration: http://hlt.media.mit.edu/?p=1695
I have one of these monitoring the temp/humidity in my frog tank. Works really well for a small project and is more or less a single chip 14 pin “arduino”.
Why bother even carrying these?… you can buy them from mouser for half the price that you sell them… stick with what you are good at and leave this stuff to the big boys…
That’s not true. There’s one that mouser sells for about half this price, but that one runs at 10 MHz. This one runs at 20 MHz, which mouser also sells… for $0.13 more than sparkfun.
Look at ATtiny84A… indeed runs at 20MHz and costs half… $1.55, in quantities over 25, it is $0.99.
I bought one of these and transferred a small project onto it that uses a few pots and some pushbuttons and everything works just as it did when I initially set it up on my Uno however i can’t seem to load any code onto the tiny84 if it’s over 4.2k..? I get a compile error which I don’t have in front of me but it said something about truncating the code. If i compile the exact same code but have my Uno as the selected board in the ide, it compiles fine. If I remove a few lines of the code and have the board set to atTiny84 then it compiles fine too if it is under 4.2k. Am I missing some step that allows for bigger code to be uploaded.? It is supposed to hold up to 8k right.?
I wnt to use this as a permanent processor in a circuit prototyped on an Arduino, can I use the Tiny AVR programmer (https://www.sparkfun.com/products/11460) to program the chip? the project needs more pins that I can get on the Tiny85 so this would be a great solution!
Will this chip handle complex sketches that contain if statements?
It will handle if statements, but depending on just how complex your sketch is the sketch may not fit inside its limited memory.
Wikipedia: ATtiny comparison chart
If you know your requirements, you can find a suitable AVR through AVR Freak: compare devices
Am I correct in saying that the internal clock it running at 8MHz?
The internal clock runs at 8 MHz, but it comes from the factory programmed to divide this 8 MHz clock by 8 which results in the chip running at 1 MHz You can make it run at the full 8mHz speed (without using an external clock) by modifying one of the fuse values. Refer to this link: http://www.engbedded.com/fusecalc Change the value of low fuse (LFUSE) from 0x62 to 0xE2. You can do this with Avrdude and a programmer that can deal with the Attiny84, or a programmer like the AVRISP MKII with the driver and programming interface that accompanies Atmel Studio (which can be downloaded free).
do i need to buy a crystal oscillator for this ship ?
This chip will run with either an external clock, or an internal one. This is selected when you’re programming it. See the datasheet for more information.
Can these read serial data, for example, from an ID-12 RFID reader?
These don’t have a serial port, but do have TWI(I2C) and SPI.
And that’s the wiring for programming it with Arduino:
I tried programming it with Tiny AVR Programmer https://www.sparkfun.com/products/11460 and it works great. Please remember - programming pins MOSI, MISO and SCK are not “0”,“1”,“2” as on AtTiny85
so to upload code to this from my arduino through isp, I need a 10uf cap but does the voltage matter on the cap because I got a 10uf 25v and it didn’t specify in any tutorials I found.
25V is plenty :) For longevity when using a capacitor as an actual component, most people tend to double the system’s voltage to get the desired specified voltage. In this case, your Arduino will probably be running at 5V, so 25V is fine. ( The capacitor is only used in this case to prevent the Arduino from auto-resetting, so it’s not as critical, as long as it isn’t below the system’s voltage. )
Ok sweet thanks
Does this come setup with the internal oscillator or do you need to buy a 20MHz crystal for it? If it’s setup with the internal oscillator, how accurate is it?
You can use the internal 8MHz oscillator (and can divide that further down), or you can use an external crystal; the choice is up to you. The clock source selection is made while you’re programming the chip. From experience the internal oscillator is reasonably accurate to begin with, but there’s also a tuning register you can use to make it quite accurate. See the datasheet for all these details.
Is there an Eagle part for this in the SparkFun library? I couldn’t find it, but I might have missed it.
Only the surface mount version is present.
Submitted pull request with DIP package.
How many output PWM pins does this have? I want to be able to individually control at least 4 rows of LEDs. Thanks
Love them…easy to fit in small spaces and they run at 8mHz with no external components whatsover. None. Zero. Zip. The chip and a power supply, that’s all you need.
The Tiny85 is a bit too limited. These are just right.
(Will work bare … although most people recommend adding a decoupling capacitor and an extra pullup resistor on the RESET pin)
For 11¢ more, I’m kind of thinking about these rather than the 85’s. Plus 12 i/o would be nice. (Or maybe less if using crystal :p)
Any plans for a 14 pin AVR development board?
YES!! the possibility is limitless!!
i’m going to build a prototype right after my order arrive.
Atmel's itty-bitty ATtiny85 8-Bit Processor. 8K of program space, 6 I/O lines, and 4-channel 10 bit ADC. Runs up to 20…
Added to your cart!
Atmel's ATMega328P 8-Bit Processor in 28 pin DIP package. It's like the ATmega168, with double the flash space. 32…
Dip sockets for all your prototyping needs. If you've ever had to de-solder a dip part from a circuit board, you …
Atmel's ATtiny2313 8-Bit Processor. 2K of program space and 15 I/O lines. UART compatible pins. Runs up to 20MHz with …
Standard frequency crystals - use these crystals to provide a clock input to your microprocessor. Rated at 20pF capacitance…
The ATMega32U4 is Atmel's low-power 8-bit AVR RISC-based microcontroller featuring 32KB self-programming flash program…
The LectroCandle is a simple, through-hole kit, comprised mainly of 3 RGB LEDs and an ATtiny85 to control them. Essential…
Only 1 left!
The AVR Stick is a simple data logging device that instantiates itself as an HID keyboard and reports the voltages, along …