In this post, I will explain how to make a Bluetooth robot car using Node MCU. However, you can also use an Arduino board like Arduino Uno or Arduino Nano. For this project, I used the BT Lab app, which is available on the Play Store. It is the recommended app for this project, and you can download it from the Play Store.
Components Required
For this project, I used:
- Node MCU
- HC-06 Bluetooth Module
- L298N Motor Controller
- A Buzzer and LED
- 7.4V Battery Pack
- 4 Gear Motors and 4 Wheels
- Some Jumper Wires
Use the following diagram to assemble your robot car.😁
Assembly and Code Upload
After assembling the car correctly, check all connections to ensure they are correct. Then, upload the program to the Node MCU using Arduino IDE. Click the link below to download the source code.
Important Note:
Turn off external power and disconnect the TX and RX pins on your Bluetooth module until the upload is complete.
Once the code is uploaded, set up the BT Lab app on your Android phone. If you haven't installed it yet, download it from the Play Store.
Steps to Connect and Configure BT Lab
Step 1: Connect to Bluetooth Module
Open the BT Lab app and click the Connect button at the top right.
You will see your paired Bluetooth devices. If your Bluetooth module is not paired, pair it first.
Click on your Bluetooth module to establish a connection.
Step 2: Navigate to Joystick Mode
In the BT Lab app, click the three-line menu (☰) in the top left corner.
Select the Joystick option.
You will see a controller interface similar to a joystick.
Click the Settings button at the top right.
Step 3: Configure Speed and Controls
Scroll down to the bottom and click the Edit button on the speed seek bar.
Set the max value to 5 and start value to 2. (The provided code supports 5 speed levels, with a default speed of 2.)
Click Edit to save the changes.
Click the Edit button next to the F1 button at the top of the list.
Enable the Switch True option to make the F1 button act as a tap key.
Click Edit to save changes and return to the joystick screen.
.....................................................
Now that everything is set up, it's time to have some fun!
Slide the speed seek bar to the maximum to unleash full power. Use the arrow keys to steer your car in any direction. Play around with different speed levels to see how the car responds. Try out the LED and buzzer features.
For a better understanding, follow this video tutorial.
Thank you for reading this article! I wish you great success in building your Bluetooth car with BT Lab. 😊👌
Tags:
BT LAB