Note: ALL OSOYOO Products for Arduino are Third Party Board which is fully compatitable with Arduino

Authorized Online Retailers:

With Battery:

Buy from USA Buy from UK Buy from DE Buy from IT Buy from FR Buy from ES Buy from JP

Without Battery:

Buy from US Buy from UK Buy from DE Buy from IT Buy from FR Buy from ES Buy from JP


Because the product is upgraded, all received are the V2.0 version, please refer to the following tutorial:

Osoyoo Model-3 V2.0 Robot Learning Kit Model#2020001700


In this lesson, we will add a 3-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.

Parts and Devices:

Hardware Installation:
Step 1: Start the installation from previous status of Lesson 1 . If you have installed Lesson 2, no need change anything, just keep the hardware wire connection as is.

Step 2: Install the 3-line tracking sensor module under the car chassis with 2pcs M3*10 screws, M3*30+6 copper pillars and M3 nuts as following:

Step 3: Connect VCC pin of tracking sensor module to 5V of sensor shield V5.0; connect L, C, R pins to A0, A1, A2; and GND to GND with 5pin 25cm female to female cable as the following photo shows (Remember: DO NOT remove any existing wires installed in Lesson 1):

Software Installation:

Notice: Shut off your battery or Unplug your power adapter when upload sketch code to Arduin.

Open-source Arduino
Download Arduino IDE here:
7 zip is a free zip
utility that un-zips zip files
Download 7zip here for free

Step 1: Install latest Arduino IDE (If you have Arduino IDE version after 1.1.16, please skip this step). Download Arduino IDE from , then install the software.

Step 2: Download Lesson 3 sample code , unzip the download zip file, you will see a folder called lesson3 .

Note: We also provide addtional two versions of tracking sketch and  

Step 3: Connect board to PC with USB cable, Open Arduino IDE -> click file -> click Open -> choose code “lesson3.ino” in lesson3 folder, load the code into arduin.

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 cross screwdriver until you get the best sensitivity status: the signal indicate LED light will turn on when sensor is above white ground, and the signal LED will turn off when the sensor is above black track


Prepare a black track (the width of the black track is more than 20mm and less than 30mm) in white ground. Please note, the bend angle of track can’t be larger than 90 degree. 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 black track, and then the car will move along the black track.