Make your own, ultra simple, universal AVR programmer !! Elecrom October 15, 2007; Updated On: December 26th, 2016 149 [digg=http://digg.com/hardware/Ultra_simple_universal_AVR_programmer] In this post we are going to see how to Make your own, ultra simple, and universal AVR programmer. Two types of AVR programmers can be built: 1)Parallel port 2)Serial port Serial Port based AVR ISP Programmer Serial port programmer(reference: At-Prog) is shown here. Main advantage of using serial port is you can have cable length upto 2m. You can use PonyProg2000 software to program your AVR using this programmer. Serial port generates +- 12V on its pins, thus diodes and zener diode is used to clamp +12V to +5.0V(4.7V due to zener + 0.3V due to bat85) and -12V to -0.3V (due to lower Bat85). You can substitute Bat85 with 1n4148, however it is not recommended because, this diode will clamp +12V and -12V to +5.4V and -0.7V which are not desirable, as per datasheet of microcontroller. Its not that micro will burn if you use 1N4148 diodes, but why to take risk !!. CIRCUIT DIAGRAM : LIST OF COMPONENTS : 1)Resistors 1K,1/4W 4 2)Capacitors 27pF,disc 2 1µF , electrolytic 2 3)Crystal 4Mhz OR 8Mhz 1 4)Voltage regulator 7805 1 5)Connector D9 Female 1 6)Diode Bat85 8 7)Zener Diode 4.7V 1 8)Grid PCB 3″ x 3″ 9)Connecting wires – – approximate cost : 90 Rs CONFIGURING AND USING PONYPROG2000 : All steps are same as described in parallel port programmer section, However during third step do the following settings :select “serial”, from list select “SI prog I/O”, select “COM1″( usually serial port is at COM1, if your computer have more than one serial ports multiple options will be active. Select appropriate, if you know, else do trial&error), check “Invert Reset”. Click on OK. Parallel Port based Programmer Note: This is outdated now ! This information has been kept here only for legacy purpose. Use Serial Port based Programmer instead. Following circuit diagram shows ultra simple AVR microcontroller (SOURCE: unkown). It requires very few components and its very simple to build on general purpose matrix PCB. You can use PonyProg2000 software to program your AVR using this programmer. CIRCUIT DIAGRAM : LIST OF COMPONENTS : 1)Resistors 220Ohms ,1/4W 4 2)Capacitors 27pF,disc 2 1µF , electrolytic 2 3)Crystal 4Mhz OR 8Mhz 1 4)Voltage regulator 7805 1 5)Connector D25 Male 1 6)Grid PCB 3″ x 3″ 7)Connecting wires – – approximate cost : 55 Rs • As programmer circuit is very simple, u can use substitutes if particular component is not available at your place. • You will not get 3”x 3” GPCB ready made, you have to cut standard sized PCB. 3” x 3” is just rough estimate SNAPS : Following photograph shows programmer I have made for 40Pin and 20Pin AVR µCs. MISO, MOSI, SCK, RESET, X1, X2 , VCC and GND pins of both 40pin and 20pin sockets are connected together. CONFIGURING AND USING PONYPROG2000 : Open PonyProg2000 Select menu : Setup>Interface Setup Select “parallel”, from drop down box select “Avr isp i/o”, select “LPT1”. Click OK. Now select menu Setup>Calibration. A dialog box will appear , click YES. Now PonyProg2000 is configured and ready to use. To burn your .Hex file into micro, select File>Open Program(FLASH) file. Select appropriate microcontroller from the list of devices at top-right. e.g > Connect your programmer ckt to PC, then place your micro into programmer ckt and turn on its power supply. Now click on the encircled icon : When device is programmed you will get “Program succesful” message. Notes • Circuit diagrams shown above are generic and suitable for any AVR µC which supports ISP (almost all AVR, you can refer to www.atmel.com) • Connect pins (e.g. MISO,MOSI, etc…) of AVR to appropriate points shown in circuit diagram. • You can built programmer for more than one AVR devices by using different IC sockets for each device and doing appropriate connections of all above signal lines ( MISO,MOSI,SCK,RESET,X1,X2) and Vcc,Gnd of each AVR. • Prefer using ZIF socket with IC base(refer: How to use ZIF socket in circuit without re-drilling holes on PCBs). Though It is bit costly, it proves extremely helpful.