

IR sensors are placed in front side of the robot to track the drawn black line and the surface.

The IR sensors are key player in this project. The robots are not limited to only these applications and can extend its applications in many future applications. Line follower robots are used extensively now a days in manufacturing industries, medical, domestic applications and goods warehouse. Also, it should stop wherever the stop zone comes in the line. The robot should be able to detect line even if the path is altered by changing the angle and keep following the line. Although you can use other sophisticated sensors which will be able to detect all colours and can make a robot which can follow all colour lines. The IR sensors are good in detecting white or black surfaces. Mostly IR sensors are used to detect lines. Today we will use AVR microcontroller to build a Line follower Robot. Line Follower Robot Using MSP430 Launchpad.Line Follower Robot using PIC Microcontroller.Line Follower Robot using 8051 Microcontroller.Go through this link.Open atmega16 folder->open ultrasonic_test-> attach all the libraries to the AVR Studio,upload it to the board. If obstacle is detected, ‘obstacle detected" and readings appears on screen else readings appears on screen. Also, select the communication port and set baud rate as 9600. In order to observe serial data available, connect USB to TTL serial converter to a USB port in PC. Press execute to burn the code into ATmega 16/32 board. In memories section of AVRdude, browse for hexcode generated for the main source codeĪlso, check if the write button is ticked. In configuration settings, select ATmega16/32 as microcontroller. Select device as ATmega16/32 and set Frequency as 8000000 HzĬonnect USBasp USB programmer to ATmega 16/32 board. To set board and frequency go to Project>Configuration options in AVR studio. Save and Build the main program source code in AVR studio. Copy the program source code along with its attachment libraries and headers. CP2102 pinsīelow figure shows the hardware connection ULTRASONIC SENSOR PINSĪlso connect CP2102 to ATmega 16/32 microcontroller board as depicted in table below. Make clean connections for interfacing Ultrasonic sensor with ATmega 16/32 board by following these pin inter-connections. It can work on a maximum frequency of 16MHz.Most of the instructions execute in one machine cycle.It has a 16 KB programmable flash memory, static RAM of 1 KB and EEPROM of 512 Bytes.

