meowww

Electronics blog

AVR microcontrollers

Posted by meowww on May 29, 2009

On this blog, I will be posting some easy DIY circuits, both analog electronics and microcontroller projects. The microcontrollers I will be using are the AVR series of microcontrollers. The advantage with these microcontrollers is that they are very easy to program. If you have a parallel port in your computer, you can program a basic AVR with just 4 resistors and some wires. Also AVRs come with lots of features on-chip (UART, ADC, SPI, I2c..etc). So one chip like an ATMega16/32 can be used to learn each an every aforementioned features. In this post I will be talking about the various ways in which one can program an AVR.
HARDWARE:
The most basic way is to use a BSD programmer. One can find how to construct the programmer HERE . Its a basic programmer and needs 5 wires. You can add 4 resistors (4.7KΩ) in between the parallel port and the microcontroller pins thus ensuring no damage to the parallel port due to shorting of the data pins.
If one doesn’t have a parallel port a USB based programmer can be made. The one I prefer is the USBasp. One can get the schematic and the PCB layout on the USBasp site HERE . In this case however ATmega8 is needed in the programmer circuit. The ATmega8 should be programmed with the firmware provided. If you dont have a parallel port, get it programmed from a friend. On the USBasp website, I prefer the one schematic by J.A. de Groot.
The layout is provided, just etch it and solder the components and its ready to use.
SOFTWARE:
To program the microcontrollers a software is needed, I basically use AVRdude. It is a command line utility and simple to use. AVRdude-GUI is also available, but needs AVRdude to be installed first. To install AVRdude download WinAVR and install it, recent version of AVRdude will be included in it. AVRdude-GUI can be downloaded from HERE . Using the program is pretty simple. More on it in next posts.

Advertisement

8 Responses to “AVR microcontrollers”

  1. Sreeyesh said

    Yaay! First! :D

    Saala you totally shifted… HAHA!

    I ain’t all into the electronics stuff the way I was once. But I’ll follow this blog anyway. You’re one of the few electronics geek geniuses I know of anyway. :P

  2. Sreeyesh said

    Dude, WTF!? My comment got deleted? This sure ain’t your day, pal.

    But still. Yaay! First! D

  3. xmeowww said

    It didnot get deleted, just went for moderation :P

  4. Shahab said

    Testing : Corny is a moron ..

    Now lets see if this comes up .. :P

  5. Sreeyesh said

    Fuck off, dingbat. Keep this blog clean.

  6. Holy Shit, I nearly crapped my pants after I saw this blog link in Orkut! New Blaaag! Badhiyaa Hai! What happened to old one?

  7. Abhishek said

    Great that u started an electronics blog. I hope this’ll help electronics hobbyists & engineers a lot.

    Waise the look & feel of the blog is great. Keep this blog updated.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.