Professional Documents
Culture Documents
Search...
n Robotics, Embedded System, Arduino and others starting are from 1st May. Hurry Up !!! Limited Seats Only. Book Your Seat Now. Click Here to Know More
Home Electroshop Knowledge Centre Educational Workshops Training Programs Engineering Projects More
ABLab Solutions > Knowledge Centre > Sample Codes > Peripheral Features > ADC > Light Follower Robot with ATmega16 using Analog Light Sensor
Light Follower Robot with ATmega16 using Analog Light Sensor Knoweldge Centre
The light following robot is a mobile machine which is capable of detecting and following the light source on the
Sample Codes
travelling path. The concept of this light following robot is very simple. It includes two LDR sensors, one on the front
Softwares
and other on the back. When the light falls on the front LDR sensor, the robot will move in the forward direction.
Similarly, the robot will move in the backward side when the light falls on the back LDR sensor.
Most Popular Posts
In this project, we will learn How to design a light follower robot with AVR ATmega16 microcontroller using Analog
light Sensor. This robot is an automatic robot i.e no manual control is needed. The robot will move either in forward Line Follower Robot with
direction or in backward direction depending on which direction intensity of light is more. Here, we will use two ATmega16 using Analog IR
Sensor
analog light sensors to measure the intensity of light. The two sensors will be placed in the front side and back side 19,325 views
of the robot. When there is a change in intensity of light on any side of robot, the output of that particular side’s
16X2 Alphanumeric LCD Interfacing
analog light sensor value changes and this change will be detected by the ATmega16 microcontroller. But the ATmega16
14,185 views
outputs of the two analog light sensors are analog in nature, so these signals cannot be processed directly by the
microcontroller. For this, we will use the ADC of the ATmega16 microcontroller to convert the analog signals to
LED Blinking with ATmega16
digital values. After converting the analog signals of analog light sensors to digital values, the ATmega16 14,008 views
microcontroller will compare the sensor values with each other. If the front sensor value is less than back sensor
value, the ATmega16 microcontroller will send the forward control signal to the DC motor driver (L293D) of the
L293D based DC Motor Driver
robot to move the robot in forward direction and if the back sensor value is less than front sensor value, the Interfacing with ATmega16 in
ATmega16 microcontroller will send the backward control signal to the DC motor driver (L293D) of the robot to 5V Mode
9,583 views
move the robot in backward direction. The above processes of ADC conversions, sensors output comparison and
robot control continues forever till the power source is there. 4X4 Keypad Interfacing with
ATmega16 and LCD Display
8,585 views
Hardwares Required
PC to ATmega16
Communication with LED
AVR Trainer Board-100-1pc
Display
AVR USB Programmer-1pc 8,201 views
12V, 1A DC Adapter-1pc
SinaProg Hex Downloader
Analog Light Sensor-2pcs Software
7,968 views
DC Motor Driver-1pc
Robot-1pc Accelerometer based Hand
1 to 1 Connector-7pcs Gesture Controlled Robot
with ATmega32
10 to 10 FRC Female Connector-2pcs 7,890 views
AVR Studio 4
16X2 Alphanumeric LCD
WinAVR -2010 Interfacing with ATmega32
SinaProg Hex Downloader 6,700 views
USBasp Driver
http://www.ablab.in/llightfollowerrobotwithavratmega16microcontrollerusinganaloglightsensor/ 1/10
8/9/2016 Light Follower Robot with AVR ATmega16 Microcontroller using Analog Light Sensor
DTMF based
Mobile/Cellphone Controlled
Robot with ATmega16
4,473 views
//**************************************************************//
7-Segment Display Interfacing with
ATmega16
#include<avr/io.h> 3,896 views
/*Includes io.h header �le where all the Input/Output Registers and its Bits are de�ned for all AVR
microcontrollers*/
(microsecond delay)*/
http://www.ablab.in/llightfollowerrobotwithavratmega16microcontrollerusinganaloglightsensor/ 2/10
8/9/2016 Light Follower Robot with AVR ATmega16 Microcontroller using Analog Light Sensor
int main(void)
LED Interfacing with
{ ATmega16
3,811 views
DDRB=0x0f;
HC-06 Bluetooth Module
/*PB0,PB1,PB2 and PB3 pins of PortB are declared output ( i/p1,i/p2,i/p3,i/p4 pins of DC Motor Driver are
Interfacing with ATmega16
connected )*/ 3,785 views
PC to ATmega32
/*Start of in�nite loop*/
Communication with LCD
while(1) Display
{ 3,546 views
00 to 99 Display in Quad 7-
}
Segment Display with
else if(back_sensor_value < front_sensor_value) ATmega32
3,137 views
{
Analog to Digital Converter of
PORTB=0x05; ATmega16 with LED Display
3,127 views
/*Robot will move in reverse direction*/
}
else
4X4 Keypad Interfacing with
{ ATmega32 and LCD Display
3,087 views
;
Character Display in 128X64
/*Null statement*/ Graphical LCD with
ATmega32
} 2,828 views
}
DS1307 RTC Interfacing with
ATmega32 and LCD Display
http://www.ablab.in/llightfollowerrobotwithavratmega16microcontrollerusinganaloglightsensor/ 3/10
8/9/2016 Light Follower Robot with AVR ATmega16 Microcontroller using Analog Light Sensor
The step-by-step connection guide for Light Follower Robot with ATmega16 using Analog Light Sensor project is as
follows: Products on Sale
Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.
Sale!
Tech Ambassador Program
AVR Trainer Board and Programmer
Combo
Rs.1,100.00
Rs.1,000.00
Add to cart
Connect PortB header of AVR Trainer Board-100 with Input header of DC Motor Driver with a 10 to 10 FRC
Sale!
Female Connector.
Rs.800.00
Rs.700.00
Add to cart
Sale!
Connect the 12V pin of PWM & Motor Voltage header of DC Motor Driver with the 12V header of AVR Trainer
Board-100 with a 1 to 1 Connector.
ABLab Solutions
http://www.ablab.in/llightfollowerrobotwithavratmega16microcontrollerusinganaloglightsensor/ 4/10
8/9/2016 Light Follower Robot with AVR ATmega16 Microcontroller using Analog Light Sensor
Tech Ambassador Program
AVR USB Programmer
Rs.350.00
Rs.300.00
Add to cart
Find us on Facebook
Connect the Robot connector to the Output header of the DC Motor Driver.
ABLab Solutions
http://www.ablab.in/llightfollowerrobotwithavratmega16microcontrollerusinganaloglightsensor/ 5/10
8/9/2016 Light Follower Robot with AVR ATmega16 Microcontroller using Analog Light Sensor
Tech Ambassador Program
Connect the VCC and GND pins of two Analog Light Sensor with 5V and GND header pins of AVR Trainer Board-
100 with 1 to 1 connectors.
Connect the O/P pins two Analog Light Sensor with PA0 and PA1 pins of PortA header of AVR Trainer Board-100
with 1 to 1 Connectors.
ABLab Solutions
http://www.ablab.in/llightfollowerrobotwithavratmega16microcontrollerusinganaloglightsensor/ 6/10
8/9/2016 Light Follower Robot with AVR ATmega16 Microcontroller using Analog Light Sensor
Tech Ambassador Program
Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer
with a 10 to 10 FRC Female Connector.
Connect the AVR USB Programmer to the PC/Laptop’s USB Port directly or with the help of USB AM-AF Cable.
ABLab Solutions
http://www.ablab.in/llightfollowerrobotwithavratmega16microcontrollerusinganaloglightsensor/ 7/10
8/9/2016 Light Follower Robot with AVR ATmega16 Microcontroller using Analog Light Sensor
Tech Ambassador Program
Download Light Follower Robot with ATmega16 using Analog Light Sensor Hex �le to AVR Trainer Board-100 with
the help of SinaProg Hex downloader and AVR USB Programmer.
Switch on the power with the help of Power Switch of AVR Trainer Board-100 and see the output.
ABLab Solutions
http://www.ablab.in/llightfollowerrobotwithavratmega16microcontrollerusinganaloglightsensor/ 8/10
8/9/2016 Light Follower Robot with AVR ATmega16 Microcontroller using Analog Light Sensor
Tech Ambassador Program
Download Materials
Light Follower Robot with ATmega16 using Analog Light Sensor Code v1.1 174 downloads 13.16 KB
Download (http://www.ablab.in/?wpdmdl=6728)
Download (http://www.ablab.in/?wpdmdl=6638)
Related Posts
http://www.ablab.in/llightfollowerrobotwithavratmega16microcontrollerusinganaloglightsensor/ 9/10
8/9/2016 Light Follower Robot with AVR ATmega16 Microcontroller using Analog Light Sensor
Leave a Reply
Tech Ambassador Program
You must be logged in to post a comment.
Sitemap | Privacy Policy | Terms & Conditions Copyright © 2016 ABLab Solutions Powered by SPIS
ABLab Solutions
http://www.ablab.in/llightfollowerrobotwithavratmega16microcontrollerusinganaloglightsensor/ 10/10