White Line Follower Using TIVA Board

by earnest vekariya in Circuits > Electronics

3147 Views, 19 Favorites, 0 Comments

White Line Follower Using TIVA Board

WP_20160707_19_20_39_Pro.jpg

Project is about making line following robot using TIVA board.For devolping this robot,the modules used are ADC,PWM and GPIO.Using ADC pin,conversion of analog value of white line sensor to digital value.PWM pin is used for controlling the speed of motor and GPIO pin can be used for moving motor clockwise and anti-clockwise.One additional module of EEPROM is also included.EEPROM is used to store the threshold value of the sensor so if robot is again turn on, the robot will regain it's value from EEPROM.Thus,no need to calibrate sensor every time and also it can perform auto-calibration of sensor.In this function ,the threshold value of black and white line are stored in EEPROM.On pressing of sw1 switch it goes to calibration mode and does the calibration by storing threshold value in EEPROM.Thus,every time calibration is not needed and as the value is stored in EEPROM,it can be regained after restarting the robot.Thus,every time we don't need to calibrate as the value is stored in EEPROM.

Hardware Required:

WP_20160708_20_49_35_Pro.jpg

Hardware required for assembling robot are shown in figure.

Assemblying Chassey of Robot

WP_20160708_20_50_18_Pro.jpg

Assemble the body of robot.Apply the glue gun at the bottom of the chassey so it remain stable.

Attaching Acuater:

WP_20160708_20_59_54_Pro.jpg

Attaching the dc motor and wheel through screw

Attaching White Line Sensor and Increasing Height:

img5.png

Due,to less space we need to increase the height.Increase the height of top through the support as shown in figure and also attach the white line sensor.AS, on increasing the height of robot,the body will remain loss,so apply glue gun so chassey of robot becames stable.

Devolping Pcb:

pcb.png

Now on genral pcb make the connection as shown in figure.

Assembly and Calibration:

WP_20160705_15_41_55_Pro.jpg

Connect the motor driver ic, white line sensor with tiva. Now,load the program and on the debug mode.Add variable x,y,z as watch expression and observe the value on computer.This procedure enables to varify if robot is working properly or not.

Adding Power Bank and Battery:

img4.png

Attach the power bank and also connect 9 volt battery to motor driver ic.Additional 9 volt battery is connected because power from TIVA board was not adequate to run DC motor. final robot will look as shown in figure.

Flowchart

editflowchart.png

As per flowchart,robot will take continously right turn untill right turn condition is satisfied.Now,if right turn condition is not satisfied and left turn condition is satisfied than it will continously take left turn untill condition is satisfied.If above two condition are not satisfied than it will continue forward motion.

There is a timer interrupt of every 10ms which will varify weather switch is pressed or not.If switch is pressed than it will go to autocalibration mode and calibrate the robot.The value of calibration will be stored in EEPROM so we don't need to calibrate the robot again.

Video

Project Line Follower