You can download the user manual from:
Buy from USA | Buy from UK | Buy from DE | Buy from IT | Buy from FR | Buy from ES | ここでご購入を! |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
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 the 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
No. | Picture | Device | Qty. | Accessories | Link |
1 | ![]() |
HC module | 1 | Click here to buy |
Step 1: Install the smart car basic framework as per Lesson 2. If you have already completed installation in Lesson 1, just keep it as is.
Step 2: Insert Bluetooth Module into OSOYOO motor shield V1.0 Bluetooth slot as following graph (Remember: DO NOT remove any existing wires installed in Lesson 1):
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 unzips 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 (Note: If you can not find this APP in Google Play, you can directly download the APP from following link: https://osoyoo.com/driver/v1car.apk) |
Step 1: Please download PWMServo library from https://osoyoo.com/driver/sg90car/PWMServo.zip, then import the library into Arduino IDE. If you completed lesson 2, please skip this step.
Step 2:Download Lesson 6 sample code. Unzip the downloaded file, you will see a folder called sg90car-lesson6B.
Step 3: Connect OSOYOO Basic Board for Arduino to PC with USB cable, Open Arduino IDE → click file → click Open → choose code “sg90car-lesson6B.ino” in sg90car-lesson6B folder, load the code into OSOYOO Basic Board for Arduino. (Notice: Remove the Bluetooth module and shut off your battery or unplug your power adapter when upload sketch code to OSOYOO Basic Board for Arduino.)
Step 4: Please change the default value 90 in line 19 as the FRONT value in lesson 1. If you align the wheel direction via the option 1 in Step 5, please skip this step.
#define FRONT 90 //degree when steering facing straight forward
Step 5: Choose corresponding board/port for your project, upload the sketch to the board.
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 smartphone
If you can not use Google Play to find the APP, please Download the APP from the 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 smartphone
Note: For Android device, when you click BT search button and get the following error pop, Please follow the next steps:
1. long-press the APP inco, then click “APP info”
2. click “Permissions”
3.click “Nearby device”, then change the option as “Allow” (To learn more about settings, you can visit the video: https://osoyoo.com/picture/V2.1_Arduino_Robot_Car/Lesson7/APP.mp4)
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!
Trouble Shooting:
We have a group of students, all our robot cars are using same bluetooth name “HC-02” which might conflict with each other in the same room. How to change the HC-02 name to other bluetooth name?
1)Wire Connection
HC-02 TX → Arduino D4 (SoftwareSerial RX)
HC-02 RX ← Arduino D5 (SoftwareSerial TX)
HC-02 VCC → 5V
HC-02 GND → GND
HC-02 KEY / EN / STATE (depending on your module) → HIGH (3.3V or 5V)
2)Download Arduino AT command sketch from following link:
https://osoyoo.com/driver/2wd/hc02.zip
unzip above file , you will see a folder “hc02”, enter that folder and double click hc02.ino file to open it in Arduino IDE.
3)Test AT command in Serial Monitor
After you upload the hc02.ino code to Arduino, open your Arduino IDE Serial monitor, set baud rate to 9600, set line mode to No Line Ending as following:
To test the AT command, you can type AT in output field and press enter, now you should see OK in Serial monitor (see above picture). If you can’t see OK, please double check Step 1 to 3.
4)Now you can use AT command to change your HC-02 bluetooth module.
The format is AT+NAMEnewname
For example, if you want to change your HC-02 module name to osoyoo2025, then type following AT command in Serial monitor :
AT+NAMEosoyoo2025
after you press enter button, your Serial monitor will response:
OKsetname
This means your bluetooth module’s new name has been changed to osoyoo2025
DownLoad Url osoyoo.com