PDA

View Full Version : want to buy/build serial port avr programmer



ashish_agarwal123456
07-12-2008, 02:23 PM
hi everyone........
i want to buy a avr programmer for my atmega8/16......
i work on desktop but have fried my parallel port ages ago.... so left with serial port only..... anyone who has upgraded to usb programmer and willing to sell his old serial programmer for anything about 60/- (120/- is the cost for new one).......

also if you know any place where i can get it below 120/-....

thanks

pratikmahale
07-12-2008, 05:56 PM
Hi Ashish

I don’t have any serial programmer for sell but check this link below you can make your own serial programmer in less then Rs. 120/-. The pony prog software is very easy to use and it support all avr micros. Personally I am using a parallel port programmer with my desktop pc and I am very happy with the result so far


http://www.lancos.com/siprogsch.html



Regards

Pratik

tpsbpl
07-13-2008, 01:06 AM
HAVE A LOOK
http://onlinetps.com/ViewItem.php?ItemID=254

ashish_agarwal123456
07-13-2008, 10:36 AM
thanks tpsbpl and pratik.....

i think no shop is going to give me a deal in less than 200/- (shipping included)...... its better if i build one for myself......

i was looking at various schematics.... i found two very contradictory circuits..... both challenging to be compatible with ponyprog....

circuit 1) title: "minipov3" from www.ladyada.net/make/minipov3

serial port(de9)......... intermediate circuit .........atmega pin

pin 3....................................resistor,zene r.....................MOSI
pin 4 .................................. resistor, zener..................... SCK
pin 5 .................................................. .......................... ground
pin 7 .....................................resistor, zener .................... reset
pin 8 .................................................. ............................. MISO

circuit 2) siprog.html

serial port(de9)........intermediate circuit .........atmega pin

pin 3 ................................ resistor,transistor ................ reset
pin 4 ...................................... resistor, zener ................. MOSI
pin 5 .................................................. ......................... ground
pin 7 ................................... resistor, zener................... SCK(clock)
pin 8 .................................................. .............................MISO


in above two circuits, connection for pin 3,4,7 are different......... after looking at the pin description of DE9 i am sure that circuit 1 is more accurate...... ( it says pin3 for data, pin4 for data terminal ready, pin7 for request to send).......

but still i have 1 confusion..... serial port give -3to-25V for '1' and 3to25V for '0'......... we have limited the voltage to 5v using zener in pin 3,4,7 and inverted signal using ponyprog so no problem for uc to recognize them........... but what about pin8.... MISO signal sent by uc is of 0v,3v level.... how serial port will recognize it??????

anyone who have implemented above circuits, "did it worked"?????

kp_chd
07-15-2008, 11:39 AM
hi !

I don't know about the circuits posted by you but can give you this link to a programmer that i made :

http://olimex.com/dev/pdf/avr-pg1b.pdf

And the web page is :
http://olimex.com/dev/index.html


This is working for me .... it also uses pony prog and is slightly different from the 2nd circuit posted by you

I replaced all diodes with 1N4148 and trans. with bc547

kp_chd
07-15-2008, 11:41 AM
and i looked at the programmer by roboits......... i believe they are also using this circuit

ashish_agarwal123456
07-15-2008, 01:10 PM
thanks kp........ i will try it and reply.....

avinash_g
07-19-2008, 05:25 PM
See
http://shop.extremeelectronics.co.in/index.php?cPath=21

For Low cost programmers (USB and Serial Port)

if you buy Serial One without CD it will cost Rs 100 + (80 shipping).

ashish_agarwal123456
08-04-2008, 12:07 PM
hello friends............ at last i have completed my avr programmer and its working great, tested with atmega8/16.......... so in order to complete this post i am here giving all the info needed by any newbie who wants to make his own programmer....

i have made a serial port programmer...... though parallel port programmer are much easy but they have a voltage rating problem.....i measured that the voltage given by parallel port is around 2.6V for high...... its OK for L series but gives some problem for normal series.... (at least i faced it).... serial port programmer is free from any such problem..... so here i am giving stet by step method to make your own avr programmer using serial port , compatible with ponyprog2000.......

NOTE: there are many circuits available on net, with different pin configuration, and each say it is compatible with ponyprog...... this creates some confusion..... actually you have to configure ponyprog for its interface setup and that defibes which circuit you are using..... so here i am also giving ponyprog settings compatible with this circuit......

STEP1: SHOPPING

here is the part list along with the typical prices which will be needed..... cost may vary a little..... also i have chosen the most easily available components so there will be no problem in finding them......

PART NAME .................... QUANTITY ................ COST
DE-9 female connector.............1........................... . 13/-
10K ohm.................................2............. ............... 0.40/- (5 resistance for 1/-)
4K7 ohm.................................3............. ............... 0.60/- (5 resistance for 1/-)
zener 4.7V..............................2............... .............. 3/-
BC547 transistor .................... 1............................. 1/-
5 wire cable .......................1/2 meter.................... 1.5/- (1m 10-wire cable for 6/-)
PCB ...................................2cm X 2cm.................. 1/- (6cm X 10cm PCB for 25/-)
bread board wire ...................1/2 m ........................ 1/-
others(soldering+light) ........................................... 3.5/- (just to round off :) )

...........................................TOTAL.. ................... 25/-


STEP2: SOLDERING

i am always confused what are the names for the PCB with eqally spaced readymade holes and the copper clad PCB on which we first get out circuit developed and then drill holes....... one of my friend told me that the first one is called circuit-breaker and the second one is PCB...... but no one in market understand the term circuit breaker.... they call them PCB and copper-clad-PCB respectively.... i am using same terms here......
i always prefer soldering on PCB over copper-clad-pcb.... i dont know why..... may be because i never found that getting copper-clad-pcb is decreasing my PCB area...... also most of the circuits i make are for the first time and i always want to be ready to modify them..... so here i am using PCB......

here is the circuit i used (thanks to all who have replied on this post and to those who have ever posted any information about it on net)........

http://img386.imageshack.us/img386/9443/circuitzc6.gif (http://imageshack.us)

now a little expaination of circuit ( i think it always enhance your confidence if you know how your circuit works.... and you can make modifications also :))
OK, the output of serial port is around 15V for logic 0, and -15V for logic 1...... hmmmm this is hazardous for ous uC..... so you can see 4.7V zeners.....the convert +15V to +4.7V(logic 1 of uC) and -15V to -1V(logic 0 of uC).....still there is a problem...... uC work on +ve logic(5V-1, 0V-0) and the circuit is giving us -ve logic..... this problem is rectified by pony prog which complements each bit before transmission.... so no worry on our side......now what about MISO line????? well for MISO signal travel from uC to serial port only and so no need for zener........


here are the snapshots of my final product

http://img175.imageshack.us/img175/9306/snap1ma2.jpg (http://imageshack.us)

http://img201.imageshack.us/img201/48/snap2qa9.jpg (http://imageshack.us)

its always handy to tag your wires so that you don't get confused.....

STEP3: CONFIGURING PONYPROG

i used ponyprog2000, available for free to download....... the only setting you need to do is in setup>interface setup.....
make settings as shown.....

http://img175.imageshack.us/img175/5582/ponyprogbo5.gif (http://imageshack.us)


STEP4: BURN BABY BURN

ok make a simple flashing led program..... debug it.... compile it.... create hex file..... load hex file in ponyprog..... attach your programmer with uC...... double check your connections..... check again..... (be triply alert for that MISO/MOSI pins)...... select write program command...... and if everything is fine you will recieve a sucess message..... this circuit has the advantage that it take care of that annoying error-24 message also......

CONGRATS..... you have your own avr programmer now....... enjoy burning.........