ESP32-Powered Wi-Fi Controlled Robotic Car with OLED Display and Ultrasonic Sensor
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes various components such as an OLED display, a step-up boost converter, a TP4056 battery charger, an ESP32 microcontroller, an ultrasonic sensor, a motor driver, motors, a DFPlayer Mini, and a loudspeaker. The circuit is designed to interface these components to achieve a specific functionality, which is not explicitly described in the provided data.
Component List
0.96" OLED
- Pins: GND, VDD, SCK, SDA
- Description: OLED display module for visual output.
Step Up Boost 3v-5v
- Pins: Vi, GND, Vo
- Description: Boost converter to step up voltage from 3V to 5V.
TP4056
- Pins: OUT-, B-, B+, OUT+, IN-, IN+
- Description: Lithium-ion battery charger module.
Li-ion battery 18650-2000mAh 3.7V 7.4WH
- Pins: +, -
- Description: Rechargeable lithium-ion battery.
Motor amarillo motorreductor hobby
- Pins: vcc, GND
- Description: Hobby motor with gearbox.
L298N DC motor driver
- Pins: OUT1, OUT2, 12V, GND, 5V, OUT3, OUT4, 5V-ENA-JMP-I, 5V-ENA-JMP-O, +5V-J1, +5V-J2, ENA, IN1, IN2, IN3, IN4, ENB
- Description: Dual H-Bridge motor driver.
ESP32
- Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, VIN, 3V3, D15, D2, D4, RX2, TX2, D5, D18, D19, D21, RX0, TX0, D22, D23, BOOT
- Description: Wi-Fi and Bluetooth microcontroller.
HC-SR04 Ultrasonic Sensor
- Pins: VCC, TRIG, ECHO, GND
- Description: Ultrasonic distance sensor.
DFPlayer MINI
- Pins: VCC, BUSY, RX, USB -, TX, USB +, DAC_R, K2/ADC_KEY, DAC_L, K1/ADC_KEY, SPK1, IO 2, GND, SPK2, IO 1
- Description: MP3 player module.
Loudspeaker
- Pins: pin1, pin2
- Description: Audio output device.
Wiring Details
0.96" OLED
GND connected to:
- HC-SR04 Ultrasonic Sensor (GND)
- L298N DC motor driver (GND)
- ESP32 (GND)
- Step Up Boost 3v-5v (GND)
- TP4056 (OUT-)
VDD connected to:
- DFPlayer MINI (VCC)
- HC-SR04 Ultrasonic Sensor (VCC)
- L298N DC motor driver (5V)
- ESP32 (VIN)
- Step Up Boost 3v-5v (Vo)
SCK connected to:
- ESP32 (D21)
SDA connected to:
- ESP32 (D22)
Step Up Boost 3v-5v
Vi connected to:
- TP4056 (OUT+)
GND connected to:
- HC-SR04 Ultrasonic Sensor (GND)
- L298N DC motor driver (GND)
- ESP32 (GND)
- 0.96" OLED (GND)
- TP4056 (OUT-)
Vo connected to:
- DFPlayer MINI (VCC)
- HC-SR04 Ultrasonic Sensor (VCC)
- L298N DC motor driver (5V)
- ESP32 (VIN)
- 0.96" OLED (VDD)
TP4056
OUT- connected to:
- HC-SR04 Ultrasonic Sensor (GND)
- L298N DC motor driver (GND)
- ESP32 (GND)
- 0.96" OLED (GND)
- Step Up Boost 3v-5v (GND)
B- connected to:
- Li-ion battery 18650-2000mAh 3.7V 7.4WH (-)
B+ connected to:
- Li-ion battery 18650-2000mAh 3.7V 7.4WH (+)
OUT+ connected to:
- Step Up Boost 3v-5v (Vi)
Li-ion battery 18650-2000mAh 3.7V 7.4WH
+ connected to:
- TP4056 (B+)
- connected to:
- TP4056 (B-)
Motor amarillo motorreductor hobby
vcc connected to:
- L298N DC motor driver (OUT4)
- L298N DC motor driver (OUT1)
GND connected to:
- L298N DC motor driver (OUT3)
- L298N DC motor driver (OUT2)
L298N DC motor driver
OUT1 connected to:
- Motor amarillo motorreductor hobby (vcc)
OUT2 connected to:
- Motor amarillo motorreductor hobby (GND)
OUT3 connected to:
- Motor amarillo motorreductor hobby (GND)
OUT4 connected to:
- Motor amarillo motorreductor hobby (vcc)
GND connected to:
- HC-SR04 Ultrasonic Sensor (GND)
- ESP32 (GND)
- 0.96" OLED (GND)
- Step Up Boost 3v-5v (GND)
- TP4056 (OUT-)
5V connected to:
- DFPlayer MINI (VCC)
- HC-SR04 Ultrasonic Sensor (VCC)
- ESP32 (VIN)
- 0.96" OLED (VDD)
- Step Up Boost 3v-5v (Vo)
ENA connected to:
- ESP32 (D12)
IN1 connected to:
- ESP32 (D25)
IN2 connected to:
- ESP32 (D26)
IN3 connected to:
- ESP32 (D27)
IN4 connected to:
- ESP32 (D14)
ENB connected to:
- ESP32 (D13)
ESP32
GND connected to:
- HC-SR04 Ultrasonic Sensor (GND)
- L298N DC motor driver (GND)
- 0.96" OLED (GND)
- Step Up Boost 3v-5v (GND)
- TP4056 (OUT-)
- DFPlayer MINI (GND)
VIN connected to:
- DFPlayer MINI (VCC)
- HC-SR04 Ultrasonic Sensor (VCC)
- L298N DC motor driver (5V)
- 0.96" OLED (VDD)
- Step Up Boost 3v-5v (Vo)
D21 connected to:
- 0.96" OLED (SCK)
D22 connected to:
- 0.96" OLED (SDA)
D12 connected to:
- L298N DC motor driver (ENA)
D25 connected to:
- L298N DC motor driver (IN1)
D26 connected to:
- L298N DC motor driver (IN2)
D27 connected to:
- L298N DC motor driver (IN3)
D14 connected to:
- L298N DC motor driver (IN4)
D13 connected to:
- L298N DC motor driver (ENB)
D2 connected to:
- DFPlayer MINI (RX)
D4 connected to:
- DFPlayer MINI (TX)
D5 connected to:
- HC-SR04 Ultrasonic Sensor (TRIG)
D18 connected to:
- HC-SR04 Ultrasonic Sensor (ECHO)
HC-SR04 Ultrasonic Sensor
- GND connected to:
- L298N DC motor driver (GND)
- ESP32 (GND)
- 0.96" OLED (GND)
- Step Up Boost 3v-5v (GND)