The other half is a magnet.
Raspberry pi door open sensor.
A check with infrared light barriers or other methods would certainly be possible but in this case that is much more complicated.
While this has been done before i thought i d post my solution.
Via usb or 433 mhz or 2 4 ghz radio.
It sat there staring at me and then it clicked raspberry pi door sensor.
Interfacing the pir motion sensor to the raspberry pi s input gpio.
Learning programming made easy.
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.
Normally the reed is open no connection between the two wires.
A true micro controller is e g.
Low voltage labs traffic lights.
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.
Raspberry pi garage door opener.
Adafruit industries unique fun diy electronics and kits magnetic contact switch door sensor id.
Build a raspberry pi door window sensor with reed relais.
This instructable explains how i setup a raspberry pi to open my garage door using a smarthphone.
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.
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.
In addition to using a raspberry pi the project uses two sensors to determine whether or not the garage door is open.
The arduino can also be operated very easily on and with the raspberry pi e g.
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.
This was my first hardware project and instructable ever and i m sure.
The raspberry pi can also be used as a micro controller but it has a lot more functions because it runs an operating system.
The project also lets users send a command to the door thus enabling you to.
It can for example also read analog sensors.
375 this sensor is essentially a reed switch encased in an abs plastic shell.
When the magnet is less than 13mm 0 5 away the reed switch closes.
Learn programming c javascript jquery the mean stack mongo express angular and node and excel.