-
Notifications
You must be signed in to change notification settings - Fork 289
Integrated a Signal from PIR Sensor to switch on and off LED #257
base: master
Are you sure you want to change the base?
Conversation
be on low if we reboot. This is not sure in all circumstaces. D2 has no pulldown but it is on state low all the time I test and the pir sensor gives High and definitive low
Hi @Roemke, Best regards |
Hi Tobias,
But maybe I will use another esp to have my sockets (230V) in the garden without voltage most of the time, I have done some experiments with the relais shield for the d1 mini. |
My recommendation is to get a HC-SR505 over HC-SR501. In my experience, it has mediocre sensitivity to movement and is not effected by stary Infrared signal much. Only caveat is there is no adjustment knob for the timer or sensitively. Both HC-SR501 & 505 take 5V input and out signal is 3.3V, which means you can connect directly to any pin on ESP8266. There is also cheap human detector, ie microwave detector (RCWL-0516) that can sense movement through wood and walls. Only issue with this code or any digitalread() in a loop() is that it causes wdt reset without a delay in loop(). It takes time to get the reply back from digitalread(), and blocks the rest of the code until reply. This can be avoided by using interrupts, could we change that? |
Hi @debsahu , |
Hi @debsahu , |
Hi Tobias,
I have extended the master branch to connect a small PIR Sensor and worked like the #button concept in the original master branch. It would be nice, if you could integrate it into your branch.
If I misunderstood something on using git and the pull request, please excuse me, I'm not using it very often.
Thanks for your work
Karsten