Authorized Online Retailers:
Buy from OSOYOO | Buy from USA | Buy from UK | Buy from DE | Buy from IT | Buy from FR | Buy from ES | ここでご購入を! |
Buy from OSOYOO | Buy from US | Buy from UK | Buy from DE | Buy from IT | Buy from FR | Buy from ES | ここでご購入を! |
In this lesson, we will add a 5-line tracking sensor to the framework built in Lesson 1. If you have not completed installation in Lesson 1, please review Lesson 1
The software in this lesson will read data from the tracking sensors and automatically guide the car to move along the black track line in the white ground.
No. | Device | Picture | Qty. | Link |
1 | Tracking Sensor | 1 | Click here to buy | |
2 | Hex Screwdriver | 1 | Click here to buy | |
3 | 7pin 25cm Female
to Female Cable |
1 | Click here to buy |
Hardware Installation:
Step 1: Start the installation from previous state of Lesson 1 . If you have installed Lesson 2, there is no need change anything, just keep the hardware wire connection as is.
Step 2: Install the 5-line tracking sensor module under the car chassis with 2pcs M3*10 hex screws, M3*30+6 copper pillars and M3 nuts as follows:
Step 3: Connect GND-VCC pin of tracking sensor module to GND-5V of the OSOYOO motor shield; connect IR1, IR2, IR3, IR4, IR5 pins to A0, A1, A2, A3, A4 with 7pin 25cm female to female cable as the following photo shows (Remember: DO NOT remove any existing wires installed in Lesson 1):
Open-source Software(IDE) |
Download IDE here: https://www.arduino.cc/en/Main/Software?setlang=en |
|
7 zip is a free zip utility that un-zips zip files |
Download 7zip here for free https://www.7-zip.org/ |
Step 1: Install latest IDE (If you have IDE version after 1.1.16, please skip this step). Download IDE from https://www.arduino.cc/en/software , then install the software.
Step 2: Download Lesson 3 sample code , unzip the download zip file lesson3.zip, you will see a folder called lesson3 .
Step 3: Connect UNO R3 board to PC with USB cable, Open IDE -> click file -> click Open -> choose code “lesson3.ino” in lesson3 folder, load the code into OSOYOO Basic Board for Arduino.
Notice: Shut off your battery or Unplug your power adapter when upload sketch code to OSOYOO Basic Board for Arduino.
Step 4: Choose corresponding board/port for your project,upload the sketch to the board.
Step 5: Adjust the sensitivity of tracking sensor modules. Turn on and hold the car and adjust the potentiometer on the tracking sensor with a cross screwdriver until you get the best sensitivity status: the signal indicator LED light will turn off when the sensor is above white ground, and the signal LED will turn on when the sensor is above the black track
Prepare a black track (the width of the black track is more than 20mm and less than 30mm) on thewhite ground. Please note that the bend angle of the track can’t be larger than 90 degrees. If the angle is too large, the car will move out of the track.
Turn on the car and put the middle of tracking sensor module facing over the black track, and then the car will move along the black track.
DownLoad Url osoyoo.com
You must be logged in to post a comment.
I am confused by your instruction here: Notice: Shut off your battery or Unplug your power adapter when upload sketch code to OSOYOO Basic Board for Arduino.
Are you telling me to make sure the power on and off push button is released in the power off position? If you are telling me to unplug the wire coming from the battery case or to remove the battery from the case, the physical force required to disconnect either of those is going to damage the wire or connectors or the circuit board eventually. If there was a graphic that showed that in a earlier lesson I missed it.
GJR
To make use safety, please make sure the power(from battery case) off, then connect the board to your PC via USB cable.
elaine, I am understanding you to mean either unplug the battery wire at connector PWR1, on the Osoyoo circuit board or to remove the battery from the battery case, before connecting the USB cable.
Thanks for the help.
GJR
I can’t do the correct movements in Lesson 3. Even after loading, the car does not recognize the black line and keeps spinning. The sensor is responding correctly. How do I run correctly?
Hello. How are you doing?
I uploaded the code for the line-tracking device, but for some reason it does seem to do what its suppose to. All the led-lights are turned on, but whenever I put on white paper with the black tape, it does not does move or do anything.