We use the sensortag hardware with sub ghz configuration.
Bluetooth door sensor raspberry pi.
The door sensor consists of one sensortag and one ordinary magnet.
The ds18b20 and ds18s20 represents a very simple sensor.
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.
Copy and paste the following code into your raspberry pi and save it as a python file.
The project also lets users send a command to the door thus enabling you to.
These raspberry pi sensors are addressed via the so called 1 wire bus.
There are many use cases continue reading how to make raspberry pi bluetooth proximity monitor.
Free shipping on your first order shipped by amazon.
Introduction this project uses a raspberry pi w zero to continuously monitor an area for a specific bluetooth mac address.
Low voltage labs traffic lights.
The thingsquare system uses 6lowpan instead of bluetooth for several reasons.
Get it as soon as fri sep 25.
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.
When the mac address leaves the area the wemo devices is turned off.
Adafruit industries unique fun diy electronics and kits magnetic contact switch door sensor id.
Gikfun mc 38 wired door sensor magnetic switch for arduino ek1656.
The door sensor has two wires connect 1 wire doesn t matter which to a free pin i chose pin 8 you need to refer to this pin in the code explicitly and the other to one of the ground gnd pins pin diagram here.
When the magnet is less than 13mm 0 5 away the reed switch closes.
An advantage is that many different 1 wire components can be connected in series and read out by a single gpio.
1 16 of 217 results for raspberry pi door sensor amazon s choice for raspberry pi door sensor.
4 3 out of 5 stars 42.
A check with infrared light barriers or other methods would certainly be possible but in this case that is much more complicated.
Normally the reed is open no connection between the two wires.
Hooking up the sensor.
In addition to using a raspberry pi the project uses two sensors to determine whether or not the garage door is open.
When the bluetooth mac address is within a certain range a wemo connected device is turned on.
The sensor outputs a digital high 5v signal when it detects a person.
Build a raspberry pi door window sensor with reed relais.
The other half is a magnet.
Start up the raspberry pi and go to the desktop type.
Unlike many projects using this hardware we use ipv6 sub ghz 6lowpan communication instead of bluetooth.
Read now we can try reading the output from the pir motion sensor.