My goal would be to have an ESP32 and 144 Neopixel WS2812 leds with 1 PWM channel that would be both alimented by a 1S 3.7V Lipo Batterie 2000mAh. I calculated that the leds + ESP32 takes a 2A maximum current drawn for my needs.
The thing is that's very easy to do that. You just plug the battery and it works. But that doesn't fulfill all my requirements.
Requirement :
I can give power or cut power to every component with an On/Off toggle button latch circuit.
I can turn off this latch circuit with the ESP32. Indeed when my battery is low I would like to be able to detect it with a voltage divider bridge and blink my Leds in red programmatically before cutting the power source.
I need to be able to run a load of 2A for my ESP32 and my leds.
I need it to be as small as possible.
I'm stucked, I saw a lot of latch circuit on the web and youtube that just operate on one poor led. This doesn't carry a 2Amps circuit. I saw Latch Relay circuit but the relay is too big.
I already made this :
But it doesn't support 2 Amps and I dunno yet how to stop my circuit power programatically.
Why would you want to do that? If you cut the power to the ESP, the LEDs may freeze or flicker randomly. If you cut power to the LEDs, you could program the ESP to achieve it without a switch. However, WS2812 LEDs will consume 0.5~1mA of current per led even when dark.
It's an ESP32 because I'll be ESPNOW. Indeed, it will be a slave that will be connected to a master ArmBand.
I think PWM channel is required to control the RGB WS2812 LEDs, else I don't understand what you're suggering. But that's not the problem I think. I shouldn't have mentioned it.
I know that it could require 9A. But I'm setting the brightness very low, I'm never using the full white color and I'm using Lipo so I go from 3.0~4.2 Volts.
I already did some tests on the Voltage and Amps, and it wont go above 2A.
Like it's done in the Tinkercad.
That's what I want to do, I want to cut the power off the Leds and ESP32 at the same time so that the LEDS doesn't consume that 0.5~1mA per LEDs. I'm already aware of that, that's why I would like to cut everything automatically when there's no more battery and when the user toggle the ON/OFF button.
That will happen anyway. Your LiPo pack will almost certainly have built-in over-discharge protection circuit which will cut the power when the battery is reaches minimum voltage.
ESP8266 can also use ESPNOW and if you can use ESP-01, these are very small.
No, my lipo battery doesn't have any builtin protection. It's just a 1S 3.7V with 2 wires, and I could go under 3V without having any warning from the battery itself. Maybe someone from AliExpress knocking at my door to tell me that, but unfortunately nobody came.
Yes I'm using a ESP32C3 now, to minimize the volume of the equipments.
Then you must add it. Small protection modules can be purchased for this purpose. This is very important because otherwise the battery can be damaged by over-discharging and can then catch fire or explode when recharged.
I'm already aware of this.
But it doesn't work in my case, because I want to throw a Red Light Blinking before shutting down the current. I need to trigger your component from my ESP32C3.