How To Make DIY Remote control (RC) Car/Bot using Arduino Nano & Bluetooth module by WTC Zone
To create an RC car using an Arduino Nano, HC-05 Bluetooth module, L298N motor driver, and 2 DC motors, you’ll need to use a smartphone Bluetooth app to control the car’s direction and speed. Here’s how you can build it.
Parts Required
- Arduino Nano
- HC-05 Bluetooth Module
- L298N Motor Driver Module
- 2 DC Motors (preferably geared for stability and torque)
- Battery Pack (7.4V - 12V, depending on the motor specs)
- Chassis (for mounting motors and other components)
- Jumper Wires and Breadboard (optional)
Circuit Connections
Bluetooth Module (HC-05):
- VCC → 5V on Arduino Nano.
- GND → GND on Arduino Nano.
- TX → RX (Pin 0) on Arduino Nano.
- RX → TX (Pin 1) on Arduino Nano.
L298N Motor Driver:
- IN1 → D3 on Arduino Nano.
- IN2 → D4 on Arduino Nano.
- IN3 → D5 on Arduino Nano.
- IN4 → D6 on Arduino Nano.
- ENA (Enable A) → D9 on Arduino Nano.
- ENB (Enable B) → D10 on Arduino Nano.
- GND → GND on Arduino Nano.
- VCC on L298N (motor power) → Battery Pack’s Positive terminal.
- 12V power pin on the L298N should connect to the motor power source (e.g., battery pack).
- Connect both motors:
- Motor 1 → OUT1 and OUT2 on the L298N.
- Motor 2 → OUT3 and OUT4 on the L298N.
Power Connections:
- Arduino Nano can be powered from the same battery pack through the VIN pin.
- Ensure all grounds are connected to avoid inconsistent signals.
Circuit Diagram
Video Link: - Click Here For Video
Bluetooth App Link: - Click Here For Android App
How To Make DIY Remote control (RC) Car/Bot using Arduino Nano & Bluetooth module by WTC Zone simple Circuit: -
Arduino IDE Program
Code for DIY Remote control (RC) Car/Bot using Arduino Nano & Bluetooth module by WTC Zone
-----------------------------------------------------------------------------------------------------------------------------
Explanation of the Code
- Bluetooth Commands: The code reads commands from the Bluetooth app. Based on the received character (
'F'
,'B'
,'L'
,'R'
, or'S'
), it controls the motor pins to move the car forward, backward, left, right, or stop. - Motor Control: The L298N motor driver has two sets of inputs for each motor. Setting a high and low combination on the inputs makes each motor rotate in the desired direction.
- PWM Control: The
enableA
andenableB
pins control motor speed using PWM signals. Adjusting the values inanalogWrite
(0 to 255) will change the speed of the motors.
How the Project Works
- Bluetooth App: Use a smartphone Bluetooth app to send characters to the Arduino (e.g.,
'F'
for forward,'B'
for backward). - HC-05 Module: Receives commands from the smartphone and sends them to the Arduino Nano via serial communication.
- L298N Motor Driver: Drives two DC motors based on the received commands.
- Arduino: Interprets the Bluetooth commands to control the L298N module, adjusting the car’s movement direction and speed.
Testing and Final Setup
- Bluetooth App Setup: Pair the HC-05 module with your phone (default PIN is usually
1234
or0000
). - Motor Direction Adjustment: If motors run in the opposite direction, swap the motor leads.
- Control Test: Verify each command (
'F'
,'B'
,'L'
,'R'
,'S'
) to ensure they work as expected.
Share, Support, and Subscribe!!! 1. PRO KAM EXPLAINED 2. Knowledge KAM 3. PRO KAM Follow us on 1. Facebook 2. Instagram 3. Pinterest 4. Blogspot 5 Twitter If you have any other ideas to make me design, you can describe them in the comment section and if I can, I will make a designing video on it. So I am waiting #prokam #wtc #Arduino #ideas #projects #diy #how #to #ArduinoProjects #UltrasonicSensor #HeightMeasurement #TechDIY #WeTechCreators
0 Comments