DEV Community

Cover image for Home Security System with low cost
Basilis Koulis
Basilis Koulis

Posted on

Home Security System with low cost

There are many security systems in the market, but a DIY system can cut down the cost to about 30€. In this post I will talk about the implementation of my own alarm system that I've uploaded to GitHub.

As for now, my app supports GPIO sensors, MQTT sensors, Hikvision LineCrossing. Multiple notifications can be triggered like activating serine, sending mail, calling through VoIP.

Hardware Requirements

  • The most important thing is the brains of the alarm which in my case I am using a Raspberry PI Zero which is more than enough to run the whole system.
  • The easiest sensors that can be connected are the Magnetic Sensors which need no power. They are connected to a BCM pin and the other end to an empty Ground in the GPIO pins of Raspberry.
  • Active sensors need power that is usually 12V DC. These include the PIR, Glass break, etc... They need a 4 wire cable, one for power+, one for power- and the other two are just like the Magnetic Sensors.
  • A relay for the Serine can also be connected with an extra component called Relay which turns on the power for the serine.
  • The best way I found to connect wires to Raspberry GPIO is by using Female Dupont Pins which look like this: Alt Text

This is a diagram of the connections I explained above:
Connection Diagram

Installation

The installation is a simple process that downloads the required files from the latest commit on GitHub. It can also be used to update to the latest release.
After it is done, you can navigate to the Web Interface to add sensors and change settings accordingly.

bash <(curl -s "https://raw.githubusercontent.com/bkbilly/AlarmPI/master/install.sh")
Enter fullscreen mode Exit fullscreen mode

Conclusion

Although the Dupont installation on the wire is a bit intimidating, it can be really easy once you get the hang of it. In case the wiring doesn't exist, I would recommend to call someone else to do this step for you or buy some Zigbee sensors and use the zigbee2mqtt to integrate them through MQTT sensors on AlarmPI.

Check out my GitHub repository here and support my work:

GitHub logo bkbilly / AlarmPI

🚨 Home Security Intrusion Detection for Raspberry PI or any other linux OS

AlarmPI Build Status GitHub release (latest by date)

AlarmPI is a home security system based on Raspberry PI. It supports wired sensors (PIR, Magnetic etc.) and wireless through MQTT or Hikvision. It is controlled with a Web UI, a Android Application, or through HTTP & MQTT messages. When the alarm detects movement, it supports the following events:

  • Enables the Serene
  • Send Mail
  • VoIP Calls
  • Send MQTT message

It is written in python and supports both python 2.7 & python 3.6. There is also the option of having more than one user by editing the server.json file accordingly.

Installation

With this command on your terminal you can install and update the application with my latest commit.

bash <(curl -s "https://raw.githubusercontent.com/bkbilly/AlarmPI/master/install.sh")
Enter fullscreen mode Exit fullscreen mode

Usage

Web UI

The Web Interface of the alarm has all the features that are needed to configure and use the home security. It supports real time events of the sensors, the logs and…

Top comments (5)

Collapse
 
grace_williams_2f4b32ef22 profile image
Grace Williams

Looking for reliable experts to bring your remodeling dreams to life? Helperzz is your go-to platform, connecting thousands of homeowners with skilled professionals every week. From home renovations to specialized projects, they make it easy to find the right pro tailored to your needs.

Collapse
 
taylorblake88 profile image
TaylorBlake88 • Edited

I would love to have this in my home. Lately, there were many burglaries in my neighborhood and I have to protect myself. I was thinking about getting some cameras for security like those from vivint.com/packages/security-cameras in order to see if someone is trespassing my property. I've heard some noises the other night and I'm really curious to see if there was a burglar or if it was an illusion. My wife is scared to death, but I'm trying to calm her down. After all, I have a gun in my house, so we should be good. I've also seen many police patrols around our street, so I'm pretty sure that we're safe

Collapse
 
neeti_sharma_0ac5d64fb34d profile image
neeti sharma

​Lucknow's real estate market in 2025 is experiencing significant growth, driven by infrastructural developments, economic expansion, and increasing demand for residential and commercial properties. This analysis delves into current pricing trends, highlights popular neighborhoods, identifies investment hotspots, and offers expert predictions for the future.​
Property Kumbh
+1
Lucknow Property Wala
+1

Current Pricing Insights
As of April 2025, the average property prices in Lucknow have seen a notable increase. Residential properties are averaging around ₹5,276 per square foot, with variations depending on the locality and property type. ​
MagicBricks
+2
Housing
+2
MagicBricks
+2

Premium areas like Sushant Golf City and Gomti Nagar Extension have witnessed substantial price appreciation. For instance, a 2 BHK apartment in these locales has surpassed ₹1 crore, reflecting the high demand for quality residential spaces. ​
Pardos Real Estate
+2
LinkedIn
+2
Property Kumbh
+2

Emerging areas such as IIM Road have also experienced significant growth, with property prices averaging ₹5,927 per square foot, marking a 5% increase from the previous quarter. ​
Housing
+3
MagicBricks
+3
99acres
+3

Popular Neighborhoods
Several neighborhoods in Lucknow have become particularly attractive to homebuyers and investors:

Gomti Nagar Extension
Known for its planned infrastructure and proximity to IT hubs, Gomti Nagar Extension offers a blend of residential and commercial properties. The area boasts excellent connectivity via Amar Shaheed Path and is home to reputed schools, hospitals, and shopping centers. ​
Pardos Real Estate
+2
Lucknow Property Wala
+2
Property Kumbh
+2

Shaheed Path
Shaheed Path is emerging as a hotspot for both affordable housing and premium villas. Its strategic location and upcoming township projects make it a preferred choice for investors seeking long-term gains. ​
LinkedIn
+1
Lucknow Property Wala
+1

Sultanpur Road
This area has seen significant infrastructural developments, including the expansion of the Outer Ring Road and metro connectivity. Sultanpur Road offers a mix of residential options, attracting both mid-range and luxury homebuyers. ​
Property Kumbh
Pardos Real Estate

Investment Hotspots
Identifying the right investment location is crucial for maximizing returns. Here are some areas in Lucknow that stand out:

Sushant Golf City
A luxurious township spread across 6,000 acres, Sushant Golf City offers world-class amenities and a peaceful living environment. Property rates here range from ₹3,500 to ₹5,500 per square foot for residential properties. ​
Housing
+3
Lucknow Property Wala
+3
MagicBricks
+3

Amar Shaheed Path
Rapidly growing with immense potential, Amar Shaheed Path's excellent connectivity and modern infrastructure have made it a favorite among investors. Residential properties are priced between ₹4,198 and ₹6,354 per square foot. ​
Real Estate
+4
Lucknow Property Wala
+4
Property Kumbh
+4
MagicBricks

IIM Road
With a 51.3% price appreciation over the last three years, IIM Road has become a lucrative option for investors seeking substantial returns. ​
99acres
+1
MagicBricks
+1

Expert Predictions
Industry experts predict continued growth in Lucknow's real estate sector, driven by:​
Jashn Realty

Infrastructure Projects: Developments like the Outer Ring Road and metro expansions are enhancing accessibility and boosting property values. ​
Property Kumbh

Economic Growth: The establishment of IT hubs and business corridors is attracting professionals, increasing demand for residential properties. ​
Property Kumbh

Government Initiatives: Smart City projects and affordable housing schemes are making Lucknow an attractive destination for both investors and homebuyers. ​
Real Estate

Spotlight on Nottingham Homz
One notable development contributing to Lucknow's real estate landscape is Nottingham Homz. Located in Malookpur, near Sultanpur Road, this project offers 1 and 2 BHK apartments starting at ₹34 lakh. The project is LDA and RERA approved, ensuring compliance with regulatory standards. Amenities include a gymnasium, swimming pool, kids' play area, and more. Its strategic location provides seamless connectivity to key areas such as Gomti Nagar, Aishbagh, and Lucknow Charbagh, making it an attractive option for potential homebuyers.

realitymantra.com/

Collapse
 
sydney0987654 profile image
Sydney C. Hogan

Elevate your home’s style with SQFT’s interior designers, who bring innovative design solutions tailored to fit every space. Blending aesthetics with functionality, SQFT creates beautiful homes that reflect your personality. Their expert eye for detail ensures each room becomes unique, turning your home into a masterpiece. From concept to completion, SQFT brings a fresh perspective to every home, enhancing spaces with timeless elegance

Collapse
 
godzilla1331 profile image
godzilla1331

Thank you very much for sharing and I appreciate the information I will try to find out more.

Some comments may only be visible to logged-in visitors. Sign in to view all comments.