This tutorial shows how to control a Smart Car using an android device via Bluetooth communication. The capabilty to control your smart car wirelessly has great advantage, no longer you need to worry where your car is going, since it is under your control. Then also the remote control is in your phone, which is very accessible and not time consuming.
Enjoy and create your own Controlled 2w smart car :-).
- 2W Smart Robot Car DIY
- Bluetooth Module HC-05/06
- Arduino Board
- L293D Shield
- Solderless Bredadboard
- Jumper Wires
1. Assemble 2W Smart Robot Car. Before assembling make sure you soldered the terminal of the motors with a wire, because soon it will be connected to the L293D outputs.
2. Put L293D Shields on top of Arduino Board.
3. Connect motor terminals at M3 and M4.
4. Connect Rx Tx and 5V, Gnd Terminal of Bluetooth Module to the arduino Board.
- Connect Rx terminal of Bluetooth module to Tx terminal of Arduino board.
- Connect Tx terminal of Bluetooth Module to Rx terminal of Arduino board.
- Connect 5V terminal of Bluetooth Module to 5V terminal of Arduino board.
- Connect Gnd terminal of Bluetooth Module to Gnd terminal of Arduino board.
Add AFMotor to your arduino library.
Power up your arduino board.
You can use power bank or battery. Just make sure that the voltage supplied will not exceed to the maximum input voltage of the board.
- Pair your mobile’s phone Bluetooth to the Bluetooth module. Mostly default security code of Bluetooth module is either 0000 or 1234.
- Download the Controller from Play Store. (Just click Here.)
- Open the Android application you'd downloaded earlier, go to drawer menu and click controlled car and click Test Device (Make sure your bluetooth is on), then click paired devices and you will see the list of devices paired to your mobile. Then click the HC-05 or HC-06 device you'd paired earlier.
- From the controller Press "A" to Accelarate and "D" to Decelarate. For the direction, use the Joystick pad.