Copy and paste the following code into your raspberry pi and save it as a python file.
Raspberry pi 2 wireless door sensor.
Visit our projects site for tons of fun step by step project guides with raspberry pi html css python scratch blender.
Get it as soon as fri sep 25.
The raspberry pi can also be used as a micro controller but it has a lot more functions because it runs an operating system.
Gikfun mc 38 wired door sensor magnetic switch for arduino ek1656.
Start up the raspberry pi and go to the desktop type.
Getting started with the raspberry pi set up your raspberry pi and explore what it can do.
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.
Viewed 5k times 0.
1 16 of 217 results for raspberry pi door sensor amazon s choice for raspberry pi door sensor.
Low voltage labs traffic lights.
4 3 out of 5 stars 42.
How to connect 2 wire door sensor to raspberry pi.
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.
Build a raspberry pi door window sensor with reed relais.
It can for example also read analog sensors.
Free shipping on your first order shipped by amazon.
Via usb or 433 mhz or 2 4 ghz radio.
This a reed switch based sensor 2 wire door sensor it comes normally in two types nc normal close or no normal open.
Interfacing the pir motion sensor to the raspberry pi s input gpio.
I recently received this 2 wire door detection sensor see image below.
Rock band make your own musical instruments with code blocks.
Gpio project kit for raspberry pi.
The sensor outputs a digital high 5v signal when it detects a person.
A check with infrared light barriers or other methods would certainly be possible but in this case that is much more complicated.
Raspberry pi sends an email to your phone when door is opened or closed logs the event to a text file.
A true micro controller is e g.
Entry sensor monitors your door window server cabinet or catflap.
Happy birthday make an online birthday card on a webpage.
Hooking up the sensor.
Active 2 years 11 months ago.
The arduino can also be operated very easily on and with the raspberry pi e g.
Read now we can try reading the output from the pir motion sensor.