Robot Follow Indicated Color Road
by cristinepotu7171 in Circuits > Arduino
514 Views, 2 Favorites, 0 Comments
Robot Follow Indicated Color Road
How to make a follow indicated color road, with Arduino, color sensor TCS3200, infrared module and ultrasonic sensor
Supplies
1.infrared module x2
2.servo motor SG90
3.Arduino UNO
4.L298N dual bridge DC motor
5.RGB LED
6.TCS3200 color sensor
7.breadboard and wires
8.1k resistor
9.Car KIT Arduino
Schematic Diagram
Make the connections of the components according to the diagram below
Wiring and Construction
In this step we make the connections on the wiring, assemble the components and check the correctness of the conections. The device is also mechanically assembled
Upload Software and Calibrate Color Sensor
we download and install Visuino software. We open the code from the attachment. We open another window in Visuino and load in Arduino with the calibration code. We enter a color under the color sensor. We read the values as explained in the video and enter them in the robot code. You can find both codes in the attachment.
each color corresponds to 4 reading parameters as shown in the series. We enter the maximum value read and the minimum value. Values are not critical. After reading the 4 parameters for all 3 colors, RED, GREEN AND BLUE, we load the code in Arduino.
We Build the Running Track and Start the Robot
I chose to build the route from black insulating tape and colored cardboard in red, green and blue. You can choose which colors you want, but you need to recalibrate the color sensor for them. Turn on the robot with the on / off button and insert the card with the desired route color under the sensor for a split second. The robot will start following the indicated route with two stops in places chosen by each one. I hope you liked my project, whoever wants can leave a comment. All the best!