Parts and Device:

Wire Connection:

After install the V2.1 Robot Car or 2WD Robot Car framework, please insert to OSOYOO ESP32 Wifi/Bluetooth Shield into the UNO board. Connect the H-Bridge Motor board to Arduino Pins as per following picture:

Use Jumper cap to Connect D4 to ATTX and D5 to ATRX pin in ESP32 Shield

Download The Arduino Code from following link:
https://osoyoo.com/download/e32_mockdrive.zip

Unzip the e32_mockdrive.zip file, double click  e32_mockdrive.ino file and open it in Arduino IDE.
Step 1) Found the the BLE device address

Write down the BLE Address shown in above red circle. You need to connect this BLE device in the Imitation Driving APP.
Finally, please   put the robot car on the ground and turn on the battery.

Step 2) Download and Install OSOYOO Imitation Driving APP

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/test/mockdrive.apk )

After Install Above APP in your cell phone.  Please put your robot Car on the ground, turn on the battery power. Wait until the D13 LED (in the central of the ESP32 Wifi board) Blink 3 times which means E32 BLE signal is ready for connection.

Step 3) Connect Robot Car BLE device to mobile Phone
Open the APP and Click Connect Button as following:

After Clicking Connect, a Bluetooth device list manual will pop up. As ESP32 is a BLE device, the list will show BLE device Scanning as following picture:

After about one minute, BLE device scanning will change to BLE Device Found,  please select the BLE device whose address matches the address shown in Step 1). If you are using iPhone, select the Device name “C3_BLE” or “OSOYOO_BLE” or the name you set in the Arduino Code.


Once the BLE  is connected, you can DRIVE the car  with APP.
Control Button in the APP

Trouble Shooting

Question:
My Robot Car power is ON, but the D13 LED does not blink  and my iPhone APP can not find C3_BLE device name and my Android Phone does not find the BLE address in Arduino IDE?
Answer:
This problem happens when initializing of ESP32 does not complete properly. You need press the EN button in the ESP32 for 10 seconds,   turn off power for 5 seconds and turn on battery again. Then Robot Car will try to initialize ESP32 BLE again. Once you see the D13 LED blink 3 times, you can use APP to connect it.