Creative Commons images are CC BY-NC-SA 3.0

2.95

added to your
shopping cart

quantity
In stock 932 in stock
2.95 1+ units
2.66 10+ units
2.36 100+ units

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.

Documents:

Comments 40 comments

  • 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.

  • 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…

  • 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.?

    • You are running out of RAM, which the arduino IDE is not smart enough to tell you.

      • it has nothing to do with 4.2k… you have to change your code to use byte or char, if it makes sense… Otherwise it won’t work… stop copying others and do something yourself.

  • 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?

  • 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?

  • And that’s the wiring for programming it with Arduino: http://www.instructables.com/id/Full-Binary-Clock/step5/Programming-the-ATtiny84/ 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. )

  • 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.

  • 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?


Related Products