Ameba Arduino - IOT Home Security System

MENG XI

Mar 18, 2020
52
Joined
Mar 18, 2020
Messages
52
One of the most useful IoT applications is home security. Imagine a thief cutting your security camera wire while trying to break into your house. This won’t happen if your security system goes wireless and smart.

This project demonstrates the capability of Realtek Ameba dev. board to conduct board-to-board communication via MQTT (FREE MQTT broker hosted at cloud.amebaiot.com).

With this home security system, you will definitely be alarmed when your window/door is opened by the self-invited as the buzzer will make loud irritating noise while red LED flashes continuously.

Of course, this project has left rooms to add your own logic to it. For example, sending MQTT messages to your phone to alert you, or to an IP camera to capture the image of the thief.

Hardware Preparation

- Ameba1 RTL8195AM  x2

- Buzzer            x1

- LED (red)         x1

- Reed switch       x1

- Magnet            x1

- Jumpers           x6

As 2 boards are needed to implement this project, there are 2 connection illustration as follows,

https://github.com/Realtek-AmebaApp/Ameba_Examples/blob/master/RTL8195AM/006_HOME_SECURITY/WindowSecuritySystem_Switch_bb.png

https://github.com/Realtek-AmebaApp/Ameba_Examples/blob/master/RTL8195AM/006_HOME_SECURITY/WindowSecuritySystem_Buzzer_bb.png

Software Preparation

1. Check and make sure you have installed the ameba 1 board to Arduino IDE via adding this link into “additional boards manager URLs” under “Preference”, and install it in “board manager” under “Tools”,

https://github.com/ambiot/amb1_arduino/raw/master/Arduino_package/package_realtek.com_ameba1_index.json

2. Copy the [buzzer source code](https://github.com/Realtek-AmebaApp/Ameba_Examples/blob/master/RTL8195AM/006_HOME_SECURITY/windowSecuritySystem_buzzer_Github.ino) and [switch source code](https://github.com/Realtek-AmebaApp/Ameba_Examples/blob/master/RTL8195AM/006_HOME_SECURITY/windowSecuritySystem_switch_Github.ino) you find in this repository to your Ameba1 RTL8195 boards respectively using arduino IDE

3. In order to connect to WiFi and MQTT server, you need to key in your WiFi SSID, WiFi passowrd, MQTT username and MQTT password,

   - username:                    same as your amebaiot.com username

   - password:                    same as your amebaiot.com password

Done that's it! You have created a simple yet powerful home security system! 

To watch how how it is done, click link below,





 
Last edited by a moderator:

Evan Parker

Dec 8, 2020
5
Joined
Dec 8, 2020
Messages
5
That's actually convenient, but I can tell you that it may take a while to find a reliable system that works without any lags.

 

Charly Flint

May 12, 2022
6
Joined
May 12, 2022
Messages
6
You're right, and it took me some time to find a system that's not only security one, but also with home automation. I managed to find an ajax system, and I can tell you that it's really convenient because it didn't take me long to install everything, so you can check it out and decide whether it's for you or not.

 

Christian Johnson

Jan 1, 2025
1
Joined
Jan 1, 2025
Messages
1
Home security is evolving with IoT, offering smarter and more efficient solutions. Imagine a thief attempting to disable your security system, only to be thwarted by a wireless, intelligent setup. Using the Realtek Ameba development board and MQTT communication, this project creates a responsive security system that triggers alarms and LED flashes when doors or windows are breached. You can further enhance it by sending alerts to your phone or integrating with IP cameras. For additional security measures, search for a locksmith near me to ensure all entry points are fortified.

 
Top