Wednesday, 19 October 2011

Low-cost AVR programmer


Low-cost AVR programmer
For all AVR microcontrollers

Diagram by Pitronics

                          This is probably the cheapest and simplest AVR programmer around....
                              (instead of an X-tal you can also take a resonator, this saves a bit space on the PCB)







Diagram by Pitronics





Part list:

7x 220 ohm
1x 100 ohm
1x 22pf
2x 27pf
1x 100n
1x 47uF/16V
1x IC- or textool-socket
1x X-tal 4 MHz
1x 25 sub-D connector


Before using this programmer....

Be carefull with using this programmer, because it has no insulation circuitry! Especially when using high voltages e.g. 110/230 Vac on your project. One mistake and your day can be ruied, your expensive PC 


In-circuit or as a target:

You can use this programmer for in-circuit programming, or as a target programmer, the first diagram shows the target version, the second the in-cicuit version. In-circuit is very usefull when your hardware finished project needs to be fine-tuned.


Software:

Here you can downloadSP12. With this FREE (GNU) software from Pitronics you can upload the program in the AVR's flash memory. (type: Intel hex)

With WAVRASM from Atmel you can assemble your ASM code to e.g. name_of_program.hex.
(all AVR definitions can be found here)


How to make one ?



Follow the steps to make the cheapest AVR programmer there is:
(Why spending a lot of money, your project won't operate different when using this low-cost solution)


Solder the resistors like this

First solder the five 220 ohm resistors on the connector

Next 2 resistors like this

Then the next 2 resistors like this

The next step....


Strip the wires and solder them on the resistors and connector pins, write down what color what connection is, one mistake and it won't operate. (e.g. red = SCK = R on pin 2, etc.), or let the cover open and, connect the other side of the cable to a small PCB where the target uC will sit. (see next picture)

hobby-board as low-cost programmer


Fix the components on the PCB or hobby-board...
(20 pins IC-socket, ceramic resonator 4MHz, 10uF/16V)


Wiring fixed....


All wiring connected, don't cut the rest of the wires, keep them as spare wires, if you ever need more connections or if have broken wires.

Programmer finished too....


Here a homemade programmer, and it's working great :)


The solderside....

And not to forget, the wiring on the bottom


An extended version :)

This is an extended version, now you can also program AT90S2323/2343/ATtiny's :)


Precision sockets used


Better to use these kind of IC sockets, after a year intensivly used I found out the cheap sockets are losing contact


Low-cost programmer for ATmega's

Next, a low-cost programmer for the ATmega's

0 comments:

Post a Comment

Note: only a member of this blog may post a comment.

adhitz

Twitter