Author Topic: ATTiny 26  (Read 9035 times)

0 Members and 1 Guest are viewing this topic.

Offline skillz21Topic starter

  • Frequent Contributor
  • **
  • Posts: 311
  • Country: au
ATTiny 26
« on: March 02, 2016, 10:07:25 am »
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)
 

Offline MrSlack

  • Frequent Contributor
  • **
  • Posts: 880
  • Country: gb
Re: ATTiny 26
« Reply #1 on: March 02, 2016, 10:12:28 am »
Most of your questions are answered here: https://learn.sparkfun.com/tutorials/tiny-avr-programmer-hookup-guide

Not sure if it needs adaptation for ATTiny26 vs 85 though.
 

Offline skillz21Topic starter

  • Frequent Contributor
  • **
  • Posts: 311
  • Country: au
Re: ATTiny 26
« Reply #2 on: March 02, 2016, 10:28:17 am »
i dont get the pins...
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 9175
Re: ATTiny 26
« Reply #3 on: March 02, 2016, 12:16:05 pm »
Considered reading the datasheet? (See the Programming section...)
 

Offline Divvi

  • Contributor
  • Posts: 19
Re: ATTiny 26
« Reply #4 on: March 02, 2016, 04:00:40 pm »
 

Offline skillz21Topic starter

  • Frequent Contributor
  • **
  • Posts: 311
  • Country: au
Re: ATTiny 26
« Reply #5 on: March 02, 2016, 08:36:36 pm »
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
 

Offline sleemanj

  • Super Contributor
  • ***
  • Posts: 3173
  • Country: nz
  • Professional tightwad.
    • The electronics hobby components I sell.
Re: ATTiny 26
« Reply #6 on: March 03, 2016, 12:03:12 am »
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...

ATtiny25
ATtiny45
ATtiny85
ATtiny24, ATtiny24A
ATtiny44, ATtiny44A
ATtiny84, ATtiny84A
ATtiny13, ATtiny13A


NB: I have an easy to install Arduino core for the above chips here - https://github.com/sleemanj/optiboot/tree/master/dists#attiny
« Last Edit: March 03, 2016, 12:07:26 am by sleemanj »
~~~
EEVBlog Members - get yourself 10% discount off all my electronic components for sale just use the Buy Direct links and use Coupon Code "eevblog" during checkout.  Shipping from New Zealand, international orders welcome :-)
 

Offline Rick Law

  • Super Contributor
  • ***
  • Posts: 3538
  • Country: us
Re: ATTiny 26
« Reply #7 on: March 04, 2016, 03:26:37 am »
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.
 

Offline skillz21Topic starter

  • Frequent Contributor
  • **
  • Posts: 311
  • Country: au
Re: ATTiny 26
« Reply #8 on: March 04, 2016, 10:32:24 am »
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...

ATtiny25
ATtiny45
ATtiny85
ATtiny24, ATtiny24A
ATtiny44, ATtiny44A
ATtiny84, ATtiny84A
ATtiny13, ATtiny13A


NB: I have an easy to install Arduino core for the above chips here - https://github.com/sleemanj/optiboot/tree/master/dists#attiny
yeah it is not very common. I am attempting to create the Simple electronic dice by 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?
 

Offline Robartes_m

  • Contributor
  • Posts: 21
  • Country: be
Re: ATTiny 26
« Reply #9 on: March 04, 2016, 12:23:24 pm »
yeah it is not very common. I am attempting to create the Simple electronic dice by 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?

The 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 :)
 

Offline skillz21Topic starter

  • Frequent Contributor
  • **
  • Posts: 311
  • Country: au
Re: ATTiny 26
« Reply #10 on: March 05, 2016, 03:16:41 am »
yeah it is not very common. I am attempting to create the Simple electronic dice by 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?

The 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 :)
so which one should I use ATTiny 24 or ATTiny84?
 

Offline ady.price

  • Contributor
  • Posts: 19
Re: ATTiny 26
« Reply #11 on: March 05, 2016, 03:45:42 am »
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...

ATtiny25
ATtiny45
ATtiny85
ATtiny24, ATtiny24A
ATtiny44, ATtiny44A
ATtiny84, ATtiny84A
ATtiny13, ATtiny13A


NB: I have an easy to install Arduino core for the above chips here - https://github.com/sleemanj/optiboot/tree/master/dists#attiny
Actually 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.
 

Offline Robartes_m

  • Contributor
  • Posts: 21
  • Country: be
Re: ATTiny 26
« Reply #12 on: March 05, 2016, 08:39:16 am »
so which one should I use ATTiny 24 or ATTiny84?

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

Offline dgtl

  • Regular Contributor
  • *
  • Posts: 183
  • Country: ee
Re: ATTiny 26
« Reply #13 on: March 05, 2016, 04:00:00 pm »
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.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

-->