Feed an ESP32 project
Posted: Mon Oct 26, 2020 10:37 am
Hi everyone. I am developing a project with an ESP32 microcontroller. I have connected several sensors (8 sensors) to the I2C bus and the readings work correctly, all powered from the board's usb (esp32-wroom-32). Through the USB I also read the data from the computer.
The problem happens when I try to connect a pair of stepper motors, two limit switches and an RGB led to the microcontroller. The system becomes unstable and the sensors begin to fail. I do not know what the problem might be.
Perhaps it is a power problem, the usb is not able to supply enough power to the system. But when I add an external pc source, to the 3.3v (orange wire (28 amps)) and GND (black wire) pins, the problem continues.
I do not know if it is to feed the system from two different sources, the USB and the 3.3v pin. But I need to read the data from the USB.
I have not found much information on how to correctly feed an ESP32 microcontroller when you need to feed many sensors, several motors, LEDs, buttons ... But I have been able to verify that the I2C bus is very sensitive to the system's power supply.
Could someone advise me how to power the system so that the I2C bus and sensors work properly?
Thanks in advance.
The problem happens when I try to connect a pair of stepper motors, two limit switches and an RGB led to the microcontroller. The system becomes unstable and the sensors begin to fail. I do not know what the problem might be.
Perhaps it is a power problem, the usb is not able to supply enough power to the system. But when I add an external pc source, to the 3.3v (orange wire (28 amps)) and GND (black wire) pins, the problem continues.
I do not know if it is to feed the system from two different sources, the USB and the 3.3v pin. But I need to read the data from the USB.
I have not found much information on how to correctly feed an ESP32 microcontroller when you need to feed many sensors, several motors, LEDs, buttons ... But I have been able to verify that the I2C bus is very sensitive to the system's power supply.
Could someone advise me how to power the system so that the I2C bus and sensors work properly?
Thanks in advance.