ATmega16 Line Follower Robot

Here the complete electrical circuit diagram of line follower robot which built based on ATmega16. There are three modules of line follower robot circuit that are sensor module, microcontroller module and DC motor module.

IR sensor schematic diagram:

ATmega16 Line Follower Robot - IR robot sensor circuit

The robot uses IR sensors to sense the line, an array of 8 IR LEDs (Tx) and sensors (Rx), facing the ground has been used in this setup. The output of the sensors is an analog signal which depends on the amount of light reflected back, this analog signal is given to the comparator to produce 0s and 1s which are then fed to the uC

Mainboard (microcontroller + DC motor driver schematic diagram):

atmega16 robot design

The L298 Motor Driver has 4 inputs to control the motion of the motors and two enable inputs which are used for switching the motors on and off. To control the speed of the motors a PWM waveform with variable duty cycle is applied to the enable pins. Rapidly switching the voltage between Vs and GND gives an effective voltage between Vs and GND whose value depends on the duty cycle of PWM. 100% duty cycle corresponds to voltage equal to Vs, 50 % corresponds to 0.5Vs and so on. The 1N4004 diodes are used to prevent back EMF of the motors from disturbing the remaining circuit. Many circuits use L293D for motor control, I chose L298 as it has current capacity of 2A per channel @ 45V compared to 0.6 A @ 36 V of a L293D. L293D’s package is not suitable for attaching a good heat sink, practically you can’t use it above 16V without frying it. L298 on the other hand works happily at 16V without a heat sink, though it is always better to use one.

Download the document of ATmega16 line follower robot tutorial for complete tutorial including the working explanation of circuit and program, source code and schematic diagram.

4 thoughts on “ATmega16 Line Follower Robot

  1. Moh

    Hi, and very thanks for great description but sadly the document link is broken so I couldn’t get it. I’ll be happy if you send it to my mail bcuz I need it very much

  2. Arun Patel

    Nice discreption it helps the students.
    Sir, please tell me the complete circuit diagram of line follower robot with microcontroller

  3. saujevan

    Hi sir,I want to make a line follower robot without microcontroller, so please sir tell me the complete circuit diagram equipment required.

  4. ashish srivastava

    nyc discription it really hels me alot………..

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.