শ্রেণীঅনুসারে আর্কাইভ: প্রোগ্রামার
ইউ এস বি এ এস পি এর জন্য নতুন মাস্ক
সাজিদ মুহাইমিন চৌধুরী কর্তৃক ইউ. এস. বি, এ.ভি.আর, প্রোগ্রামার, মাইক্রোকন্ট্রোলার এ প্রকাশিত - ফেব্রুয়ারি ২০, ২০০৯ , ৮ ফাল্গুন ১৪১৫
এই মাস্ক গুলো থমাস ফিচ্যাল এর বানানো ইউ এস বি প্রোগ্রামার এর জন্য আমি বানিয়েছি। (http://www.fischl.de/usbasp/)
USBASP Programmer for AVR is working on Windows Vista
সাজিদ মুহাইমিন চৌধুরী কর্তৃক ইউ. এস. বি, এ.ভি.আর, প্রোগ্রামার এ প্রকাশিত - ফেব্রুয়ারি ১৭, ২০০৯ , ৫ ফাল্গুন ১৪১৫
Finally I could get my USB programmer to work with windows vista. Firstly, I stripped of the breadboard from all previous connections, and reconnected the circuit. This ofcourse proved fatal to two of my microcontrollers, as I accidentally connected +12V to Vcc rail, instead of the input to the 7805 IC. I connected the programmer to PC, and it said unknown device. I knew I connected the D+ and D- wires from USB port wrong. The final bread board looks like this:
I tried to search the forums. They suggested to use 2007 build of winavr, I tried that (replaced avrdude.exe in the C:\winavr\bin directory with the 2007 version). Some of them also suggested to use an older version of libusb. So I did that too. After spending an hour, I did some thing I should have done a long time ago. I clicked on the orb (start), typed ‘cmd’, so Vista start menu searched cmd.exe. I right clicked on it and selected “Run as Administrator”. Now when I typed
Beginner’s Microcontroller Programming-IV: Absolute minimalistic approach to the modified SIProg
সাজিদ মুহাইমিন চৌধুরী কর্তৃক এ.ভি.আর, এস. আই. প্রোগ, প্রোগ্রামার, মাইক্রোকন্ট্রোলার, সিরিয়াল পোর্ট প্রোগ্রামার এ প্রকাশিত - নভেম্বর ২২, ২০০৮ , ৮ অগ্রহায়ন ১৪১৫
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.
USBasp: The USB based AVR programmer
সাজিদ মুহাইমিন চৌধুরী কর্তৃক ইউ. এস. বি, এ.ভি.আর, প্রোগ্রামার, মাইক্রোকন্ট্রোলার এ প্রকাশিত - অক্টোবর ২৭, ২০০৮ , ১২ কার্তিক ১৪১৫
My laptop does not have serial port. And ponyprog, up until now, have not provided support for any USB programmers. Today, I constructed my first USB programmer on a breadboard. I had a old USB extenstion cable which was out of order as the header was slack due to wear. I cut of that part and soldered breadboard wires.
My first goal was to make a ponyprog compatible programmer that emulates parallel port. I started with: USB2LPT
Afterwards, I realized that the emulation makes programming too slow. Thus I had to move to a dedicated programmer. But I really like a GUI for inputting, especially the fusebits. AVRdude is a command prompt based programmer. A wrong fusebit setting can lock the microcontroller irrepairable by a Serial Programmer.
Then I found AVR8 Burn-O-Mat: GUI for avrdude . The interface is even better than pony prog for fuses. It actually has small comments beside fusebits. AVRdude even supports my simplified SIProg. So I proceeded to make the famous USB ASP (http://www.fischl.de/usbasp/) I forgot to connect the ICP and INT0 at first, and kept getting “Unknown USB device”. I reflashed 4 times. Finally the programmer was operational and the driver was installed successfully.
I’ll give details of my schematics later. Here is a picture of the circuit.
Update: My Programmer is working now. Read Here.
Beginner’s Microcontroller Programming-III: (Further) Simplification of the LancOs’s SI Prog the Serial Port Porgrammer
সাজিদ মুহাইমিন চৌধুরী কর্তৃক এ.ভি.আর, প্রকল্প, প্রোগ্রামার, মাইক্রোকন্ট্রোলার, সিরিয়াল পোর্ট প্রোগ্রামার এ প্রকাশিত - এপ্রিল ১৮, ২০০৮ , ৫ বৈশাখ ১৪১৫
Ok. I guess the most popular microcontrollers now a days in Bangladesh are ATmega8 and ATmega32. These microcontrollers have inverted reset, that does not work with the second circuit. So I am posting a circuit specially for these sort of noninverted IC. If your AVRs reset pin in datasheet have a bar on the name of it. ( Reset ) (or has a circle outsidethe pin of it), then this programmer is suitable for you. In the circuit diagram I have already shown the pin out of the BC 547 ic.
A friend of mine asked me to make him a cable. So I made one for him. I tested it with ATmega32.
Beginner’s Microcontroller Programming-II: (Further) Simplification of the LancOs’s SI Prog the Serial Port Porgrammer
সাজিদ মুহাইমিন চৌধুরী কর্তৃক এ.ভি.আর, এস. আই. প্রোগ, প্রোগ্রামার, মাইক্রোকন্ট্রোলার, সিরিয়াল পোর্ট প্রোগ্রামার এ প্রকাশিত - আগস্ট ২৩, ২০০৭ , ৮ ভাদ্র ১৪১৪
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
সাজিদ মুহাইমিন চৌধুরী কর্তৃক এ.ভি.আর, এস. আই. প্রোগ, প্রোগ্রামার, মাইক্রোকন্ট্রোলার, সিরিয়াল পোর্ট প্রোগ্রামার এ প্রকাশিত - মে ২৩, ২০০৭ , ৯ জ্যৈষ্ঠ ১৪১৪
(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)








সাম্প্রতিক মন্তব্যসমূহ