Raspberry Pi Door Open Sensor
Copy and paste the following code into your raspberry pi and save it as a python file.
Raspberry pi door open sensor. Adafruit industries unique fun diy electronics and kits magnetic contact switch door sensor id. This instructable explains how i setup a raspberry pi to open my garage door using a smarthphone. 375 this sensor is essentially a reed switch encased in an abs plastic shell. Sunfounder raspberry pi 3 model b 37 modules sensor kit v2 0 for rpi 4b 3 b 2b a zero raspberry pi board included 4 4 out of 5 stars 141 135 99 135.
Read now we can try reading the output from the pir motion sensor. In addition to a surveillance camera and motion sensors information about open windows and doors is also of interest to a self built surveillance system. The raspberry pi can also be used as a micro controller but it has a lot more functions because it runs an operating system. Raspberry pi garage door opener.
Each toilet at our office is a single room with its own locking door. The sensor outputs a digital high 5v signal when it detects a person. When the magnet is less than 13mm 0 5 away the reed switch closes. A check with infrared light barriers or other methods would certainly be possible but in this case that is much more complicated.
It sat there staring at me and then it clicked raspberry pi door sensor. The project also lets users send a command to the door thus enabling you to. It can for example also read analog sensors. The other half is a magnet.
Low voltage labs traffic lights. In addition to using a raspberry pi the project uses two sensors to determine whether or not the garage door is open. I could create a small program script which monitored the open closed state of door s then serve a simplistic html page displaying their states. This was my first hardware project and instructable ever and i m sure.
A true micro controller is e g. Learning programming made easy. A raspberry pi with sd card and os installed i m using the pi 3 but any model with gpio headers will do unless you fancy some extra. Via usb or 433 mhz or 2 4 ghz radio.
While this has been done before i thought i d post my solution. The arduino can also be operated very easily on and with the raspberry pi e g. Learn programming c javascript jquery the mean stack mongo express angular and node and excel. Normally the reed is open no connection between the two wires.