ATTiny 26 - Page 1
Forum section: electronics / general

author: skillz21
author_rank: Frequent Contributor
timestamp: March 02, 2016, 10:07:25 am
content: OK guys here is the deal:i want to program a atttiny 26. can i use one of those FDTI programmers? if so, can i get like an addin to the arduino IDE so i can program the attiny with it?(i believe i have seen one before). and lastly guys, can you guys send me a schematic for a way to wire up the attiny 26 when it is being flashed?(hand drawn if fine, and i have so far not been able to find a way)

author: MrSlack
author_rank: Frequent Contributor
timestamp: March 02, 2016, 10:12:28 am
content: Most of your questions are answered here:https://learn.sparkfun.com/tutorials/tiny-avr-programmer-hookup-guideNot sure if it needs adaptation for ATTiny26 vs 85 though.

author: skillz21
author_rank: Frequent Contributor
timestamp: March 02, 2016, 10:28:17 am
content: i dont get the pins...

author: amyk
author_rank: Super Contributor
timestamp: March 02, 2016, 12:16:05 pm
content: Considered readingthe datasheet? (See the Programming section...)

author: Divvi
author_rank: Contributor
timestamp: March 02, 2016, 04:00:40 pm
content: Quote from: skillz21 on March 02, 2016, 10:28:17 amHere is the datasheet:http://www.atmel.com/Images/doc1477.pdfPinout:

author: skillz21
author_rank: Frequent Contributor
timestamp: March 02, 2016, 08:36:36 pm
content: what can i program it with? can i use one of those FDTI programmers? and cant i connect the serial output from one of those to the attiny? (does it have a serial port?) eg.http://www.ebay.com.au/itm/FTDI-FT232RL-USB-to-TTL-Serial-Converter-Adapter-Module-and-3-3V-For-Arduino-I5-/181929240414?hash=item2a5bd3e75e:g:8W0AAOSwo6lWQxNe

author: sleemanj
author_rank: Super Contributor
timestamp: March 03, 2016, 12:03:12 am
content: No you can not program it with an "FTDI programmer", these are not programmers they are just USB to UART (OR TTL level serial or whatever you choose to call it), they are not a programmer, they facilitate you to communicate with a "virtual" programmer we call a bootloader which you or somebody has installed on a chip.The ATTiny26 does not support self programming, so even if you put on a bootloader you still can't use one of those.You need an ISP programmer, such as the USBasp, or if you must, you can get away with using another Arduino and the ArduinoISP sketch, but really, just get a USBasp.Note that the Tiny26 is not a common chip to be using, at least not in Arduino circles. You will probably find it better to stick with the following...ATtiny25ATtiny45ATtiny85ATtiny24, ATtiny24AATtiny44, ATtiny44AATtiny84, ATtiny84AATtiny13, ATtiny13ANB: I have an easy to install Arduino core for the above chips here -https://github.com/sleemanj/optiboot/tree/master/dists#attiny

author: Rick Law
author_rank: Super Contributor
timestamp: March 04, 2016, 03:26:37 am
content: You can also program (flash) an ATTINY using an Arduino as ISP. The typical FTDI board is just an adaptor for RS232-to-USB.For my ATTINY flash burning, I started with using Arduino UNO R3 with Arduino's ISP program (found in Arduino's examples folder when you install Arduino IDE). For C programs, I use WinAVR (gcc+avrdude). That works very well.After getting tired of disconnecting the ATTINY from the UNO after flash to reconnect ATTINY to a USB-serial for it to use during run time. I now switched from UNO to an Arduino NANO running a modified version of the Ardunio's ISP. The NANO is mounted on a proto-board with ISP headers and SOIC-clip headers on the proto-board soldered to the proto-board. The software modification is an added "RS232-bridge".After I burn the flash on ATTINY, I can use the ATTINY's soft-serial to talk to the NANO's soft-serial. The NANO in-turns pass it to the PC via the NANO's hardware USB-serial. So now I don't even use my (FTDI) USB-RS232 adaptor board for the ATTINY. The NANO is doing that for me - connecting the ATTINY's soft-serial to the PC via the NANO's USB-serial.

author: skillz21
author_rank: Frequent Contributor
timestamp: March 04, 2016, 10:32:24 am
content: Quote from: sleemanj on March 03, 2016, 12:03:12 amyeah it is not very common. I am attempting to create theSimple electronic diceby DemonDomen on instructables.com. (http://www.instructables.com/id/Simple-electronic-dice/) could I use a different type of ATTiny, with enough capabilities and enough I/O lines?

author: Robartes_m
author_rank: Contributor
timestamp: March 04, 2016, 12:23:24 pm
content: Quote from: skillz21 on March 04, 2016, 10:32:24 amThe ATTiny24 has the same amount of flash and enough pins to do the job. In which case I would go for the ATTiny84 - same chip, more flash for possible extensions and future projects. Get a bunch of them

author: skillz21
author_rank: Frequent Contributor
timestamp: March 05, 2016, 03:16:41 am
content: Quote from: Robartes_m on March 04, 2016, 12:23:24 pmso which one should I use ATTiny 24 or ATTiny84?

author: ady.price
author_rank: Contributor
timestamp: March 05, 2016, 03:45:42 am
content: Quote from: sleemanj on March 03, 2016, 12:03:12 amActually you can use the bit bang mode on FTDI chips to program microcontrollers. But you can only use it under linux, and it's a really slow process.

author: Robartes_m
author_rank: Contributor
timestamp: March 05, 2016, 08:39:16 am
content: Quote from: skillz21 on March 05, 2016, 03:16:41 amI would go for the ATTiny84. It's only about 10 cents extra in unit qualities on Mouser, and you have 4 times the flash memory of the '24. If later on you want to do something more than blinking a few LEDs, you will appreciate the extra program space.I like these micros - I usually keep a stock of several tens of both the ATTiny84 and ATTiny85 around.

author: dgtl
author_rank: Regular Contributor
timestamp: March 05, 2016, 04:00:00 pm
content: Google about using avrdude. Although it is not the easiest, fastest or most optimal solution for programming blank AVRs, it may help when you do not have any programmer at hand, but have FTDI converters.