Overview

In the last lesson, we introduced how to adjust the parameters of the PID to balance the car.In this lesson we will introduce how to use the APP of mobile phone to control the balance car. Using the mobile phone APP to control the car's forward, backward, left turn , right urn , left and right rotations. The following will describe in detail how to install the APP, how connect APP to the balance car and how the APP controls the car.

Installing APP

 Currently, the balance car temporarily supports the Android version of the APP.APP download address:  APP.After the APP is downloaded, it is installed on an Android phone.

APP has a connection with balance car

Arduino cannot connect directly to the mobile phone APP for data transmission,in order to use the mobile phone APP to control the balance car, need to install an extra module on the balance car for data exchange between the mobile phone APP and Arduino.A Bluetooth module is installed on the balance car, the Bluetooth module model is HC-06,the function of this module is making the mobile phone APP can interact with arduino indirectly. The Bluetooth module is connected to the arduino controller via a serial port,the mobile phone APP first passes the control command to the Bluetooth module,the Bluetooth module then passes the command to the arduino via the serial port, eventually achieving control;The reverse is the same, first the arduino transmits data of the status of the car to the Bluetooth module through the serial port, and finally the Bluetooth module sends the data to the APP.
         Here's how to connect APP to Bluetooth

 

Note: In order to avoid errors when connecting Bluetooth module, in step2 It's better to unpair the Bluetooth device that your phone is paired with.Then search for Bluetooth to pair.

APP control

Note: In order to avoid errors when connecting Bluetooth module, in step2 It's better to unpair the Bluetooth device that your phone is paired with.Then search for Bluetooth to pair.