Dr. Sajid Muhaimin Choudhury

>

image
Hello,

I'm Dr. Sajid Muhaimin Choudhruy

I am currently working in the Department of Electrical and Electronic Engineering of Bangladesh University of Engineering and Technology, Dhaka-1205. My official website is located at sajid.buet.ac.bd. I previously maintained various personal blogs and websites (sajidmc.net). I decided to move to a permanent web solution to host all my previous blogposts.

Blog

[AVR Programmer] (Further) Simplification ofthe 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.

[AVR Programmer] Simplification of the LancOs'sSI 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/)

Update: I suggest you take a look at the further stripped down version here: http://sajiduc.blogspot.com/2008/04/beginners-microcontroller-programming.html)

Project Gutenberg: Enlightening the World Digitally

When I was a little boy, I liked classic books. My mother used to buy books of, Children's Fairytales, Edgar Rice Burroughs' 'Tarzan Shamagra'; Arthur Conan Doyle's 'Sherlock Holmes Shamagra' all translated in Bengali. When I grew up, (I am twenty now), I wanted to read the original English versions of those books. But if you want to buy good quality English books, they may cost you as much $20. Moreover, it is not easy to find all old and famous books in a Bangladeshi book-shop. The book-stalls usually keep books that have higher demands in the market. An alternative solution to obtain copyright-expired books legally is also available today. You can try to read a book by downloading it and then reading it from your computer. Such computerized versions of books are known as electronic-book, or e-book.
There are many sites to download free electronic books. Microsoft has developed its own standard for e-books like the MS Reader format. A lot of free e-books can be found from Microsoft's library, University of Virginia's E-taxt library or Google Book Search. But the oldest and perhaps most famous digital library in the internet is still project Gutenberg.

Project Gutenberg: What it is

Project Gutenberg is a collection of different old texts, copyright-expired materials, drama etc. People of Project Gutenberg define it as "a volunteer effort to digitize, archive, and distribute cultural works." It was founded in 1971 by Michael Hart and is the oldest digital library. Most of the items in its collection are the full texts of public domain books. The project aims at keeping the books "as free as possible".

For that reason most of the books are stored in simple text (ASCII) format that can even be opened from a DOS based operating system. Some books are even stored in MP3 Audio format.

Meaning of 'Free' is 'Freedom'

What is 'Free'? Project Gutenberg tells us actually there are two types of 'free-ness one is free as 'free of charge' and the other is free as 'freedom'. Free of charge means that you don't have to pay for the book you received. Freedom denotes that you may do as you like with the book you received. As for example you might receive a complementary copy of a book from a writer free of charge, but copying the book, redistributing it, or even lending it to a friend causes an infringement of the Copyright act. On the other hand, free as in 'freedom' means you may just copy, redistribute, or even reprint and sell the book. So free as in freedom beats free of charge. Almost all Porject Gutenberg e-books are both free of charge and free as in freedom.

The history of Project Gutenberg

The Founder Michael Hart was a student at the University of Illinois in 1971. He got access to a Xerox Sigma V mainframe Computer in the university's Materials Research Lab. Through friendly operators, he received an account with a virtually unlimited amount of computer time. (Computers were expensive those days, unlike today, where all of us have virtually unlimited computer time) Its value at that time has since been variously estimated at $100,000 or $100,000,000. Hart wanted to repay this gift by doing something that could be considered to be of great value.

Incidentally, that particular computer was one of the 15 nodes on the computer network that later became part of the Internet. At that time Hart also believed that computers would one day be accessible to the general public and decided to make works of literature available in electronic form for free. He used a copy of the United States Declaration of Independence in his backpack, and this became the first Project Gutenberg e-text. He named the project after Johannes Gutenberg. Johannes Gutenberg was a German goldsmith and inventor and is usually considered to have invented the European technology of printing with movable type in 1447.

By the mid 90s, Hart was running Project Gutenberg from Illinois benedictine college. More volunteers had joined the effort. Hart later came to an arrangement with Carnegie Mellon University, which agreed to Administer Project Gutenberg's finances. As the volume of e-texts increased, volunteers began to take over the project's day-to-day operations that Hart had run.

In 2000, the Project Guetnberg Literary Archive Foundation, Inc. was chartered as a non-profit corporation, in Mississippi to handle the project's legal needs. Project Gutenberg is now hosted by ibiblio at the University of North Carolina at Chapel Hill. At first most text was entered namually through typing until image scanners and optical character recognition software improved and became more widely available, which made book scanning more feasible.

Books available

You can browse though the enormous collection of books in the Project Gutenberg's official website. The address is www. gutenberg. org If you are fond of classic books like me, then you'll probably love it.


The site has books of Homer and William Shakespeare. You'll get old thrillers like The Adventures of Sherlock Holmes (Sir Arthur Conan Doyle), Adventures stories like The Adventures of Huckleberry Finn (Mark Twain), novels like Pride and Prejudice (Jane Austen), priceless books like The Notebooks of Leonardo Da Vinci, written by Da Vinci himself, Grimm's Fairy Tales by Jacob Grimm and Wilhelm Grimm, The Legend of Sleepy Hollow (Washington Irving), Moby Dick, (Herman Melville) or even Albert Einstein's Relativity: the Special and General Theory. Various translations of the Holy Qu'ran by the most famous translators such as Abdullah Yusuf, Marmaduke Pickthall, and Rodwell are available.
You'll also get all books of Charles Dickens, Edgar Allan Poe, HG Wells, Jules Verne, Sir Walter Scott, Oscar Wilde, Edgar Rice Burroughs, Plato, Robert Louis Stevenson, and Jonathan Swift.

Thousands of books are downloaded every day from project Gutenberg. More than 2215410 persons downloaded books in the month of October 2006, only from their main main site. (Project Gutenberg records IP address of each computer, and does not count multiple downloads from the same IP address more than once.) But the servers are usually quite fast. Gutenberg maintains many mirrors (copies) of its archives on all seven continents.

The CDs and DVDs

The sweetest thing about Project Gutenberg is probably this distribution of CDs and DVDs. The CDs of Project Gutenberg contains their most popular 800 books, while the DVD contains the first 10000 books. The volunteers of Project Gutenberg distribute these CDs and DVDs absolutely free of charge. I requested for both a CD and a DVD of all the books, and got both in two months. After you have received a CD or a DVD, Project Gutenberg encourages you to re-distribute it to your friends, family or other people.

Precaution


You might face some problems when reading a book on the computer screen. For example, looking at the computer monitor screen, especially if it is an ordinary CRT screen for a long time may harm your eyes. Reading a book on the computer screen for hours is very strenuous for eyes. So if you can afford, try to take a printout of the book and then read. If you prefer reading the books on the computer scree
n, you should avoid reading for too long. Take a brake some time, and try to wash your eyes with cold water when possible. The Gutenberg e-books are normally in ASCII format, and thus they are by default viewed in the Notepad. Try changing the default font of notepad to a more eye-soothing font (Like Comic Sans MS), or download a better text viewer to read the books. The users with poor eyesight can increase the font size and read the books comfortably.
Project Gutenberg is intentionally decenralized. There is no selection policy dictating what texts to add. Instead, individual volunteers work on what they are interested in, or have available. The Project Gutenberg collection is intended to preserve items for the long term, so they cannot be lost by any one localized accident. In an effort to ensure this, the entire collection is backed-up regularly and mirrored on servers in many different locations.

Project Gutenberg aims at digitalizing and distributing all the famous but copyright-expired texts in the world. They accept e-books in any language if there are enough volunteers to contribute. We, the Bengalis should therefore give some thought about preserving and distributing out own literature through project Gutenberg.


Published in Star Campus, a feature magazine of the Daily Star.
http://www.thedailystar.net/campus/2007/02/02/feature_gutenberg.htm

When I was a little boy, I liked classic books. My mother used to buy books of, Children's Fairytales, Edgar Rice Burroughs' 'Tarzan Shamagra'; Arthur Conan Doyle's 'Sherlock Holmes Shamagra' all translated in Bengali. When I grew up, (I am twenty now), I wanted to read the original English versions of those books. But if you want to buy good quality English books, they may cost you as much $20. Moreover, it is not easy to find all old and famous books in a Bangladeshi book-shop. The book-stalls usually keep books that have higher demands in the market. An alternative solution to obtain copyright-expired books legally is also available today. You can try to read a book by downloading it and then reading it from your computer. Such computerized versions of books are known as electronic-book, or e-book.

There are many sites to download free electronic books. Microsoft has developed its own standard for e-books like the MS Reader format. A lot of free e-books can be found from Microsoft's library, University of Virginia's E-taxt library or Google Book Search. But the oldest and perhaps most famous digital library in the internet is still project Gutenberg.

Project Gutenberg: What it is

Project Gutenberg is a collection of different old texts, copyright-expired materials, drama etc. People of Project Gutenberg define it as "a volunteer effort to digitize, archive, and distribute cultural works." It was founded in 1971 by Michael Hart and is the oldest digital library. Most of the items in its collection are the full texts of public domain books. The project aims at keeping the books "as free as possible".

For that reason most of the books are stored in simple text (ASCII) format that can even be opened from a DOS based operating system. Some books are even stored in MP3 Audio format.

Meaning of 'Free' is 'Freedom'

What is 'Free'? Project Gutenberg tells us actually there are two types of 'free-ness one is free as 'free of charge' and the other is free as 'freedom'. Free of charge means that you don't have to pay for the book you received. Freedom denotes that you may do as you like with the book you received. As for example you might receive a complementary copy of a book from a writer free of charge, but copying the book, redistributing it, or even lending it to a friend causes an infringement of the Copyright act. On the other hand, free as in 'freedom' means you may just copy, redistribute, or even reprint and sell the book. So free as in freedom beats free of charge. Almost all Porject Gutenberg e-books are both free of charge and free as in freedom.

The history of Project Gutenberg

The Founder Michael Hart was a student at the University of Illinois in 1971. He got access to a Xerox Sigma V mainframe Computer in the university's Materials Research Lab. Through friendly operators, he received an account with a virtually unlimited amount of computer time. (Computers were expensive those days, unlike today, where all of us have virtually unlimited computer time) Its value at that time has since been variously estimated at $100,000 or $100,000,000. Hart wanted to repay this gift by doing something that could be considered to be of great value.

Incidentally, that particular computer was one of the 15 nodes on the computer network that later became part of the Internet. At that time Hart also believed that computers would one day be accessible to the general public and decided to make works of literature available in electronic form for free. He used a copy of the United States Declaration of Independence in his backpack, and this became the first Project Gutenberg e-text. He named the project after Johannes Gutenberg. Johannes Gutenberg was a German goldsmith and inventor and is usually considered to have invented the European technology of printing with movable type in 1447.

By the mid 90s, Hart was running Project Gutenberg from Illinois benedictine college. More volunteers had joined the effort. Hart later came to an arrangement with Carnegie Mellon University, which agreed to Administer Project Gutenberg's finances. As the volume of e-texts increased, volunteers began to take over the project's day-to-day operations that Hart had run.

In 2000, the Project Guetnberg Literary Archive Foundation, Inc. was chartered as a non-profit corporation, in Mississippi to handle the project's legal needs. Project Gutenberg is now hosted by ibiblio at the University of North Carolina at Chapel Hill. At first most text was entered namually through typing until image scanners and optical character recognition software improved and became more widely available, which made book scanning more feasible.

Books available

You can browse though the enormous collection of books in the Project Gutenberg's official website. The address is www. gutenberg. org If you are fond of classic books like me, then you'll probably love it.

The site has books of Homer and William Shakespeare. You'll get old thrillers like The Adventures of Sherlock Holmes (Sir Arthur Conan Doyle), Adventures stories like The Adventures of Huckleberry Finn (Mark Twain), novels like Pride and Prejudice (Jane Austen), priceless books like The Notebooks of Leonardo Da Vinci, written by Da Vinci himself, Grimm's Fairy Tales by Jacob Grimm and Wilhelm Grimm, The Legend of Sleepy Hollow (Washington Irving), Moby Dick, (Herman Melville) or even Albert Einstein's Relativity: the Special and General Theory. Various translations of the Holy Qu'ran by the most famous translators such as Abdullah Yusuf, Marmaduke Pickthall, and Rodwell are available.

You'll also get all books of Charles Dickens, Edgar Allan Poe, HG Wells, Jules Verne, Sir Walter Scott, Oscar Wilde, Edgar Rice Burroughs, Plato, Robert Louis Stevenson, and Jonathan Swift.

Thousands of books are downloaded every day from project Gutenberg. More than 2215410 persons downloaded books in the month of October 2006, only from their main main site. (Project Gutenberg records IP address of each computer, and does not count multiple downloads from the same IP address more than once.) But the servers are usually quite fast. Gutenberg maintains many mirrors (copies) of its archives on all seven continents.

The CDs and DVDs

The sweetest thing about Project Gutenberg is probably this distribution of CDs and DVDs. The CDs of Project Gutenberg contains their most popular 800 books, while the DVD contains the first 10000 books. The volunteers of Project Gutenberg distribute these CDs and DVDs absolutely free of charge. I requested for both a CD and a DVD of all the books, and got both in two months. After you have received a CD or a DVD, Project Gutenberg encourages you to re-distribute it to your friends, family or other people.

Precaution

You might face some problems when reading a book on the computer screen. For example, looking at the computer monitor screen, especially if it is an ordinary CRT screen for a long time may harm your eyes. Reading a book on the computer screen for hours is very strenuous for eyes. So if you can afford, try to take a printout of the book and then read. If you prefer reading the books on the computer scree
n, you should avoid reading for too long. Take a brake some time, and try to wash your eyes with cold water when possible. The Gutenberg e-books are normally in ASCII format, and thus they are by default viewed in the Notepad. Try changing the default font of notepad to a more eye-soothing font (Like Comic Sans MS), or download a better text viewer to read the books. The users with poor eyesight can increase the font size and read the books comfortably.

Project Gutenberg is intentionally decenralized. There is no selection policy dictating what texts to add. Instead, individual volunteers work on what they are interested in, or have available. The Project Gutenberg collection is intended to preserve items for the long term, so they cannot be lost by any one localized accident. In an effort to ensure this, the entire collection is backed-up regularly and mirrored on servers in many different locations.

Project Gutenberg aims at digitalizing and distributing all the famous but copyright-expired texts in the world. They accept e-books in any language if there are enough volunteers to contribute. We, the Bengalis should therefore give some thought about preserving and distributing out own literature through project Gutenberg.

Published in Star Campus, a feature magazine of the Daily Star.
http://www.thedailystar.net/campus/2007/02/02/feature_gutenberg.htm



Visit My Official Website at BUET

Contact Me
Sajid Choudhury
+9665650
Dhaka, Bangladesh