Archive for category SIProg
Beginner’s Microcontroller Programming-IV: Absolute minimalistic approach to the modified SIProg
Posted by Sajid Muhaimin Choudhury in Microcontroller, SIProg, Serial Port Programmer, avr, programmer on November 22nd, 2008 , 8 Agrohayon 1415
Ok, before I startered this project, I tried to construct the USBasp and USBtiny, and was not successful with bread board. I am planning to make a better version of the USBasp in PCB, but at the moment I tried to make a really small SI Prog. It will be so small that the entire veroboard will fit into a standard serial port connector casing. I just bought one from Patuatuli:
To fit the veroboard into the small casing, you can maximum fit a 6×6 hole veroboard piece into it, by properly polishing the sides, the central piece could be two hole longer. As the header is inserted into the box, the backside of the header blocks the first row. With only five holes, I thought, at first it would be impossible to fit my circuit (http://sajiduc.blogspot.com/2008/04/beginners-microcontroller-programming.html) here.
Beginner’s Microcontroller Programming-II: (Further) Simplification of the LancOs’s SI Prog the Serial Port Porgrammer
Posted by Sajid Muhaimin Choudhury in Microcontroller, SIProg, Serial Port Programmer, avr, programmer on August 23rd, 2007 , 8 Bhadro 1414
Thanks to all of you who tried my previous version of SI prog. One of my friends tried to implement it on his vero-board and it did not work. I gave him my previous one to test. Now there is a Curfew going on in Bangladesh so I could not get his one. So I tried to rebuild the previous circuit. It just did not work! I was flummoxed, and spent a whole day on it. Today I took a good look at the LancOs circuit and found out that they uses two separate reset lines, one through the collector of a BJT, and the another directly through a Zener Diode regulator. In my second circuit, I had omitted the sener regulator part, and had just used the BJT. Luckily I kept some extra space in my vero-board this time, and added the extra resistor and zener diode regulator. I was all out of 4.7K resistors and can’t go to the shop right now (because of the curfew), so I used 1.7Ks merely hoping that they would not fry my serial port. I disconnected the previous reset line (through the BJT) and connected the zener regulated version to the bread board, and it works!!! So I think for microcontrollers not having non inverted reset, this simpler circuit would be just fine.
My previous vero-board plan had errors, so I would not dare to make another one this time. My new veroboard is also not optimized, so I am not uploading any pictures. The entire circuit can be fitted inside a DB9 connector I believe. So AVR fans, please try it out. I’ll try to make a version like that when I manage to get some helping hands. (I am terrible when it comes to soldering.)
Please note that you are trying these circuits AT YOUR OWN RISK. Please don’t come back to me crying you have fryed your serial port, mother board, or the microcontroller. I take absolutely no responsibilities for any injuries or equipment damages.
Beginner’s Microcontroller Programming: Simplification of the LancOs’s SI Prog
Posted by Sajid Muhaimin Choudhury in Microcontroller, SIProg, Serial Port Programmer, avr, programmer on May 23rd, 2007 , 9 Joishtho 1414
(Note: If you are looking for a beginners tutorial, you may proceed to: http://sajiduc.blogspot.com/2008/10/really-beginners-microcontroller-guide.html)
Most beginners of microcontroller programming need a cheap microcontroller programmer to play around. Most universal programmers are quite expensive, so beginners now try to start with S51 from 8051 series, and AVRs which support In-System-Programming (ISP) capability.
To load program in a microcontroller via ISP, various types of programmers have been constructed. The most popular one is perhaps the STK200 variants, one of which can be found in Peter Fleury’s website.
But these variants have some limitations. The cable length should be less than 70cm, and some people have claimed that this device damages the parallel port after using it several times.
LancOs has made a program called ponyprog to load programs into the microcontroller using various types of programmers. It supports the STK200, aswell as programming of other devices. STK200 cannot program PIC microcontrollers (to the best of my knowledge) LancOs has designed a programmer that can program all the devices supported by pony prog. This device can program AVR, PIC-12, PIC-16 and various other microcontrollers and eeproms. (To see the full list go to: http://www.lancos.com/prog.html) The schematic of the SI-prog can be obtained from Lancos web site. Their schematic is great, that uses PCs serial ports drained power to program microcontrollers. They also have optional jumpers to feed in external power to the circuit. The schematic is like this: (click to open)
If you take a good look at the schematic, you will find that the circuit is quite complicated. It might be good for professionals (I’m not sure if it is for professionals) but I thought that for beginners the circuit should be simplified a bit.
If you take a good look at the circuit, you’ll see that a lot of mumbo-jumbos have been done just to drain power from the serial port. I thought that it was unnecessary. If you are not too fuzzy about power, you can just use a 7805 IC and use an adapter to power your microcontroller on your bread board. If that is done, you can omit all the switching diodes (4148s) and the rare-to-find voltage regulator (LM2936Z-5). (I couldn’t find it in my country, Bangladesh, the shopkeeper demanded that it was just equivalent to 78L05, but the Lancos sheet asks not to use a 78L05)
The total circuit then dramatically reduces to:
(Note the pin numbers here
Note: If you connect pin-4 of parallel port directly with a wire to represent it as MISO, and omit the last track of the veroboard, you can fit the entire circuit inside a serial port connector. But I personally prefer to keep the programmer circuit as close to my bread board as possible.
I took some photographs:


Once you have constructed it on a veroboard you can use Peter Fleury’s circuit to test. Just connect the appropriate MOSI, MISO, SCK, GND, RESET lines, and write the program using pony prog.
Note: Questions and Comments are welcome: robin boss (at_the_rate) gmail (dot) com (Exclude the spaces and type properly if you are a human, and not a webcrawler….)
(If you are an absolute new bee, then you probably need to visit this page first to see how the things look like: http://ahsanuc.blogspot.com/)
![[Bloglines]](http://www.sajidmc.net/wp-content/plugins/bookmarkify/bloglines.png)
![[del.icio.us]](http://www.sajidmc.net/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://www.sajidmc.net/wp-content/plugins/bookmarkify/digg.png)
![[Facebook]](http://www.sajidmc.net/wp-content/plugins/bookmarkify/facebook.png)
![[Google]](http://www.sajidmc.net/wp-content/plugins/bookmarkify/google.png)
![[Twitter]](http://www.sajidmc.net/wp-content/plugins/bookmarkify/twitter.png)
![[Yahoo!]](http://www.sajidmc.net/wp-content/plugins/bookmarkify/yahoo.png)
![[Email]](http://www.sajidmc.net/wp-content/plugins/bookmarkify/email.png)



Recent Comments