Line Follower using Atmega8
August 4, 2009
Hi all, I am new here and about to make a debut in robotics with a simple line follower robot.
I have chose AVR ATmega8 as my microcontroller because I found out that we can chose which pins we want as input and which ones as output. So this seems pretty cool for a microcontroller. Also i figured out that it is cheaply available here.
The working of my robot will be very simple. Three(or 5 if I feel later) sensors to detect white line which will be created by me. I will use a bright red LED and photoresistors to make the sensor. These sensors will give analog input to the ATmega8 which will process the data and accordingly adjust the supply for 2 DC motors(maybe using a L293D) to move the robot in different directions.
Since this is my very first robot, i want to make everything myself(means no kit, no prebuilt boards. Just a bit of advice from experienced people like you).
The things which I need to know is :
1) Is there any use of external crystal?(i dont understand the working of this crystal part and hence hope to avoid it)
2) How do I program it (The circuit schematic for the programmer.) I read the PICAXE manual and found that programming a PICAXE is easy as the circuit requires only 2 resistors. Is programming an ATmega8 simple as that?
3) What battery voltage shoud I use so that the circuit is not fried up. Also let me know the input/output current/voltage of parts for which I should take care.
The values of resistance are just for example. This is what is supposed to be my white line sensors
Another thing : I will be using Imagecraft ICC AVR software for programming the microcontroller as I once saw it and found it very easy to use. I am good with C-programming(another reason to choose AVR over PICAXE)
Hope to find help soon....thnx in advance
Soon I will start with this and upload pics as i finish it