Showing posts with label DIY. Show all posts
Showing posts with label DIY. Show all posts

Thursday, May 26, 2011

[DIY]+[AVR Programmer]+[PonyProg]

Introduction
There are many kinds of AVR programmers in market, most of these use the parallel port, a serial port (COM port), or the USB but they are very costly and hobbyist like me can not buy such a costly programmer so i decided to make a cheap AVR programmer. Being a electronics hobbyist I believe in DIY (do it yourself) so here I glad to tell you that my programmer can be built easily in very short amount of time and since there are only few parts, it is very cheap. This AVR programmer is called "AVR ISP (In System Programmer) programmer".
On the AVR microcontroller side there are two possibilities to program the AVR microcontroller, socket and in-circuit. A socket programmer provides a way to connect just a bare AVR microcontroller to the programmer and ISP programmers however connect to the AVR microcontroller while it is connected to the target circuit. So ISP allows programming of a AVR microcontroller in circuit, avoiding the need to constantly take it in and out of the programmer and the subsequent bending of pins.

Advantage
  • This simple AVR Programmer will allow you to painlessly transfer hex programs to most ATMEL AVR microcontrollers without sacrificing your budget and time
  • This AVR programmer  is very cheap due to only few common parts are used.  
  • It is in-system programmer so can be used to conveniently program AVR microcontrollers without removing them from the target circuit.   
  • It can be built in very short amount of time.
  • This AVR programmer is compatible with a popular PonyProg software that shows you a status bar of the programming progress. 
How to build
Here you can find schematic, board layout and component layout of the my " AVR ISP programmer".
Schematic 
 Board Layout
 Component Layout

Description of the in-system programmer
The programmer is quite simple and it is based on the SI-Prog from the author of PonyProg software. The Zener diodes D1, D2 with the resistors R1, R2 reduce the voltage from the ouput pins DTR, RTS on the serial port to around 5V which is suitable for microcontroller (MOSI, SCK). MISO signal is connected directly to the input CTS pin. The diode D3 with the resistor R3,R4 drive the NPN transistor Q1, which controls RESET signal. The AVR microcontrollers are in reset when the signal has low level. The resistor R5 works as a pull-up for reset signal. The resistor R3 helps to close the transistor Q1. The programmer has standard 6 pins header.

Download
You can find eagle schematic and board files in following image (see my another interesting post here to see hidden files).
2 Hidden Files

How to program with PonyProg
Check my another post here in continuation with this post.
 

Friday, May 20, 2011

[DIY]+[PIC Programmer]+[IC-Prog]

Introduction
There are many kinds of PIC programmers in market, most of these use the parallel port, a serial port (COM port), or the USB but they are very costly and hobbyist like me can not  buy such a costly programmer so i decided to make a cheap PIC programmer. Being a electronics hobbyist I believe in DIY (do it yourself) so here I glad to tell you that my programmer can be built easily. The programmer, which I built, does not need an external power supply it takes all necessary signals and power supply from RS232 serial port, and since there are only few parts, it is very cheap and easy to make. This PIC programmer is called "JDM programmer" and based on ICSP (In-Circuit Serial Programming) . This name comes from the name of Jens Dyekjar Madsen who devised this first. His homepage is here.


Advantage
  • This simple PIC Programmer will allow you to painlessly transfer hex programs to most Microchip PIC microcontrollers without sacrificing your budget and time
  • This PIC programmer  is very cheap due to only few common parts are used.  
  • It is in-circuit serial programmer so can be used to conveniently program PIC microcontrollers without removing them from the target circuit.   
  • It can be built in very short amount of time.
  • This PIC programmer is compatible with a popular IC-Prog software that shows you a status bar of the programming progress. 
How to build
Before you build this "PIC programmer", I recommend checking to see if there is enough output voltage at the serial port your personal computer. If TXD, DTR, and RTS do not have more than +7.5V(or -7.5V), this programmer will not work well, especially, with the latest laptop computers that using low power RS232 interface ICs. See follwing image to find TXD, DTR and RTS pins.
On the PIC side there are two possibilities to program the PIC microcontroller, socket and in-circuit. A socket programmer provides a way to connect just a bare PIC to the programmer and In-circuit programmers however connect to the PIC while it is connected to the target circuit. So ICSP allows programming of a PIC in circuit, avoiding the need to constantly take it in and out of the programmer and the subsequent bending of pins.


ICSP mode of programming 
In ICSP mode of programming PICs are programmed using 5 signals. The data is transferred using a two wire synchronous serial scheme, with the clock always controlled by the programmer. The ICSP signals are:  

GND:Negative power input to the PIC and the zero volts reference for the remaining signals. Voltages of the other signals are implicitly with respect to GND.
Vdd:This is the positive power input to the PIC. Some programmers require this to be provided by the circuit (circuit must be at least partially powered up), some programmers expect to drive this line themselves and require the circuit to be off, while others can be configured either way (like the Microchip ICD2). The Embed Inc programmers expect to drive the Vdd line themselves and require the target circuit to be off during programming.
Vpp:Programming mode voltage. This must be connected to the MCLR pin, or the Vpp pin of the optional ICSP port available on some large-pincount PICs. To put the PIC into programming mode, this line must be in a specified range that varies from PIC to PIC. For 5V PICs, this is always some amount above Vdd, and can be as high as 13.5V. The 3.3V only PICs like the 18FJ, 24H, and 33F series use a special signature to enter programming mode and Vpp is a digital signal that is either at ground or Vdd. There is no one Vpp voltage that is within the valid Vpp range of all PICs. In fact, the minimum required Vpp level for some PICs can damage other PICs.
PGC:Clock line of the serial data interface. This line swings from GND to Vdd and is always driven by the programmer. Data is transferred on the falling edge.
PGD:Serial data line. The serial interface is bi-directional, so this line can be driven by either the programmer or the PIC depending on the current operation. In either case this line swings from GND to Vdd. A bit is transferred on the falling edge of PGC. 

Here you can find schematic, board layout and component layout of the my "JDM programmer" which is  based on ICSP.
Schematic 
 Board Layout
 Component Layout

Download
You can find eagle schematic and board files in following image (see my another interesting post here to see hidden files).
2 Hidden Files
How to program with IC-Prog
Check my another post here in continuation with this post.