Shopify Amazon
Welcome to the fourth lesson of OSOYOO 2WD Robot Car Starter Kit!
In this lesson, we will introduce how to control the car by the mobile APP through Bluetooth.
Step 1: Install the smart car basic framework as per Lesson 1 . If you have already completed installation in Lesson 1 , please remove all wires on Osoyoo basic board.
Step 2: Connect Bluetooth TX/RX ports to D4,D5 with jumper caps
BLE UART:
D4 – B_TX
D5 – B_RX
Step 3: Insert Bluetooth Module into OSOYOO UART Wi-Fi shield V1.3 Bluetooth slot as following graph:
Note: Our OSOYOO Uart Wi-Fi shield V1.3 are connected BLE URAT TX/RX ports to D4,D5 with jumper caps by default. If you find the Bluetooth TX/RX ports is not connected to D4,D5, you need to use a jumper cap or jumper wire to connect B-TX to D4 and B-RX to D5.
Step 4: Connect OSOYOO MODEL X motor driver module and OSOYOO Uart Wi-Fi shield V1.3 as following graph:
Remember the following tips to restore your motor control system to lesson 1:
I suggest you run the sketch code in Lesson 1 and make sure motor connection is correct. This is very important for next steps.
More information about this module please refer to:
HC-02 Bluetooth 4.0 BLE Slave Module to UART Transceiver for Arduino Compatible with Android and iOS
Open-source Arduino Software(IDE) |
Download 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 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: Install APP into your mobile phone:
Android Device: 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.
Apple iOS Device: 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
Step 2: Download and install sketch code from https://osoyoo.com/driver/2wd/lesson4.zip. Unzip this file, and you will see a folder called lesson4. Open IDE → click file → click Open → choose code “lesson4.ino” in lesson4 folder, load the code into your board:
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 that you have installed your hardware and software for this lesson, let’s drive our car!
Step 1) Put your robot car on the ground and turn on the battery switch.
Step 2) Go to your mobile phone -> Settings -> Bluetooth settings and search for a Bluetooth device called HC-02. Pair it with the code 1234.
Step 3) Open the OSOYOO imitation driving Robot APP, click the “BT Search” button, and find the Bluetooth device you have paired.
Step 4)Turn on the Engine toggle and click Speed+ to increase the speed of the robot car, as it is very slow at first. When you rotate your mobile phone, the car will change direction.
Enjoy driving!
Step 1) Turn on the switch on the battery box
Put 2 fully-charged 18650 battery into battery box (check the box instruction and make sure polar direction is correct). Open the power switch in the battery box.
Step 2) Turn on bluetooth of your phone
Please turn on bluetooth of your phone which you have installed APP and scan bluetooth (different bluetooth module will scan different bluetooth name), click connect and enter password “1234” or “0000” if no change:
Step 3) Open app>> select bluetooth mode>> then you can controller the robot car through bluetooth:
No. | Picture | Device | Qty. | Data sheet | Buy in Link |
1 | OSOYOO basic board | 1 | click here | Click here to buy | |
2 | OSOYOO UART Wi-Fi 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 | IR receiver | 1 | click here | Click here to buy | |
5 | IR remote controller | 1 | click here | Click here to buy | |
6 | Tracking sensor module | 2 | click here | Click here to buy | |
7 | HC module | 1 | click here | Click here to buy | |
8 | Gear motor | 2 | Click here to buy | ||
9 | Metal Motor Holders with screws | 2 | Click here to buy | ||
10 | Wheel | 2 | Click here to buy | ||
11 | Universal Wheel | 1 | |||
12 | 6pin male to 6pin female jumper wire | 1 | Click here to buy | ||
13 | OSOYOO 2pin PnP cable 20 cm | 1 | Click here to buy | ||
14 | 20Pin jumper wire Male to female 15 cm | 1 | Click here to buy | ||
15 | Philips screwdriver | 1 | Click here to buy | ||
16 | Hex Screwdriver | 1 | Click here to buy | ||
17 | 18650 battery box | 1 | Click here to buy | ||
18 | Battery charger for 18650 battery | 1 | Click here to buy | ||
19 | 1Pair 18650 batteries | 1 | Click here to buy | ||
20 | M3*5 Hex Screws | 10 | |||
21 | M3*10 screw | 4 | |||
22 | M3 nut | 4 | |||
23 | Copper pillar | 4 | |||
24 | Screw for wheel | 2 | |||
25 | M3 plastic screw | 15 | |||
26 | M3 plastic pillar | 15 | |||
27 | M3 plastic nut | 15 |
DownLoad Url osoyoo.com