* http://www.superhouse.tv/episodes
* http://www.superhouse.tv/episode/13-connecting-security-sensors-to-arduino

Security sensors such as PIR motion detectors are a great way to add automatic behaviour to your Arduino or Raspberry Pi home automation system. Learn some tricks you can use to protect your sensors from intruders and keep your home secure.

, https://i.ytimg.com/vi/NfPDpwtPi6g/hqdefault.jpg

source

31 Comments

  1. Knowing how easy it is to jam home security systems , I decided to trash the base station and make it into a network based alarm system.

    Pretty simple , there is a web server which serves up a control panel which I can set individual sensors to home or away mode.

    All the sensors(hooked up to Arduino ) do is constantly query the server to get what mode(home , away) and the appropriate action (siren,email) to take if a sensor is tripped.

  2. Great vide! Can you explain how to connect your shield do to the regular VCC-OUT-GND PIR sensors?

  3. It would save a step or two if you'd put a link to the sketch in the video description…!

  4. Im trying Alexa to measure the temp, could i get a Humidity Temperature Sensors and plug it into the auxiliary port on Alexa? i want to wire it in, verses getting more wifi enabled devices, any recommendations?

  5. Great video and nice to see you are back. I have my hardware for this project all complete now however my Arduino skills are not the best and I have been pulling my hair out for a few days now. A follow up video showing how you would modify the sketch to accommodate MQTT would be great. Everything is working fine including connection to my MQTT broker, I am just struggling to modify the sketch to send messages based on state changes. Keep up the good work and look forward to seeing more videos. Cheers

  6. mate, good content but for the love of god sort out your mic, the static is unbearable

  7. Excellent explanation and video series. I've one ramark. You can reach the same goal by only two resistor, the third is not necessary (the one in parallel with tamper switch).
    This way (only 2 resistor) you can detect: all switches closed, Alarm switch open, Tamper switch open, open circuit (wires cut), and wires shorted.

  8. nicely explained. at the end of your video, there was a bit of a delay before the room light turned on. any idea what in your system causes that, or does it not bother you enough to look into it?

  9. Just to help others out on this one:
    In regards to using a normal Arduino UNO, or any other uC with a low analogue input count, with several alarm sensors (using the resistive divider method), I studied the Caddx NX-216 Alarm Expander board (See Image of the board here):
    https://www.argina.com/nl/cache/file/2CA6BDBD-2F5D-4430-B5FE1AECEB50FF6A.jpg

     Basically it takes 16 inputs, puts it each on its own potential divider (to generate the Voltage as mentioned in this video), then instead of going directly into the PIC Microcontrollers Analogue Input, they run 8 inputs into each of 2 x CD4051B Analogue Multiplexer Chips.The Multiplexer chip then connects to the Analogue in of the uC [which then serially passes the information on the bus to the alarm panel].

    So what I got from Reverse Engineering their method from that is for 8 Alarm Sensors, your Microcontroller just needs to have 1 Analogue Input, and 3 DIgital Outputs (Connected to the 4051 Mux Chip, to tell it which channel you want to read).

    All you do is then set your digital pins to 000, then do an analogue read of the input, and save to an array, or process immediately. Then increment the Digital pins to 001, and do a read again, and by scanning all the inputs like that, you can get away with only 1 ADC pin for 8 Inputs.

    Because the potential divider for each input channel is before the Multiplexer chip, you do not even need to worry about the 4051's typical series (pass through) resistance of 125 Ohms. All that does is lower the current that can be drawn by the ADC pin, being a series resistance., but it will not affect your voltage reading.

    Add another 4051B, and 2 more digital pins (1 connected to the EN pin of each 4051), Connect the Outputs together to the same Analogue input, and you can then have 16 seperate sensors. Using this method, you can scan a lot of Inputs, (8, 16, 24, 32, 40, etc) (limited only by your uC digital pins) using only 1 ADC pin!

    I have just gone and ordered myself 20 of the 4051 DIP chips from Aliexpress. When they do get here (to South Africa) from China, Possibly in 2 or 3 months, if our Postal workers don't pinch it!, I can play around, with adding this to my Openhab/MQTT system to monitor my PIR's in each room.

  10. Is there a way to reduce wire capacitance? I got a DSC sensor on a 20m 4 wire telephone cable. I get tamper states between normal and alarm states. Thanks for the great video, I watched it 3-4 times 😀

  11. I really like that kind of videos. Full of good explanations. You can watch it and build it yourself. Thanks

  12. dont implant never any chip under your skin the it is mean cancer…with the time and slave for ever!!

  13. a learned a lot from video, practical and technical too, if you could features remote control/monitor using GSM shield and bridge to ethernet(local) for sensors reading

  14. Hi. I hope you're still monitoring this vid. I am have a hell of a time find that pir sensor. Any chance you can link me?
    TIA
    David

  15. Does 12v not screw up the arduino I thought they only did 5v? Have you done something to it to make it run on 12v?

  16. Would it be possible for you to provide instructions on how to make the security sensor shield that you designed, or are you offering the units for sale? I am interested in installing a security system using your design ideas.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.