Home Automation Project

I’m using my Raspberry Pi more and more for home automation.

I have forgotten a few times to switch off the light downstairs while going to bed. And I usually don’t realise it’s been on until the next morning.

Similarly and more gravely I forgot a few times to lock the door.

Now I’m sure I’m not the only one to reach the bed, get comfortable and then ask myself “Did I lock the door?” only to have to go downstairs and double check.

This is where my Raspberry Pi and few components comes in handy: I have a PIR  for motion detection, a photo-resistor and a piezo buzzer connected to my Pi via a breadboard. Then it’s “simple”: check if it’s late in the day, check whether the light is on and if so, was there movement in the last 5 min? Yes? Then sound the alarm !

Similarly check if it’s late in the day, check whether the light is off and if so, is the door locked? No? Then sound the alarm !

I’ll create a dedicated page with some pics and code soon.