PIR sensor LED strip with deep sleep thoughts

Hello,
I've been working on a project recently. I wanted something that would turn on my LED strip once someone passed near it. I kept exploring and found out how to do that with a PIR sensor, but another problem came, since it will be hookep up to a battery, power consumption should be brought to a minimum. So I tried experimenting and came up with a solution, I would like to get some thoughts on it and if that would be a good permament solution.

The first transistor's base is hooked up to D0, which goes HIGH once the arduino is in deep sleep.
The second transistor's base is hooked up to the PIR sensor's output pin.
This way, I only alowed the arduino to be Reset (woken up from deep sleep) when it actually is in deep sleep, and the PIR sensor senses movement.
Then the arduino would do a lightshow on the LEDs for 10 seconds and go back to sleep.

Thank you in advance :slight_smile:

Please grab pen and paper and make schematics.

What Arduino board are you using? Have you measured the current when it is asleep?

Please see

Nick Gammon on low power

if you want your battery to last forever. He goes into all the usual ways to manage sleeping and waking up.

a7

Lolin wemos D1, it uses the ESP8266. I measured the current while it's asleep, and it would go around 4 mA which is very high for a sleep mode.
And thank you for your answer.

A WeMos D1 (not the mini) has too many other parts on the board.
Just brainstorming. With a NodeMCU (or a bare ESP8266) you could connect the PIR output directly to the EN pin. EN (enable) pin LOW should fully turn off the ESP.
Question is; why the esp8266. Do you need WiFi.
Leo..

Thank you very much for your answer.
My idea was, once someone passed close to the sensor, turn the LEDs for a few seconds, send a notification to a server, go to sleep.

I have measured the current without the LED strip (4 mA in deep sleep), but seems that the strip uses a lot of power even if they are not on. Meaning my current battery was able to last maybe 3-4 days in total.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.