Authorized Online Retailers

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

Objective

Welcome to the first lesson of Osoyoo Model-3 Robot Learning Kit!

In this “Hello World” version lesson, we will install the most important framework of the robot car and program the car to do some simple movements. If you have passed the test movement of this lesson, it means Arduino, 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 the frame work of Lesson 1, it is very important to test the installation and sample code in this Lesson properly.

Parts and Devices

Hardware Installation

1. Remove the protective film from the chassis:

2. Install the motor under the chassis with M3 screws and nuts as follow:

3. Install the universal wheel with the M3 screws and copper pillars:

4. Install the universal wheel under the chassis with the M3 screws:

5. Install OSOYOO UNO Board on the chassis with M3 plastic screws, pillars and nuts:

6. Install OSOYOO MODEL X Motor Driver Module on the chassis with M3 plastic screws, pillars and nuts:

7. Install the battery box on the chassis with M2 screws and nuts:

8. Plug the Sensor Shield V5.0 for Arduino UNO in OSOYOO UNO board:

9. Install the voltage meter on the chassis with M3 plastic screws, pillars and nuts:

Connection

1)Connect OSOYOO Model-X Motor Driver Module with the motor:

More detail about OSOYOO Model-X please refer to this link:

http://osoyoo.com/2017/08/15/l298npro-motor-driver-module/

2) Connect the OSOYOO Model-X and Sensor Shield V5.0 for Arduino UNO as shown below:

Sensor Shield V5.0 for Arduino UNO OSOYOO Model-X
S5 ENA
S6 ENB
S7 IN1
S8 IN2
S9 IN3
S10 IN4

If you want to connect only with the OSOYOO UNO, you can follow this diagram:

OSOYOO UNO OSOYOO Model-X
D5 ENA
D6 ENB
D7 IN1
D8 IN2
D9 IN3
D10 IN4

3) Connect the voltage meter and OSOYOO Model-X Motor Driver Module:

4) Connect the UNO board, battery box and OSOYOO Model-X as follow:

5) Install the wheels (The wheels’ color subject to actual receipt):

Now hardware installation is almost done. Before we install the battery into the box, we need to upload the sample code into Arduino first.

top

Software Installation

Open-source Arduino
Software(IDE)
Download Arduino 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 Arduino IDE (If you have Arduino IDE version after 1.1.16, please skip this step).

Download Arduino IDE from https://www.arduino.cc/en/Main/Software?setlang=en, then install the software.

Step 2:

Download lesson-1.zip , unzip it, you will see a folder called lesson-1

Step 3:

Connect UNO R3 board to PC with USB cable, open Arduino IDE, choose corresponding board/port for your project

Step 4:

Click file -> click Open -> choose code “lesson-1.ino”, load the code into Arduino, and then upload the sketch to the board.

Testing

Disconnect Arduino from PC, put a 9V battery into battery box (make sure polar direction is correct, otherwise it can destroy your device and cause fire hazard).

Put the car on the ground, the car should go forward 2 seconds, then go backward 2  seconds, then left turn for 2 seconds, then right turn for 2 seconds, then stop.

If the car does not move as per above mentioned result, you should check your wire connection, battery voltage(must over 7.2v).