I want to use a 12V adapter to power the following setup:
Arduino Uno
RCWL-1655 ultrasonic sensor (connected directly to the Arduino)
ESP32 (powered separately through the breadboard)
My idea is:
supply 12V to the Arduino Uno (via VIN or barrel jack)
power the ultrasonic sensor directly from the Arduino (5V and GND)
power the ESP32 from the Arduino’s 5V (or VIN) through the breadboard
I am not sure if this is safe and stable.
My questions are:
Is it OK to power everything from the Arduino regulator using 12V input?
Will the Arduino regulator handle the current for Arduino + sensor + ESP32?
Should I instead use a buck converter (12V → 5V) and power everything from that?
I would appreciate any advice on the correct and safe way to power this setup.
Thank you, so the correct approach would be to use a buck converter (12V to 5V) and power all modules from that, instead of using the Arduino regulator, correct?
If your RCWL only works on 5V, then you could use level shifters to interface it with the ESP, eliminate the Uno and then you would only need one 5V supply.
You do NOT need the UNO. If the sensor is really 5V use a level shifter but check the data sheet, it may work fine at 3.3V
I just googled it and got
The RCWL-1655 waterproof ultrasonic sensor operates on a wide supply voltage range of 2.8V to 5.5V DC.
Operating Voltage: 2.8V – 5.5V
Logic Level: The output signal (ECHO pin) matches the supply voltage, making it compatible with both 3.3V (e.g., ESP32, Raspberry Pi) and 5V (e.g., Arduino Uno) microcontrollers.
Working Current: Approximately 3.5mA to 4mA.
Detection Range: 20cm to 400cm (at 3.3V) or up to 600cm (at 5V).
Only problem with the Uno is that it's not advised to use USB while external 5V is connected to the 5V pin. In which case one can replace the Uno with a Nano.