3-in-1 Humidity Temp and Motion
-
no. usb charger powered. No idea where to start with battery powering this stuff
-
@chilump
Yes of course... I'll update the original post shortly..EDIT: UPDATED
-
Interested in how you will package this? will the recorded temp be affected by the duino if it's enclosed?
-
No its not affected as the temp sensor is on the outside of the case along with the motion sensor
-
I found out quite marked difference between different setups! On the surface of the enclosure there's >3C warmer than few centimeters further from the enclosure, see pictures :-)
First picture: temp, light level, door sensor, movement, patio PWM led lightning. DS sensor on the bottom of the enclosure
(temp, light level, movement)Second: temp, light, movement

-
I found out quite marked difference between different setups! On the surface of the enclosure there's >3C warmer than few centimeters further from the enclosure, see pictures :-)
First picture: temp, light level, door sensor, movement, patio PWM led lightning. DS sensor on the bottom of the enclosure
(temp, light level, movement)Second: temp, light, movement

-
Upper picture: a repurposed old movement alarm unit, was on sale for 2€ several years ago on a local store.
Lower one: from dx.com (http://www.dx.com/p/wall-mount-pir-motion-detector-with-80db-alarm-siren-7-10-meter-110-degrees-15278), just swapped the internals. A bit small for my spider net constructions, though. -
Hi,
I am trying out your 3-in-1 Humidity Temp and Motion sensor with a DHT11 and get the following in the serial out put
sensor started, id 5
send: 5-5-0-0 s=255,c=0,t=17,pt=0,l=5,st=ok:1.4.1
send: 5-5-0-0 s=255,c=3,t=6,pt=1,l=1,st=ok:0
read: 0-0-5 s=255,c=3,t=6,pt=0,l=1:M
send: 5-5-0-0 s=255,c=3,t=11,pt=0,l=15,st=ok:Humidity/Motion
send: 5-5-0-0 s=255,c=3,t=12,pt=0,l=3,st=ok:1.0
send: 5-5-0-0 s=0,c=0,t=7,pt=0,l=5,st=ok:1.4.1
send: 5-5-0-0 s=1,c=0,t=6,pt=0,l=5,st=ok:1.4.1
send: 5-5-0-0 s=2,c=0,t=1,pt=0,l=5,st=ok:1.4.1
1
send: 5-5-0-0 s=2,c=1,t=16,pt=0,l=1,st=ok:1
Failed reading temperature from DHT
Failed reading humidity from DHT
1
send: 5-5-0-0 s=2,c=1,t=16,pt=0,l=1,st=ok:1
Failed reading temperature from DHT
Failed reading humidity from DHT
0
so the motion is working but not the temp or humidity, do I have to do some thing different in the scetch for the DHT11 over the DHT22?Thanks for any help.
-
Hey
From what I just read it shouldnt matter.. you I would double check you wiring of the DHT11. Your output should be on PIN 4.. Also, have you placed the resistor on the DHT1`1
-
hi,
thanks I did some reading my self and realised I needed the resistor works a treat now. thanks for the reply.
@Opus40 Great!
I am currently finalising a 5 in 1 sensor... just testing and so far its working fantastic
-
@Opus40 Great!
I am currently finalising a 5 in 1 sensor... just testing and so far its working fantastic
@Konrad-Walsh said:
I am currently finalising a 5 in 1 sensor... just testing and so far its working fantastic
Hum-temp-motion-light-???
-
@Konrad-Walsh said:
I am currently finalising a 5 in 1 sensor... just testing and so far its working fantastic
Hum-temp-motion-light-???
@Nuubi LOL.. its a secret!!!
and I will share my carefully guarded secret... Air quality sensor!! or in other words.. smoke and gas detector...
-
Did you mount your PIR behind the rounded screen area on those cases? It works through that?
I have yet to get to integrating PIR's in to my sensors, but do plan to, and was curious how to effectively mount them. Need to offer protection from the circuitry, but visibility to the sensor itself.
-
Question about a minor detail:
Wouldn't a motionsenser trip be missed during:
delay(dht.getMinimumSamplingPeriod()); ?
For a DHT22 this is 2 seconds... or does the interrupt still has precedence?@C4Vette you could just use a non-blocking method to read the temperature instead of the delay.
The delay is method is in the library and used so that multiple reads to the sensor don't affect the reading (overheating the sensor).
since SLEEP_TIME is 30s in the code above... I'd just read the temperature each time the sensor was awakened.
you could just timestamp the last reading and check that at least the 2 seconds elapsed since the last reading before you take a new one (in the case that motion was detected.
-
@C4Vette you could just use a non-blocking method to read the temperature instead of the delay.
The delay is method is in the library and used so that multiple reads to the sensor don't affect the reading (overheating the sensor).
since SLEEP_TIME is 30s in the code above... I'd just read the temperature each time the sensor was awakened.
you could just timestamp the last reading and check that at least the 2 seconds elapsed since the last reading before you take a new one (in the case that motion was detected.
@BulldogLowell
Ok, thanks for explaining. I'm no programmer but trying to understand the code. So because there is also a sleep-periode, the earlier mentioned delay could be omitted? I do not fully understand how the motion interrupt is working but I replaced the 30 second sleep with a few lines using millis, as you implied so that the loop keeps on running to do other things.
At the moment my sensor is a working combination of a LED-dimmer with a motion-sensor and now trying to add a DHT. This stuff is fun!
Posted some photo's at http://forum.mysensors.org/topic/781/my-led-dimmer-motion-temp-hum-sensor