Hippogriff
Member
Hi,
A while ago I created a nice project where I used a PIR sensor that outputs a +5V when it senses something, lovely for interfacing to a PIC. It's a little bare-bones, though, as it's just the sensor on a tiny PCB and three wires (positive, negative and output)... I now want to look into something a bit more complete or professional looking. So I started to look at normal PIR sensors that you can buy for adding to security systems.
While I do have a mains socket (or USB) close to where the project will go, I'm not entirely sure how you can get a normal PIR to work with a PIC - are there accepted standards for how PIRs work, or is each one different and you'd need to read a datasheet, for example?
I was looking at this... https://www.amazon.co.uk/Brennenstuhl-1170900-Infrared-Motion-Sensor/dp/B002ZXWVZW ...as an example. Looks nice.
But I'm not entirely sure a) how I would power it (do I end up knocking-up my own mains cable?) and b) what it outputs when it senses something and whether I can easily connect that to a PIC (it seems to me that these PIR devices can act as a load switch... it sense something and it switches on a floodlight or something).
Is there a more complete product out there that outputs a logic 1 / high voltage when it senses something? My standalone PIR sensor does exactly that but it's not in a box and currently stands-out as it's looking at the area I want to cover and held up with Blu-tack. Not the best.
Are there PIR sensors that connect to a normal plug socket? Are there PIR sensors that are USB-powered? Searching - so far - seems to indicate not.
A while ago I created a nice project where I used a PIR sensor that outputs a +5V when it senses something, lovely for interfacing to a PIC. It's a little bare-bones, though, as it's just the sensor on a tiny PCB and three wires (positive, negative and output)... I now want to look into something a bit more complete or professional looking. So I started to look at normal PIR sensors that you can buy for adding to security systems.
While I do have a mains socket (or USB) close to where the project will go, I'm not entirely sure how you can get a normal PIR to work with a PIC - are there accepted standards for how PIRs work, or is each one different and you'd need to read a datasheet, for example?
I was looking at this... https://www.amazon.co.uk/Brennenstuhl-1170900-Infrared-Motion-Sensor/dp/B002ZXWVZW ...as an example. Looks nice.
But I'm not entirely sure a) how I would power it (do I end up knocking-up my own mains cable?) and b) what it outputs when it senses something and whether I can easily connect that to a PIC (it seems to me that these PIR devices can act as a load switch... it sense something and it switches on a floodlight or something).
Is there a more complete product out there that outputs a logic 1 / high voltage when it senses something? My standalone PIR sensor does exactly that but it's not in a box and currently stands-out as it's looking at the area I want to cover and held up with Blu-tack. Not the best.
Are there PIR sensors that connect to a normal plug socket? Are there PIR sensors that are USB-powered? Searching - so far - seems to indicate not.