Arduino Home Automation System using GSM SIM800

Share This

Hello friends! Welcome back to ElectroDuino. This blog is based on SMS Based Arduino Home Automation System using SIM800 GSM. Here we will discuss Introduction to Arduino Home Automation System using GSM SIM800, Project Concept, Block Diagram, Components Required, Circuit Diagram, working principle, and Arduino code.

Introduction

In these modern days, everyone has a Phone (Normal GSM phone or smartphone). Normally we are using these phones to communicate with another person by calling, and SMS. In this project, we will use SMS (messages) technology to control home Appliances Wirelessly. So here we will make GSM SIM800 and Arduino based home automation system which controls by SMS. Using this system we can turn ON and turn OFF AC home appliances/devices by sending messages from a phone. This system works on GSM communication, so we can control it from anywhere in the world if then the mobile network is available. It can be controlled by a normal GSM phone or a smartphone.

Project Concept/Overview

This is a very simple home automation project, few components are needed to build this project. The key components of this project are SIM800L GSM Module, Arduino board, Relay Module, LCD Display, Micro SIM Card, and a phone. In this project, The GSM module acts as a means of communication between the phone and the Arduino. We need to insert a Micro SIM Card into the GSM module. When we send a particular SMS/message (this SMS/message is already defined in Arduino code) to the Number of the Micro SIM Card. Then the GSM module receives that message and sends it to the Arduino. The Arduino board is the main controller of this system, it decodes this massage from the GSM and compares the massage to the pre-defined SMS/messages. If the SMS/message is matched, then Arduino sends a command to the relay module to control home appliances/devices. The relay is an electronic switch that controls AC appliances/devices. Here we have used 4 channel Relay module to control 4 devices. The LCD display module is used to display the device status, it is ON or OFF.

Block Diagram of SMS Based Arduino Home Automation System

Block Diagram of GSM Based Arduino Home Automation System, Project Concept, Block Diagram, Components Required, Circuit Diagram, working principle, and Arduino code
Block Diagram of GSM Based Arduino Home Automation System

Components Required

Components NameQuantity
Arduino NANO1
GSM SIM800L Module1
16×2 LCD Module1
4 Channel Relay Module1
AC Bulb with Holder and Wire4
9V 1 Amp Adapter (DC Power supply)1
Cell phone1
PCB board1
Connecting wiresAs required in the circuit diagram
220V AC Power supply 

Tools Required

Tools NameQuantity
Soldering Iron1
Soldering wire1
Soldering flux1
Soldering stand1
Multimeter1
Desoldering pump1
Wirecutter1

Software Required

Arduino IDE (Integrated Development Environment)

Arduino IDE (Integrated Development Environment)

Circuit Diagram/Schematic of SMS Based Arduino Home Automation System

Circuit Diagram of GSM Based Arduino Home Automation System, Project Concept, Block Diagram, Components Required, Circuit Diagram, working principle, and Arduino code
Circuit Diagram of GSM Based Arduino Home Automation System

Commands are used in Arduino Code

First of all, we need to select 8 commands messages. These commands are defined in Arduino code. When we send a command message from our phone to the GSM module, then Arduino detects this message and sends the command to the relay module. Here we are using 8 commands to control 4 relays of the relay module, which means two commands for each relay. Here we have used a prefix in command that is “#”, which is used to identify that the main command is coming next to it and the “*” prefix used at the end of the command, which indicates the message has been ended. For example, the “#D1 ON*” SMS/message is used to turn on the Relay1, and the “#D1 OFF*” SMS/message is used to turn off the Relay1. The List of the SMS/messages and their use is described below

 

SL.NOSMS from Phone

Operation

1#D1 ON*Turn ON the Relay1
2#D1 OFF*Turn OFF the Relay1
3#D2 ON*Turn ON the Relay2
4#D2 OFF* Turn OFF the Relay2
5#D3 ON*Turn ON the Relay3
6#D3 OFF* Turn OFF the Relay3
7#D4 ON*Turn ON the Relay4
8#D4 OFF* Turn OFF the Relay4
9#All ON*Turn ON All Relay
10#All OFF*Turn OFF All Relay

 

Code

 

Share This

Leave a Reply

Your email address will not be published.