So I want to develop a soil moisture control device. But I have a problem with my ESP32 device, it didn't work properly when I used the PSU as a power source, I used step down to change the PSU voltage from 12v to 5v. There is a built-in led on the step down and ESP32, which flashes rapidly. But when I used the micro usb as a power source, the esp32 was running properly and the led was on normally.
For detailed device specifications as follows:
1.ESP32 DOIT DEVKIT V1 (30 pins)
2. PSU Output 12V 15A
3. Step Down LM2596 (Set to 5V)
4.LCD 16x2 I2C
5. Capacitive Soil Moisture (CSM) Sensor
6. DHT22
7. 5V Relay Module
8. 12V 4.2W Water Pump
So when I connect it with micro usb, the led on step down, esp32, and the relay can light up without blinking. The LCD is also on and displays soil moisture values. But if I use psu, the relay led doesn't turn on, the led on step down and esp32 blinks quickly, the LCD also flashes.
Oh sorry, there was a mistake in my sentence. When using micro usb as a power source, I don't use step down because I don't use PSU.
So the problem is when using a micro usb as a power source, the device can run properly, but when using the PSU and step down, the device cannot run properly.
The PSU I'm using has an output of 15A, and the step down has a max output of 3A. I have also calculated how much total current is needed for this project, which is about 350mA.
Can you link to the esp32 module you have? If you remove the esp32 from the rest of the circuit, and try to supply 5v to the esp32's VIN and GND pins, does the esp32 turn on?
I once had an esp8266 module (wemos d1 mini pro) which refused to accept power from VIN and GND, and only accepted power from usb input or 3.3v pin. Never had this happen with an esp32 module though.
I use digital ones. I have checked the Vin pin on the ESP32 board and on the DC-DC outputs, the multimeter read 5v. But I haven't checked it when using USB as the power source. Ill let you know later
There are 2 pins at the bottom, it says 5V and GND, those are the pins connected to the step down/PSU. I just want to say, this is my first time doing this so if there is any problem with this design, please let me know.
No, I don't. I've heard it's important to use it to protect from voltage spikes. But I'm pretty sure that's not the case because the pump works normally when I use the USB as the power source of the ESP32. The pump power source is different from the ESP32, it's directly connected to the PSU.