Low Power Door/window Sensor

by EasyIoT in Circuits > Arduino

69884 Views, 140 Favorites, 0 Comments

Low Power Door/window Sensor

doorwindowsensor.png

In this manual we will show how to create cheap, secure door/window sensor network. We could monitor our door/windows status from desktop computer or mobile phone in web browser. Properly configured sensor could work between 5 and 10 years on 2 AA batteries. Power consumption of this sensor is so low that I'm using wasted batteries from electronic toys and sensor still work. You can use up to 254 sensors per one server.

See more tutorials at http://iot-playground.com/build

Materials

Untitled.png
arduinopromini1.png

EasyIoT server:

Raspberry Pi

NRF24L01+ module

USB power supply

Sensor node (up to 254 sensors per one server)

Arduino Pro Mini (Hacked for low power consumption)

NRF24L01+ module

1M resistor

AA battery holder

Magnetic door/window reed switch

EasyIoT Server

raspberyNRF24.png
20141125_002422x.jpg

Connect Raspberry Pi and NRF24L01 transceiver.

Download EasyIoT server image and copy it to SD card. EasyIoT server download. Windows users can write EasyIoT server image to SD card with Win32 Disk Imager.

Door/window Sensor

lowpowerdoorwindowsensor.png

Connect Arduino Pro Mini NRF24L01+, batteries and reed relay. For extra low power consumption follow Arduino low power.

After connection all wires program arduino with this sketch. Make sure that NRF24L01 channel and speed is the same as later used in EasyIoT server (see MyConfig.h file for settings).

Configure

25-11-2014 12-00-49.png
25-11-2014 12-01-44.png
25-11-2014 12-02-18.png

Power on Raspberry Pi and go in Web browser on computer (Raspberry Pi and computer must be on the same network). In browser type Raspberry Pi IP address. When asked for username and password use: admin and test.

In Web browser go to Configure->Drivers->MySensors->MySensors Driver and then Add Node. Now you power on your new sensor. If you are successful you should see new sensor address (no timeout message). After that create new group Configure->Groups and Modules->Add Group. Add new group and go in newly created group. Now add new sensor. After that you should see new sensor in main page. You can add up to 254 sensors.

Mount Sensor

20141010_180028.jpg
20141010_180004.jpg

Place sensor to door or window.

Monitor

25-11-2014 12-02-18.png
25-11-2014 12-51-18.png

Monitor door/window status from everywhere. If you enabled logging database you can also see door/window status history.