I. Objective
II. Parts and Devices
III. Hardware Installation
IV. Software Installation
V. Functional Testing and Verification
VI. Troubleshooting


In this lesson, we will use a mobile APP to control our robot car and make an imitation driving. Since it 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 1 before you continue on with this lesson.


OSOYOO ESPro Robot car chassis x1
OSOYOO Wheels x2
OSOYOO DC motors x2
OSOYOO ESPro motor driver board x1
OSOYOO Voltage meter x1
OSOYOO MG90 servo motor x 1
OSOYOO Mount holder x1
OSOYOO Ultrasonic module x1
OSOYOO Battery box x1
OSOYOO 3pin female to female jumper wire x1
OSOYOO 4pin female to female jumper wire x1
18650 Batteries (3.7 V) x2
Battery charger x1


You must complete lesson 1 (assembling the car) before you continue on with this lesson.


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 https://osoyoo.com/driver/espro-2wd-car/espro-lesson6-bluetooth.zip, unzip the download zip file , you will see a folder called espro-lesson6-bluetooth.zip.

Step 3: Connect ESPro motor driver board to PC with USB cable, Open Arduino IDE -> click file -> click Open -> choose code “espro-lesson2-tracking-line.ino” in lesson6 folder, load the code into arduino.

Step 4: Select Tool->Board->board Manager, Search ESP32 and Add ESP32 into Board Manager.
Then in Tool->Board, select esp32 ->ESP32 Dev Module,
Last select correct port which matches ESP32 board,upload the sketch to the board.

If the Name and Bluetooth address don’t show up in the Arduino IDE serial monitor, press and hold the ESPro motor driver board reset button on the main board for 2–3 seconds and release it to unlock the serial port.

Step 5: Mobile APP:
Go to your Google Play or Apple APP store and search APP name “OSOYOO imitation driving”, Download the APP as following and install it in your smartphone.

Step 6: Connect Espro_robotcar in iPhone/iPad/android, simply click Connect button, a Espro_robotcar device will show up in a pop-up list. Click that Espro_robotcar device to connect Bluetooth module to your Phone. Then the Connect button will change name to Disconnect.