Bluetooth Control
Wireless control for our micro:Xbot
Bluetooth is the standard for short-range, wireless communication between various electronic devices such as mobile phones, tablets, PC, headphones and even pressure cookers, which allow for adjusting the cooking timer and temperature through an app via Bluetooth.
To use this example, we will connect our robot to a mobile application and control the motors through the application. For this, we need to download VEELER application from Google Play Store (app is available for Android mobiles). Install the application and it is ready to use.
Bluetooth is a serial communication and we need to configure the pins on micro:Xbot to communicate with a mobile device. We can either use hardware serial pins (Tx, Rx) or any available pins can be configured as software serial pins.
Since we are using a FTDI programmer which uses Hardware Tx and Rx pins, we will use Pins D2 and D3 as software serial pins.
To connect mobile device to micro:Xbot, open Bluetooth services on your mobile phone and pair the module (HC-05) with password 0000 or 1234.
Upload the below program, Open Serial Monitor, Open VEELER Application, Click on HC-05 and start communicating with the board.
Click on the buttons on the app and the respective details are printed on the serial monitor.
Last updated