Mayank Sinha’s home security project

Yesterday, I received an email from someone called Mayank Sinha, showing us the Raspberry Pi home security project he’s been working on. He got in touch particularly because, he writes, the Raspberry Pi community has given him “immense support” with his build, and he wanted to dedicate it to the commmunity as thanks.

Mayank’s project is named Asfaleia, a Greek word that means safety, certainty, or security against threats. It’s part of an honourable tradition dating all the way back to 2012: it’s a prototype housed in a polystyrene box, using breadboards and jumper leads and sticky tape. And it’s working! Take a look.

Home security with Asfaleia

Asfaleia has a PIR (passive infrared) motion sensor, an IR break beam sensor, and a gas sensor. All are connected to a Raspberry Pi 3 Model B, the latter two via a NodeMCU board. Mayank currently has them set up in a box that’s divided into compartments to model different rooms in a house.

A shallow box divided into four labelled "rooms", all containing electronic components

All the best prototypes have sticky tape or rubber bands

If the IR sensors detect motion or a broken beam, the webcam takes a photo and emails it to the build’s owner, and the build also calls their phone (I like your ringtone, Mayank). If the gas sensor detects a leak, the system activates an exhaust fan via a small relay board, and again the owner receives a phone call. The build can also authenticate users via face and fingerprint recognition. The software that runs it all is written in Python, and you can see Mayank’s code on GitHub.

Of prototypes and works-in-progess

Reading Mayank’s email made me very happy yesterday. We know that thousands of people in our community give a great deal of time and effort to help others learn and make things, and it is always wonderful to see an example of how that support is helping someone turn their ideas into reality. It’s great, too, to see people sharing works-in-progress, as well as polished projects! After all, the average build is more likely to feature rubber bands and Tupperware boxes than meticulously designed laser-cut parts or expert joinery. Mayank’s YouTube channel shows earlier work on this and another Pi project, and I hope he’ll continue to document his builds.

So here’s to Raspberry Pi projects big, small, beginner, professional, endlessly prototyped, unashamedly bodged, unfinished or fully working, shonky or shiny. Please keep sharing them all!


Tony Martin avatar

Sounds good, but I hope the gas extraction fan is of the brushless (no sparks) kind 8-)

Mayank Sinha avatar

Yes actually it is :)

Michael avatar

You might want to consider a solid state relay for that too, so no sparking to ignite the gas.

Rishi Raj avatar

Kudos to the dedication and the zeal to do something out of the box. God bless you dear. You are making us proud.

Sanjana Soni avatar

It is a good product for home security within low cost.

Akis avatar

Do you know that ASFALEIA is a Greek world that means “security”? It’s “ασφάλεια” :)

Mayank sinha avatar

Yes you are absolutely correct. But writing it in that form (ασφάλεια)was very difficult for me, so I wrote it as AFALEIA. :)

Mayank sinha avatar

Yes you are absolutely correct. But writing it in that form (ασφάλεια)was very difficult for me, so I wrote it as ASFALEIA. :)

Prajesh avatar

How much it approximately cost to build in INR ?

Mayank sinha avatar

It cost me around 15000 INR for building.

Comments are closed