Multisensor_PIR_DHT_LDR_Battery
-
Hey Guys,
Today I have completed my first multisensor.As base I used a cheap china fire detectors and the MYS PCB board.
All components fits very well in the housing.
Unfortunately, the modified HC-SR501 do not work well with <= 3V with the DHT (delay in the sketch). Now I use this:
http://www.amazon.de/Niederspannung-PIR-Infrarot-Bewegungssensor-erkennt-Modul/dp/B008EGH3FM/ref=sr_1_1?ie=UTF8&qid=1433801387&sr=8-1&keywords=B008EGH3FMAnd it works very great!
The used Sketch is this:
wiring diagram coming soon;)
-
@n3ro
I am curious to see your wiring diagram. You have a step-up booster in one of the photos, was this just for the DHT?
-
Yes. This is a step up with a transistor for the dht.
I want to reduce the battery drain with the transistor.
http://forum.mysensors.org/topic/1446/battery-sensor-with-stepup-and-on-off-transistor
-
Hey folks,
I have just tried to reduce the sleep current of the nodes. With
*a transistor to turn on and off the stepup
*a second transistor to disconnect the ldr
*a external pullup with 680k for the pirNow I have a sleep current of 220-240uA.
Any ideas to tune it a little bit more?
Is it possible to check if the node is wake up from the interrupt or the timer?Regards
n3ro
-
maybe a stupid question, but can i use this sketch for the recommenced sensors ?
it's just exactly the sketch im looking for thanks!!
-
What do you mean with you recommenced sensors?
-
@n3ro Yes, you can. The sleep function has a return value. If it is < 0, timer is timed out. Otherwise it waked up by interrupt.
I'm working on a same multi sensor PCB with batteries. The PIR consumes 150uA. So you can reduce consume if your search a low power PIR sensor. Like this: http://forum.mysensors.org/topic/2387/low-power-pir-breakout-board-for-mysensors-and-evaluation/6
@scalz said it consumes only ~24uA.
-
@icebob hey the used pir consumes ~50uA. Since my last modifications I replaced the stepup and the dht with a si7021 sensor and the external pullup with 1m ohm. Now the sleeping current is ~190uA
-
@n3ro ohh, it's great. Which PIR are you using?
-
@icebob
http://www.amazon.de/Niederspannung-PIR-Infrarot-Bewegungssensor-erkennt-Modul/dp/B008EGH3FM/ref=sr_1_1?ie=UTF8&qid=1433801387&sr=8-1&keywords=B008EGH3FM&tag=wwwmysensorso-20
-
@n3ro I Mean the sensors advised by the Mysensors store...
-
Great...
Hope this will work for a long time on a battery?
What battery's you are using?1 problem< WHERE CAN I FIND:
#include <readVcc.h>
-
@Dylano
Hey,
Yes it works very good with 2 aaa Batts.You can find the read library here
https://github.com/sweebee/Arduino-home-automation/tree/master/libraries/readVcc
-
But I don't use the dht anymore.
https://github.com/n3roGit/MySensors_n3ro/tree/master/Multisensor_PIR_SI7021_LDA_BatteryThis works much better!
-
yes i saw your better solution..the si7021 is using less power i read..
Where do i have to place the: long readVcc
And how do ik make that .H file?How long is the multisensor running? on what battery?
-
@Dylano what do you mean with long readVcc?
The battery life is different because of the frequency of triggering from the pir.
Some nodes works for 2 month. Other ones for 6..
-
sorry, it is working now: what do you mean with long readVcc?
I use the sketch battery pir, to testOnly the report of the vcc how many times is the sketch reading this?
And where can i see the status?
I use Domoticz as controller.
-
@Dylano the sketch send the battery percentage everytime the voltage is changed
-
great, i see in domoticz the value great!!!...[ when power is low i get an alert. ]
You have a lot of sketches
Is het possible that you build a sketch include your pir-battery-ldr, and a light switch, or a option so i can switch a ledlight.
Like a pir-battery-ldr-switch...I will try to rebuild a solarpowerlight
With a solar powerbank, and a:LightSo i can have a Domoticz controlled solarpower light and motion/ldr [my]sensor
Only i cannot make a sketch for this... [ if you want, i will pay for it..., or a donation to charity organization ]
-
you cold try to modify this sketch:
https://github.com/n3roGit/MySensors_n3ro/tree/master/in_process/Multisensor_PIR_DHT_light_switch_battery
its not finished but there is all you need
Suggested Topics
-
Welcome
Announcements • • hek