So following on from my previous post about switches at https://hackaday.io/project/4857-commercial-home-automation/log/16130-switches-are-simple-right let's talk about Passive Infra Red (PIR) sensors.
Cost: OMG HOW MUCH?!
Summary: No way in hell I'm buying one at that price
Supplier: Loxone
Wow, the price of this is staggering. It's got a light level sensor and a PIR in it. I'm not going to buy one, but I'm including it here without much comment.
Manufacturers site - http://shop.loxone.com/enuk/presence-sensor.html
Generic presence sensorCost: Low (£10)
Summary: Not quite what I'm after, but I can hack this.
Supplier: Low Energy Supermarket Ebay shop
I purchased this with the thought that I would place them in some rooms outside of the automation system like the toilet and possibly the kitchen. I ran it in the kitchen for a while until it finally started to annoy me. There's an adjustable timer and light level sensor which means that once the light drops below a certain level the PIR will activate the light until no presence is detected and the timer runs down. It's 240v mains, which isn't great for working with, so having gotten annoyed with it and removed it (Claire nearly cut herself after the lights in the kitchen went out) I took it apart for a looksee.
So what's the black tube? It's a fuse, that's a good thing. Otherwise not much of interest.
Oh hello! That's a 24v relay. That means that we're looking at a 24v DC supply. *grin* The Loxone kit is 24v DC, which I don't think I've mentioned so far. The two circuit boards are a mains power supply and the combined PIR and logic board with the two variable resistors on. Removing or modifying the back board *should* give us a board that we can power with 24v and will trigger a 24v line when activity and suitable light level are detected. We don't actually care about the light level or the timer so we can turn both right down. Now we have something we can connect directly to a Loxone digital input and feed into a lighting controller block for a fraction of the cost of the official presence sensor. This I like :)
Purchased from Low Energy Supermarket Ebay Shop - http://www.ebay.co.uk/itm/230776895665
Hacking the generic PIRSome time after writing the top half of this post, I got to the testing. Tests on the generic PIR revealed that indeed it was 24v as expected. A simple full wave rectification circuit with four 1N4007 diodes, a couple of capacitors, a signal diode and a couple of resistors.
Turns out the signal diode was mostly redundant as far as I can tell, it's included to eliminate back EMF but that's actually dealt with by one of the power diodes without need for it. Eh, I put one of the power diodes back in and removed the signal diode.
So testing! Lets see what the current consumption is like on this after the modification
Huzzah! 24v DC PIR with low current consumption and low cost. Our terminals are now switched 24v DC, 0v and +24v DC enabling us to use this on an input as suggested above. The input can then be mapped to the sensor input on the lighting controller and programming via the Loxone as documented.
I'm very happy with this money saving hack and will be buying a few more of these sensors in the very near future!
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.
Latest post now up with the new PIR design at http://lamm.space/2016/09/10/presence-sensors-revisited/
Hope that helps peeps!
Ian
Are you sure? yes | no
Turns out that the manufacturer changed the design for the PIR I used, a couple of people have contacted me to ask about this. I've ordered a new one today so as soon as I'm able I'll get a fresh post up with the new design.
Ian.
Are you sure? yes | no
Therefore it works also on 0-10v?
Are you sure? yes | no
No, the PIR is 24v
Are you sure? yes | no
these work for me, out of the box:
http://www.dx.com/p/dual-element-pir-motion-sensor-detector-white-149717#.VYyvKlVsFHw
http://www.dx.com/p/ceiling-mount-dual-element-pir-motion-sensor-detector-white-149722#.VYyvWlVsFHw
Are you sure? yes | no
@Thebays, how did you handle the 28v alarm output of the paradome pir?
Are you sure? yes | no
just used 24v and it worked. have had it in the hallway for 3 years, switching light on, no issue
Are you sure? yes | no
Cool, I look forward to them!
Are you sure? yes | no
As someone who is a novice Loxone programmer I am loving this series, any more posts coming?
Are you sure? yes | no
Hi Andrew!
Yes, I have a couple planned. One on implementing your own light level sensor using a Raspberry Pi and the sensor module in the list for the project and another on cabling and how I've done mine. The sensor one might be a while off as it needs some software writing and some hardware building which is a bit more time than I have
free right now.
Hit a bit of a stop getting stuff done on the house renovation :)
Thanks for the comment, acts as a reminder I need to write some more stuff!
Ian.
Are you sure? yes | no