OSOYOO V2.1 User manual

1
Table of Contents
OSOYOO V2.1 Robot Car Kit for Arduino..................................................................................0
Preface.............................................................................................................................................3
Safety Instruction........................................................................................................................3
About OSOYOO.........................................................................................................................3
About This Kit..............................................................................................................................3
Online Tutorial Index:.................................................................................................................3
Customer Service and Tech Support.......................................................................................4
OSOYOO V2.1 Robot car kit Lesson 0: Introduction................................................................5
Parts and Devices......................................................................................................................6
Basic Tutorials...........................................................................................................................10
Tutorial and sample projects...................................................................................................11
OSOYOO V2.1 Robot car kit Lesson 1: Basic robot car assembly......................................12
Objective....................................................................................................................................12
Parts and Devices....................................................................................................................12
Hardware Installation...............................................................................................................15
Install device................................................................................................................ 16
Connection................................................................................................................... 19
Software Installation.................................................................................................................24
Final Testing:.............................................................................................................................26
OSOYOO V2.1 Robot car kit Lesson 2: IR Remote Control Robot Car ..............................28
Objective....................................................................................................................................28
Parts and Devices....................................................................................................................28
Hardware Installation...............................................................................................................29
Software Installation.................................................................................................................30
Testing........................................................................................................................................32
Trouble shooting.......................................................................................................................33
OSOYOO V2.1 Robot car kit Lesson 3: Object follow Robot car.........................................35
Objective .................................................................................................................................35
Parts and devices ................................................................................................................35
Hardware installation .........................................................................................................36
Software installation...........................................................................................................39
Adjust the sensitivity of IR Obstacle Avoidance modules...................................................41
Final testing ...........................................................................................................................41
OSOYOO V2.1 Robot car kit Lesson 4: Tracking Line Robot Car........................................43
Objective:...................................................................................................................................43
Parts and Devices....................................................................................................................44
Hardware Installation...............................................................................................................45
Software Installation.................................................................................................................46
Adjust the sensitivity of tracking sensor modules................................................................48

2
Testing........................................................................................................................................48
OSOYOO V2.1 Robot car kit Lesson 5: ObstacleAvoidance Robot Car............................50
Objective....................................................................................................................................50
Parts and Devices....................................................................................................................50
Hardware Installation...............................................................................................................52
Software Installation.................................................................................................................56
Ultrasonic sensor servo initial direction alignment..............................................................58
Final Testing..............................................................................................................................58
Osoyoo V2.1 Robot Car Lesson 6: Use Wifi to control an IoT Robot Car...........................60
Objective....................................................................................................................................60
Parts and Devices....................................................................................................................60
Hardware Installation...............................................................................................................62
Software Installation.................................................................................................................66
A) STA mode................................................................................................................ 69
B) AP mode .................................................................................................................. 70
Final testing...............................................................................................................................71
Osoyoo V2.1 Robot Car Lesson 7: Imitation Driving with Bluetooth APP...........................73
Objective....................................................................................................................................73
Parts and Devices....................................................................................................................73
Hardware Installation...............................................................................................................74
Software Installation.................................................................................................................76
Explanation of APP UI .......................................................................................................78
Drive your Robot Car .........................................................................................................79
Arduino V2.1 Robot Car Lesson 8: Fighting Game.................................................................81
Objective....................................................................................................................................81
Parts and Devices....................................................................................................................81
Hardware Installation...............................................................................................................82
Software Installation.................................................................................................................83
Play the Fighting Game...........................................................................................................84

3
Preface
Safety Instruction
Please turn off battery power when your Robot is connected to Personal
Computer or Laptop via USB cable
Do not plug or unplug and wire or module when power is on,
Do not even touch the board when power is on or your hand has static
charge (you can move static charge by touching metal tap).
Reversing +/- when connecting modules with OSOYOO board for
Arduino, or incorrectly connecting can destroy your electronics and cause fire
hazard.
Please make sure polar direction is correct when you install batteries in
your battery box, otherwise it can destroy your device and cause fire hazard.
Please don’t use Carbon zinc batteries as power, as output current of this
kind of battery is too low and it is unable to load the robot car
Do not leave batteries in battery box if you don’t use it for long time due to
the risk of fire and malfunction.
About OSOYOO
OSOYOO brand owned by Pinetree Electronics Ltd, the only Canadian Owned
Science Fair Supplier, Circuit Builder, IOT,Autonomous Smart Machine, Home
Electronics Workshop and Arduino Accessory Company.
Pinetree Electronics Ltd established since 2009 in Vancouver, Canada. We are
Engineers and Programmers Ourselves, So We Know How Important It Is to
CREATE Your Dreams! Not All Robot Kits Are Created Equal: Pay For True
Quality & You Will Not Be Disappointed.
For more information and tutorial of OSOYOO products, please visit
www.osoyoo.com
About This Kit
OSOYOO V2.0 robot car is a perfect combination of challenge and excitement,
learning and fun. The kit comes with step by step ONLINE tutorial with text,
picture and video. The kit is great for any skill level —whether you’re a pro,
enthusiast, or a beginner.
Online Tutorial Index:
General Introduction: https://osoyoo.com/?p=32220
Basic tutorial for Arduino: https://osoyoo.com/?p=32220/#3
Robot car Sample Projects: https://osoyoo.com/?p=32220/#4

4
OSOYOO robot car introduction video:
https://osoyoo.com/V2.1robotcar-video.html
OSOYOO robot car tutorial PDF download link:
https://osoyoo.com/manual/V2.1robotcar.pdf
Customer Service and Tech Support
You have following two options to ask for help:
1) Leave comments on our tutorial https://osoyoo.com/?p=32220
2) Send email to support@osoyoo.info. We guarantee that all inquiries will
be replied in 24 hours.

5
OSOYOO V2.1 Robot car kit Lesson 0:
Introduction
OSOYOO robotic car learning kit is designed for beginners to learn Arduino
programming and get hands-on experience on robot design and assembly.
We have developed a step-by-step tutorial which evolves from a simple car
without any control to a multi-function robotic car controlled by mobile APP.
Every lesson has detailed sample code with comments, circuit graph,
assembly instruction and video. Even if you have no programming
experience, you can follow the step-by-step instruction and gradually become
a master.
Our robotic car is 100% open source. If you are an intermediate player and
have time to read our code comments, you can easily customize this robotic
car to make your own project for science fair, college homework or even
commercial applications.
This kit contains module parts including OSOYOO MODEL X motor driver
module(*), Ultrasonic Sensor module, Tracking module, Infrared Remote
Control, Bluetooth module and ESP8266 Wifi shield, etc. With these modules,
the robot car can work in multiple modes such as auto-go, infrared control,
obstacle avoidance and line tracking. You can use our Android APP to
change working mode through Wifi or Bluetooth.

6
*OSOYOO MODEL X motor driver module is an improved L298N module
which has newly designed wiring sockets and can greatly simplify the
assembly procedure and wire connection stability.
Parts and Devices
No.
Picture
Device
Qty.
Data sheet
Buy in Link
1
OSOYOO basic
board
1
click here
Click here to
buy
2
OSOYOO Uart
WiFi shield V1.3
1
click here
Click here to
buy
3
OSOYOO model
X motor driver
module
1
click here
Click here to
buy
4
Voltage meter
1
click here
Click here to
buy
5
IR receiver
1
click here
Click here to
buy
6
IR remote
controller
1
click here
Click here to
buy
7
Ultrosonic
Sensor
2
click here
Click here to
buy
8
Tracking sensor
module
1
click here
Click here to
buy
9
Ultrosonic
Sensor
1
click here
Click here to
buy

7
10
Servo Motor
1
click here
Click here to
buy
11
Mount Holder
for Ultrasonic
Sensor
1
Click here to
buy
12
Buzzer Sensor
Module
1
click here
Click here to
buy
13
HC module
1
click here
Click here to
buy
14
IR transmitter
1
Click here to
buy
15
Gear motor
4
Click here to
buy
16
Metal Motor
Holders with
screws
4
Click here to
buy
17
Wheel
4
Click here to
buy
18
Upper car
chassis
1
Click here to
buy

8
19
Lower car
chassis
1
Click here to
buy
20
3pin female to
3pin female
jumper wire
1
Click here to
buy
21
6pin male to
6pin female
jumper wire
1
Click here to
buy
22
OSOYOO 2pin
PnP cable 20cm
1
Click here to
buy
23
20Pin jumper
wire Male to
female 20cm
some
Click here to
buy
24
7pin 25cm
Female to
Female Cable
1
Click here to
buy
25
Philips
screwdriver
1
Click here to
buy
26
Hex
Screwdriver
1
Click here to
buy
27
18650 battery
box
1
Click here to
buy
28
Battery charger
for 18650
battery
(Optional)
1
Click here to
buy

10
38
M3 plastic pillar
19
39
M3 plastic nut
19
40
M2*4 self
tapping screw
1
41
M2.2*8 self
tapping screw
2
42
M1.4*8 screw
and nut
4
Basic Tutorials
Here we have prepared some basic tutorials for the users who are not familiar
with Arduino, this section will show you what Arduino is, and teach you how to
start some simple Arduino projects. Arduino is the largest open-source
hardware platform in the world and offers infinite possibilities on what you can
achieve using simple microcontroller-based products. Learning how to
program using the Arduino platform is a never-ending process.
We believe with this hardware + software support, you are able to become
expert programmer (developer) very soon. So don’t waste time, just get this
kit, and start your project right away!
Lesson 1: what is Arduino, link: https://osoyoo.com/?p=11341
Lesson 2: Fully compatible with Arduino UNO Rev.3, Link:
https://osoyoo.com/?p=9837
Lesson 3: Download and Install Arduino IDE, Link:
https://osoyoo.com/?p=5340
Lesson 4: What is a Sketch and How does it Work? Link:
https://osoyoo.com/?p=7246

11
Lesson 5: How to Install Additional Arduino Libraries, Link:
https://osoyoo.com/?p=5349
Lesson 6: Hello World, Link: https://osoyoo.com/?p=7005
Lesson 7: The Serial Monitor, Link: https://osoyoo.com/?p=8082
Lesson 8: IR Remote Receiver Module and Controller, Link:
https://osoyoo.com/?p=19435
Lesson 9: How to use IR control the Active Buzzer? Link:
https://osoyoo.com/?p=19361
Lesson 10: IR Obstacle Avoidance Module, Link:
https://osoyoo.com/?p=21362
Lesson 11: IR Track Sensor, Link: https://osoyoo.com/?p=35502
Lesson 12: Ultrasonic Sensor HC-SR04 Module, Link:
https://osoyoo.com/?p=19427
Lesson 13: Controlling Servo Motor with IR Remote, Link:
https://osoyoo.com/?p=19388
Lesson 14: Use the IR Control to Control a DC Motor Remotely, Link:
https://osoyoo.com/?p=19315
Lesson 15: How to Use the HC-02 BLE, Link: https://osoyoo.com/?p=19230
Lesson 16: IR Transmitting Module and IR Receiving Module, link:
https://osoyoo.com/?p=12364
Tutorial and sample projects
OSOYOO robotic car learning kit is designed for beginners to learn Arduino
programming and get hands-on experience on robot design and assembly.
We have developed a step-by-step tutorial which evolves from a simple car
without any control to a multi-function robotic car controlled by mobile APP.
Every lesson has detailed sample code with comments, circuit graph,
assembly instruction and video. Even if you have no programming
experience, you can follow the step-by-step instruction and gradually become
a master.
Our robotic car is 100% open source. If you are an intermediate player and
have time to read our code comments, you can easily customize this robotic
car to make your own project for science fair, college homework or even
commercial applications.
Lesson 1: Basic robot car assembly, URL https://osoyoo.com/?p=32224
Lesson 2: IR Remote controlled, URL https://osoyoo.com/?p=32228
Lesson 3: Object follow, URL https://osoyoo.com/?p=32233
Lesson 4: Line tracking, URL https://osoyoo.com/?p=32249
Lesson 5: Obstacle avoidance, URL https://osoyoo.com/?p=32246
Lesson 6: WIFI IoT controlled, URL https://osoyoo.com/?p=32243
Lesson 7: Simulator driving with bluetooth, URL https://osoyoo.com/?p=32238
Lesson 8: Robot car fighting game, URL https://osoyoo.com/?p=32236

12
OSOYOO V2.1 Robot car kit Lesson 1:
Basic robot car assembly
Objective
In this “Hello World” version lesson, we will install the most important
framework in the smart car and program the car to do some simple
movements. If you have passed the test movement of this lesson, it means
Arduino, voltage meter, motor control module, motors, batteries,chassis and
wire connections between these parts are all functioning well.
As your experiments in future lessons are all based on frame work of Lesson
One, it is very important to test the installation and sample code in this Lesson
properly.
Please enter the link to watch the video:
https://www.youtube.com/watch?v=TIk8UDdEtJY&list=PLvCUFipQZCUtstVBU-
7gLYCLhI1fRuca3&index=2&t=0s
Parts and Devices

13
No.
Picture
Device
Qty.
Data sheet
Buy in Link
1
OSOYOO basic board
1
click here
Click here to buy
2
OSOYOO Uart WiFi
shield V1.3
1
click here
Click here to buy
3
OSOYOO model X
motor driver module
1
click here
Click here to buy
4
Voltage meter
1
click here
Click here to buy
5
Gear motor
4
Click here to buy
6
Metal Motor Holders
with screws
4
Click here to buy
7
Wheel
4
Click here to buy
8
Upper car chassis
1
Click here to buy
9
Lower car chassis
1
Click here to buy

14
10
3pin female to 3pin
female jumper wire
1
Click here to buy
11
6pin male to 6pin
female jumper wire
1
Click here to buy
12
OSOYOO 2pin PnP
cable 20cm
1
Click here to buy
13
Philips screwdriver
1
Click here to buy
14
Hex Screwdriver
1
Click here to buy
15
18650 battery box
1
Click here to buy
16
Battery charger for
18650 battery
(Optional)
1
Click here to buy
17
1Pair 18650 batteries
(Optional)
1
Click here to buy
18
9V Battery Box
(Optional)
1
Click here to buy

16
Install device
1) Remove the protective film on upper and low car chassis (Each car
chassis has one protective film)
2) Fix 4 motors with Metal Motor Holders as follow (Please check the motor
derection before installing metal motor holders)
3) Fix 4 motors on lower car chassis with screw M3*10 hex screws via hex
screwdriver (screws in metal motor holder package)

17
4) Install OSOYOO MODEL X motor driver module to lower car chassis with
4pcs M3 plastic screws, plastic pillars and plastic nuts. (Please make sure
you install the OSOYOO MODEL X motor driver module in correct
direction.)
5) Install voltage meter on low car chassis with 2pcs M3 plastic screws, plastic
pillars and plastic nuts
6) Fix OSOYOO UNO R3 board on upper car chassis with 4pcs M3 plastic
screws, plastic pillars and plastic nuts. (Please install UNO R3 board at the
side with printer)

18
7) There are two kind of robot car set for you to choose to buy. The one is
with 2 battery box( 18650 battery box and 9V battery box), and the other one
is with 1 pair 18650 batteries and 1 piece battery charger for 18650. We
recommend to use 18650 batteries as the power. If you want to use 9V
battery as the power, please use rechargeable 9V battery. Don’t use Carbon
zinc battery, as this can’t provide enough current for the robot car.
A) Fix this Battery Box on upper chassis with 4pcs M3 x 10 screws and M3
nuts.
B) Please install this Battery Box on upper chassis with 4pcs M3 x 10 screws
and M3 nuts. (These are the same as screws and nuts for 18650 battery box.
If you don’t get 9V battery case, please ignore this step).

19
8) Insert OSOYOO Uart WIFI shield V1.3 onto your UNO board
Connection
1) Connect 4 motors to OSOYOO MODEL X motor driver module K1 to K4
sockets as per following graph:
Table of contents
Other OSOYOO Robotics manuals