So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By jeremyoha450
#93597 Hi guys

i'm trying to do a project where by i get a notification about mail or a button is pressed.

i have a following
- solar panel
- TP4056 (connected to solar and a battery)
- 18650 battery
- mcp1700 with 2 capacitors.
- either a ESP-01 or a ESP NodeMCU (still thinking) connects to wifi.

what i want to do is turn the ESP off during the night time and turn on during the day. Opposite to what a garden solar light does.

Is there anyway of doing this?

regards
Jeremy
User avatar
By davydnorris
#93620 You've got a couple of approaches...
- add a basic latch circuit triggered by the solar panel output. Use it to shut down and restart the unit by cutting the power
- if you wanted to be less brutal you could connect it to an unused GPIO that you monitor and shut the unit down gracefully
- as above but instead of shutting it down, deep sleep it, and then use the latch to wake the unit up in the morning by pulling the RST pin low temporarily
- sync the unit to internet time and then work out when to sleep and for how long. This solution is software based so requires no external circuitry