Low Power Door/window Sensor

58,500

129

32

Posted

Introduction: Low Power Door/window Sensor

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

Step 1: Materials

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

Step 2: EasyIoT Server

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.

Step 3: Door/window Sensor

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).

Step 4: Configure

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.

Step 5: Mount Sensor

Place sensor to door or window.

Step 6: Monitor

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

Share

Recommendations

  • Epilog Challenge 9

    Epilog Challenge 9
  • First Time Author Contest 2018

    First Time Author Contest 2018
  • Paper Contest 2018

    Paper Contest 2018
user

We have a be nice policy.
Please be positive and constructive.

Tips

Questions

32 Comments

Can I use attiny85?

Can i use pir sensor on low power arduino?

Great project!

I was wondering... if the NRF24L01 has "Arduino capabilities", why do you still have to use the Arduino Pro Mini?

Very cool your project, does not work on RaspBerry Pi3?

Cesario

Very cool your project, does not work on RaspBerry Pi3?

Cesario

That's a great tut, by the way, how do you add a new sensor? and how do
you identify it? I'd like to try adding a few sensors around the house.
thanx!

hi, here you have more tutorials:
http://iot-playground.com/build

Hi! great tut! Could you clarify "Properly configured sensor could work between 5 and 10 years on 2 AA batteries." ?

and this:
http://iot-playground.com/blog/2-uncategorised/9-arduino-low-power-sensor

thanks for the info. so you:

1. removed the regulator of the Arduino Pro Mini

2. removed the power LED

3. reduced the internal oscillator frequency from 8 to 1MHz to operate at 1.8V

This way you reduced power consumption (Arduino) from 4.8mA to 6uA, resulting 10 years from 2 AA batteries.

I also noticed (from the door_window_sensor.ino) that you are using interrupts to wake the arduino on event (reed switch opened = door opened), otherwise the arduino is sleeping.

So the 10 years life can also be affected by how many door openings happens in between.

anyway, nice tricks!