While this has been done before i thought i d post my solution.
Raspberry pi door open sensor.
It can for example also read analog sensors.
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.
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.
This instructable explains how i setup a raspberry pi to open my garage door using a smarthphone.
A true micro controller is e g.
Build a raspberry pi door window sensor with reed relais.
Raspberry pi garage door opener.
Low voltage labs traffic lights.
The raspberry pi can also be used as a micro controller but it has a lot more functions because it runs an operating system.
Copy and paste the following code into your raspberry pi and save it as a python file.
Demo and tutorial on how to control your garage door from your phone using an esp8266 module nodemcu and raspberry pi.
375 this sensor is essentially a reed switch encased in an abs plastic shell.
The other half is a magnet.
In addition to using a raspberry pi the project uses two sensors to determine whether or not the garage door is open.
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 sensor outputs a digital high 5v signal when it detects a person.
It sat there staring at me and then it clicked raspberry pi door sensor.
This was my first hardware project and instructable ever and i m sure.
When the magnet is less than 13mm 0 5 away the reed switch closes.
Each toilet at our office is a single room with its own locking door.
The project also lets users send a command to the door thus enabling you to.
A check with infrared light barriers or other methods would certainly be possible but in this case that is much more complicated.
Learn programming c javascript jquery the mean stack mongo express angular and node and excel.
Interfacing the pir motion sensor to the raspberry pi s input gpio.
Adafruit industries unique fun diy electronics and kits magnetic contact switch door sensor id.
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.
Via usb or 433 mhz or 2 4 ghz radio.
Read now we can try reading the output from the pir motion sensor.