I'm making a simple plant watering circuit where a moisture sensor triggers a relay after falling below a certain percentage, powering a motor.
The setup works perfectly when the ESP is powered through USB, however when trying to power the board through the Vin, the board powers fine but I lose power to the relay (multi-metre reads 0 current and voltage to the motor).
Initially, as I was powering the motor and the ESP with the same 9V, I assumed it was a current draw issue, however after trying both a separate battery and a breadboard PS with USB on to the Vin, I'm still reading 0.
I am unable to confirm if the GPIO pins are receiving power or not however I believe this to be the issue from the way the relay is not being activated.
Any ideas would be appreciated 🙂