This project controls a car using an ESP32 DevKit V1 via Bluetooth and an L298N motor driver.
- ESP32 DevKit V1
- L298N Motor Driver
- DC Motors (BO Motors)
- Bluetooth (built-in ESP32)
- Battery (7.4V – 12V depending on motor)
F→ ForwardB→ BackwardL→ LeftR→ RightI→ Forward RightJ→ Backward RightG→ Forward LeftH→ Backward Left
| ESP32 Pin | L298N Pin | Function |
|---|---|---|
| GPIO14 | ENA | Enable Motor A (PWM) |
| GPIO26 | IN1 | Motor A Direction 1 |
| GPIO25 | IN2 | Motor A Direction 2 |
| GPIO27 | ENB | Enable Motor B (PWM) |
| GPIO33 | IN3 | Motor B Direction 1 |
| GPIO32 | IN4 | Motor B Direction 2 |
| 5V | 5V (Logic) | L298N logic supply |
| GND | GND | Common ground |
| Battery + | 12V (Vs) | Motor power supply |
- OUT1, OUT2 → Motor A
- OUT3, OUT4 → Motor B

To upload code into ESP32 using Arduino IDE, you need to install the USB-to-UART driver:
Download and install the driver.
Go to Tools → Board.
Install ESP32 board support (if not already):
File → Preferences → Additional Board Manager URLs Add:https://dl.espressif.com/dl/package_esp32_index.json Then go to Tools → Board → Board Manager → search ESP32 → Install.
Recompile and upload.
- Upload the
RC_Code.inofile to ESP32 using Arduino IDE. - Pair ESP32 with phone using Bluetooth (Device Name:
Idea lab car). - Use a Bluetooth terminal app to send the commands (
F,B,L,R, etc.). - The car moves based on the command received.
Himanshu Gaud
57fab0cc4de61e9c6d02fd4a399464c64fb42fbb