Categories: Robot Circuits

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:

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):

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.

circuit diagram

View Comments

Recent Posts

Guitar Synthesizer Schematic Diagram Collection

Guitar Synthesizer Schematic Diagram In this post, we provide a collection of schematic diagrams of…

54 years ago

Handy Talky HT DIY Schematic Diagram

Handy Talky Schematic Diagram This is an old electronic scheme of the Handy Talky (HT)…

54 years ago

Doorbell Ringer Birdie Tone

This is an old or "very old" schematic diagram of birdie tone or sound generator.…

54 years ago

200W MOSFET Amplifier based IRFP250N

Here is the 200W MOSFET amplifier powered based on four piece of IRFP250N, they are…

54 years ago

300W RMS Stereo Power Amplifier based IC TDA7294

This is the 300W RMS stereo power amplifier circuit project. This amplifier is based four…

54 years ago

Stereo Tone Control with Line In + Microphone Mixer

This is an active stereo tone control circuit using very well known op-amp IC of…

54 years ago