Home Security and Fire Detection System Design Using IoT-based Microcontroller ATmega2560


  • Mario Gracio Anduinta Rhizma Universitas Pelita Harapan
  • Cepi Suhendar Universitas Pelita Harapan




Smart home, IoT, Arduino, ATMega2560, Microcontroller


A smart home security system or SmartHome is a new technology in this modern era with the concept of IoT (Internet of Thing), namely by utilizing internet connectivity by connecting a microcontroller device as a data processor for input and output with other components such as sensors that can communicate via smartphones. The PIR sensor and the MQ-2 smoke detector are one of the important components in a security system both at home and in buildings. Based on statistical data sources at the National Police Headquarters, crime in cases of theft is increasing and statistical data from https://www.jakartafire.net/statistics causes and occurrence of fires are still quite high. Based on the above problems, the author's motivation in making a home security system and fire preventive based IoT using microcontroller ATmega2560 Wi-Fi. This design prototype uses the ATmega2560 microcontroller component as input and output data processing, the HC-SR501 PIR sensor as a motion detection sensor, the MQ-2 sensor as a sensor in reading smoke levels with the addition of other components such as a buzzer as warning sign information and LED as an indicator sensor is active. Monitoring media used is the Blynk application on the smartphone in real time when the sensor detects motion and smoke. In this study, the smoke detection system is set to detect smoke with a threshold value of > 100 ppm. The PIR sensor coding and testing program works well and is already integrated with Blynk. In the second measurement, the sensor has an average voltage value on the MQ-2 sensor output on the 3.53 VDC sensor while the PIR sensor measurement when the sensor detects movement of the output voltage is 0 VDC and when the sensor status idle is 3.3 VDC.



2022-04-24 — Updated on 2022-04-24