4.3.16 Multi-purpose Bluetooth Robot
4.3.16.1 Introduction

In previous projects, the turtle robot car only performs a single function. However, in this lesson, we will integrate all of its functions via Bluetooth control.
4.3.16.2 Download and install APP
⚠️ Note: If the APP has already been downloaded and installed before, this step can be skipped directly.
Visit www.keyestudio.com

Find “WiKi”,and then click “Docs Tutorials”.



Click “Download_Center” to find the APP.


4. Android
Find “Turtle Car” (allow APP to access“location”, you could enable “location”in settings of your cellphone).

Download Turtle Car.apk.

Next, follow the instructions to install the app. The app icon is shown below after installation.

Click app to enter the following page.

5. IOS
Find “keyes BT Car” (allow APP to access“location”, you could enable “location”in settings of your cellphone).

Click Jump to the App Store to navigate to the App Store.

Search for “keyes BT car” directly in the App Store.

After installation, enter its interface.

Click “Connect” to search and pair Bluetooth.

Click
to enter the main page of turtle smart car.

4.3.16.3 Flow Chart

4.3.16.4 Wiring Diagram
GND, VCC, SDA and SCL of the 8*8 dot matrix module are connected to G(GND), V(VCC), A4 and A5 of the expansion board.
VCC, Trig, Echo and Gnd of the ultrasonic sensor are connected to 5V(V), D12(S), D13(S) and Gnd(G)
The servo is connected to G, V and D10. The brown wire is interfaced with Gnd(G), the red wire is interfaced with 5V(V) and the orange wire is interfaced with D10.
RXD, TXD, GND and VCC of the BT module are connected to TX, RX, G(GND) and 5V(VCC). STATE and BRK of the BT module don’t need connection.
Since the Keyestudio 8833 motor driver expansion board integrates the IR receiver, pins of the IR receiver are G(GND), V(VCC)and D3
G, V, S1, S2 and S3 of the line tracking sensor are connected to G(GND), V(VCC), D11, D7 and D8 of the sensor expansion board.
The power is connected to the AT port
⚠️ Attention: You do not need to disassemble the Smart Little Turtle Robot and re-connect the module. Here this disgram will be convenient for you to program and write code.

⚠️ Note: Remove the BT module when you are uploading the code, otherwise you will fail to upload it.
4.3.16.5 Test Code
⚠️ **Note: Remove the BT module when you are uploading the code, otherwise you will fail to upload it. **

4.3.16.6 Test Result
⚠️ Note: Remove the BT module when you are uploading the code, otherwise you will fail to upload it. When the code uploading process is done, open the GPS on your phone, and then reconnect the Bluetooth module.
Upload the code to the development board, power up and turn the DIP switch to ON. Connect the APP to Bluetooth and control the turtle car via the app. Multiple functions can be achieved.