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

In this lesson, we will use Mobile to control our robot car and make an imitation driving. Since is a mock driving, we will use a virtual steering wheel and gear in our APP to imitate their counterparts in real car.

You must complete lesson 2 Basic Movement before you continue on with this lesson.

If you don’t complete the frame of car, please review lesson 1

If you don’t complete the basic wire connection, please review lesson 2

Connection:

Insert Bluetooth Module (VCC,GND,D2,D3) into OSOYOO motor shield as following graph (Remember: DO NOT remove any existing wires installed in Lesson2):

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/
OSOYOO imitation driving Robot APP Search “OSOYOO imitation driving” in
Google Play or Apple APP store

STEP 1:

Download https://osoyoo.com/driver/2022008400/lesson4.zip , unzip it, you will see a folder called lesson4

STEP 2:

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

Notice: Shut off your battery or Unplug your power adapter when upload sketch code to OSOYOO Basic Board for Arduino.

STEP 3:

Click file -> click Open -> choose code “lesson4.ino”, load the code into OSOYOO Basic Board for Arduino, and then upload the sketch to the board.

Notice: Servo Alignment

Please change the default value 90 in the following line as the FRONT value in the option 2 in Step 5 of lesson2. If you align the wheel direction manually as the option 1 in Step 5 of lesson2, please skip this step.

#define FRONT 90        // steering to front

STEP 4:

Install APP into your mobile phone

1) Install APP on Android device as following

In Google Play store search APP name “OSOYOO imitation driving”, download the APP as following and install it in your smart phone

If you can not use Google Play to find the APP, please Download the APP from following link :https://osoyoo.com/driver/v1car.apk.

2) Install APP on Apple IOS device as following

In Apple APP store search APP name “OSOYOO imitation driving”, download the APP as following and install it in your smart phone

Explanation of APP UI (UI is different between Android and IOS)

Connect APP to HC-02 Bluetooth Module

how_to_play.png (1150×56)

Now you have installed your hardware and software for this lesson, let’s drive our car!

Step 1)Put your robot car onto the ground and turn on the battery switch.

Step 2)Go to your mobile phone ->Setting ->Bluetooth setting and search a Bluetooth device called HC-02, pair it with code 1234

Step 3)Open OSOYOO imitation driving Robot APP, Click BT Search button and find the bluetooth you have paired

Step 4)Turn on Engine toggle, click Speed+ to make the robot speed up as the robot car is very slow at first. When you rotate your mobile phone angle, your car will change direction.

Enjoy your driving!

No. Picture Device Link
1 OSOYOO Basic R3 Board for Arduino Click here to buy
2 OSOYOO Magic I/O Shield for Arduino Click here to buy
3 ESP8266 WIFI Shield Click here to buy
4 HC Module Click here to buy
5 Tracking Sensor Click here to buy
6 OSOYOO Red LED module Click here to buy
7 3 pin 20cm PnP cable Click here to buy
8 Wheel  Click here to buy
9 Servo Click here to buy
10 Motor Click here to buy
11 1Pair 18650 batteries Click here to buy
12 18650 battery box Click here to buy
13 Battery charger Click here to buy
14 K115 Click here to buy
15 K109 Click here to buy
16 K105 Click here to buy
17 K103 Click here to buy
18 B117 Click here to buy
19 B113 Click here to buy
20 B113 Click here to buy
21 B109 Click here to buy
22 B107 Click here to buy
23 B105  Click here to buy
24 B105 Click here to buy
25 B103 Click here to buy
26 B102 Click here to buy
27 B102 Click here to buy
28 X275 Click here to buy
29 X073 Click here to buy
30 X064 Click here to buy
31 X044 Click here to buy
32 L024 Click here to buy
33 L024 Click here to buy
34 PS11 Click here to buy
35 P021 Click here to buy
36 P011 Click here to buy
37 Z005 Click here to buy
38 Z010 Click here to buy
39 L035 Click here to buy
40 LT33 Click here to buy
41 S225 Click here to buy
42 D107 Click here to buy
43 D105 Click here to buy
44 G110 Click here to buy
45 F057 Click here to buy
46 Z2S1 Click here to buy
47 Z2S1 Click here to buy
48 Z121 Click here to buy
49 T220 Click here to buy
50 T112 Click here to buy
51 T008 Click here to buy
52 A04T Click here to buy
53 A040 Click here to buy
54 A050 Click here to buy
55 A070 Click here to buy
56 A160 Click here to buy
57 A02X Click here to buy
58 Q111 Click here to buy
59 PS21 Click here to buy
60 Q112 Click here to buy
61 Q113 Click here to buy
62 Q114 Click here to buy
63 Q115 Click here to buy
64 Z102 Click here to buy
65 Q116 Click here to buy