I am working on my graduation project—a smart parking system—and I would like to verify my wiring before I power everything up. I am using an Arduino Uno to handle the sensor data and an ESP32 DevKit V1 (30-pin) as a Wi-Fi gateway.
Hardware Components:
Sensor: RCWL-1655 (Ultrasonic)
Microcontrollers: Arduino Uno & ESP32 DevKit V1
Voltage Divider: 1kΩ and 2kΩ resistors (for 5V to 3.3V logic conversion)
Current Wiring Setup:
Sensor (RCWL-1655) to Arduino Uno:
VCC -> Arduino 5V
GND -> Arduino GND
Trig -> Arduino Digital Pin 9
Echo -> Arduino Digital Pin 10
Logic Level Conversion (Arduino TX to ESP32 RX):** Since the Arduino logic is 5V and ESP32 is 3.3V, I’ve implemented a voltage divider on the Serial line:
Arduino Pin 11 (SoftwareSerial TX) connects to a1kΩ resistor.
The other end of the 1kΩ resistor connects to ESP32 Pin RX2 (GPIO 16).
A 2kΩ resistor is connected between **ESP32 Pin RX2 (GPIO 16) and Common GND.
3. Power & Common Ground:
Arduino and ESP32 share a Common Ground via the breadboard’s negative rail.
ESP32 is placed on the breadboard with one side "in the air" to allow access to the pins since it's a narrow 30-pin breadboard.
ESP32 GND and VIN are connected using Female-to-Male jumper wires.
My Questions:
Does this voltage divider setup look safe for long-term use on the ESP32 RX2 pin?
Are there any known issues using the RCWL-1655 at 5V while the ESP32 is powered via USB?
I’ve attached some photos of my breadboard layout for reference. Any feedback is greatly appreciated!
Your interconnection between UNO R3 and ESP32 using a voltage divider is safe.
However, like oter posters, I have the same question why are you using the UNO R3; the ESP32 is enough to do your job? Your ultrasonic sensor can be operated by 3.3V of ESP32.