book collections email follower instructable user
Picture of Home Presence Simulator and Security Control Device
20190409_161241.jpg
20190402_182513.jpg
20190402_182553.jpg

This project allow us to simulate presence and to detect movements in our home.

We can configure a network of devices installed in differents rooms of our home all of them controlled by a main device.

This project combines these features on a single device (PICTURE 1):

  1. It is a presence simulator: the device switchs on and off one light bulb (PICTURE 1) and use an IR transmitter (PICTURE 2) to send 38 KHz IR control codes to IR controlled devices (TV, VCR, lamps, ...)
  2. It is a movement detector: the device has got a PIR sensor to detect movements (PICTURE 3)

The whole system is controlled by a master device that send signals to the others slave devices presents in the network to switch on and off the lights and to activate controlled IR devices according to a scheduled presence simulation.

The main features of the master device are the following:

  • It uses a scheduled secuence of commands to control each slave device. For example: the light in the slave station 1 will switch on every day during a random period of time or the slave station 2 will switch on the TV and will change channel after a period of time.
  • It receives the signals from the slave stations when a movement is detected and send us and e-mail
  • It configures a Web Server to control and update the whole system remotely from the Cloud

I hope you like and be useful for somebody.

Step 1: Building a Slave Device

Picture of Building a Slave Device
20190401_195222.jpg
20190401_195014.jpg
20190402_173825.jpg
20190402_182441.jpg
20190402_185615.jpg

To build a slave device we will need the following:

  • Electric box
  • ARDUINO NANO or compatible ARDUINO NANO microcontroller
  • Protoboard 480
  • Relay
  • 38 KHz IR transmitter
  • PIR sensor
  • nRF24L01 module + antenna
  • Adapter for nRF24L01 module
  • Power supply 5V, 0.6 A
  • Lamp holder
  • Light bulb
  • Cables
  • Terminal block

The steps to mount it are the following (see the Fritzing drawing for each pin connection):

  1. PICTURE 1: open a hole in the electric box for the lamp holder
  2. PICTURE 2: install the protoboard 480 with the NANO microcontroller, the IR transmitter and the power supply
  3. PICTURE 3: connect the phase conductor of the lamp holder to the NC terminal of the relay and the neutral conductor to the neutral input in the terminal block. After that, connect the common terminal of the relay to the phase conductor of the input in the terminal block
  4. PICTURE 4: connect the IR transmitter and the PIR sensor to the NANO microcontroller. See the step 3 to configure the IR codes for the device you want to control
  5. PICTURE 5: install the nRF24L01 adapter outside the electric box and connect it to the NANO microcontroller. As you can see in this picture the cables goes into the electric box through a hole that also it is used to connect the USB programming cable to the NANO microcontroller
diy_bloke1 month ago
Quite a project. Good presence simulation remains the best defense de against burglars
TecnoProfesor (author)  diy_bloke1 month ago
Thank you for your comment.
I think just like you and that was my intention when I made it.
It´s installed and working at home.