Arduino Bluetooth Joystick Car

Arduino Robot Car Wireless Control using HC-05 Bluetooth Modules

Mar 15, 2021

•

12838 views

•

2 respects

Components and supplies

2

Resistor 1k ohm

1

Arduino UNO

2

Resistor 2k ohm

2

Geared DC Motor, 12 V

1

Dual H-Bridge motor drivers L298

1

Arduino Nano R3

1

Caster Wheel

2

HC-05 Bluetooth Module

35

Jumper wires (generic)

Tools and machines

1

Hot glue gun (generic)

Apps and platforms

1

Arduino IDE

Project description

Code

HC-05 Slave code

arduino

HC-05 Master code

arduino

HC-05 Master code

arduino

HC-05 Slave code

arduino

Downloadable files

Arduino-Robot-Car-HC-05-Bluetooth-Control-Circuit-Schematic

The circuit diagram

Arduino-Robot-Car-HC-05-Bluetooth-Control-Circuit-Schematic

Immagine

Comments

Only logged in users can leave comments

Immagine
Immagine

Anonymous user

2 years ago

Hi,The card was great

Immagine
Immagine

Anonymous user

2 years ago

HI,great idea but can you make one for 2 servos insted of dc motors? Thanks!

Immagine
Immagine

adventurousmom

2 years ago

Please help. We are trying to run this program, but we get this error, and have no idea how to fix it. Sketch uses 2956 bytes (9%) of program storage space. Maximum is 32256 bytes. Global variables use 196 bytes (9%) of dynamic memory, leaving 1852 bytes for local variables. Maximum is 2048 bytes. An error occurred while uploading the sketch

Immagine
Immagine

Anonymous user

2 years ago

Hello Dear, thank you for sharing. Please can you make one for 2 servos insted of dc motors? Thanks!

Immagine
Immagine

Anonymous user

2 years ago

I am trying to create a two stepper motor drive system based on this concept, but am having difficulty getting the Bluetooth modules to transfer data between the arduinos. Rather than an Uno on the slave side, I'm using a Nano. I'm using A4988 Stepper Control Modules and bipolar steppers rather than the L298 module you use. The system simply reads the joystick position for direction to move, and then sends step pulses to the A4988. My system works perfectly if I hardwire between the RX/TX on the master to the TX/RX on the slave (Nano to Nano directly). However, once I replace the hardwire with the blue tooth modules, I get no data to the slave side, and the motors don't move. I have used the AT commands to pair, link and bind the two modules, set them as MASTER on the Joystick, and SLAVE on the motor control side. UART set to 38400, 1,0 (I've also tried 38400,0,0) with no luck. The modules are connected, as indicated by the blinking LED (2 flashes every few seconds). The TX LED on the joystick side does light when the joystick is positioned, and I get a very brief dim RX light on the motor control nano, but only about once per second. In contrast, with the hardwire in place, the TX on the Joystick side flashes simultaneously (or nearly so) with the RX on the Motor Control side. Can you be more specific on the AT commands you used to pair the HC 05 modules and get them to communicate?

Immagine
Immagine

adventurousmom

3 years ago

Please help. We are trying to run this program, but we get this error, and have no idea how to fix it. Sketch uses 2956 bytes (9%) of program storage space. Maximum is 32256 bytes. Global variables use 196 bytes (9%) of dynamic memory, leaving 1852 bytes for local variables. Maximum is 2048 bytes. An error occurred while uploading the sketch

Immagine
Immagine

Anonymous user

3 years ago

I am trying to create a two stepper motor drive system based on this concept, but am having difficulty getting the Bluetooth modules to transfer data between the arduinos. Rather than an Uno on the slave side, I'm using a Nano. I'm using A4988 Stepper Control Modules and bipolar steppers rather than the L298 module you use. The system simply reads the joystick position for direction to move, and then sends step pulses to the A4988. My system works perfectly if I hardwire between the RX/TX on the master to the TX/RX on the slave (Nano to Nano directly). However, once I replace the hardwire with the blue tooth modules, I get no data to the slave side, and the motors don't move. I have used the AT commands to pair, link and bind the two modules, set them as MASTER on the Joystick, and SLAVE on the motor control side. UART set to 38400, 1,0 (I've also tried 38400,0,0) with no luck. The modules are connected, as indicated by the blinking LED (2 flashes every few seconds). The TX LED on the joystick side does light when the joystick is positioned, and I get a very brief dim RX light on the motor control nano, but only about once per second. In contrast, with the hardwire in place, the TX on the Joystick side flashes simultaneously (or nearly so) with the RX on the Motor Control side. Can you be more specific on the AT commands you used to pair the HC 05 modules and get them to communicate?

Immagine
Immagine

Anonymous user

4 years ago

Hello Dear, thank you for sharing. Please can you make one for 2 servos insted of dc motors? Thanks!

Immagine
Immagine

rares9

4 years ago

HI,great idea but can you make one for 2 servos insted of dc motors? Thanks!

Immagine
Immagine

Anonymous user

4 years ago

Hi,The card was great

Immagine
Immagine

Anonymous user

4 years ago

👌