# **Title**: **Home Automation With ESP 32**
**Name**
Mohammed Ibrahim Ali ma226we
**Short project overview**
In Arduino IoT cloud it can make this ESP32 smart home system with Arduino IoT Cloud to control the home appliances with and without the internet. If the ESP32 is connected with WiFi, then you can control the relays from anywhere in the world with the Arduino IoT Cloud Remote app. And if there is no internet, still you can control the relays manually with IR remote and switch. So with this smart house project, you can convert any appliance to IoT devices and control them through the internet.
**Time it took to finish the project**
it took a week to do and this time i reviewed it and followed the Criterias that it was given.
# **Objective**
why I chose this project was beacuse the benefits of home automation typically fall into a few categories, including savings, safety, convenience, and control. Its comforting or relaxing when consumers use it.
**What purpose does it serve?**
“Home automation” "refers to the automatic and electronic control of household features, activity, and appliances"., this means that it can be used to easily control the benefits and features of your home via the Internet this proccess can make your home activities more comforting or easier, and even spend less on household bills.
**What insights i think it will give?**
The most common uses of home automation is lighting control, kitchen appliances, and security systems.
# **Materials:**
1. Relays 4 channel (SPDT) (4 no)
**price**: 100 sek

2. Push Buttons (4 no)
**price**: 50 sek

3. 5V DC supply
**price** : 170 sek

4. DHT11 Temperature and Humidity Sensor
**price**: 100 sek

5. wire
**price**: 50 sek

6. breadbord
**price**: 50 sek

7. ir receiver sensor
**price**: 20 sek

8. Three barlast lamps
**price**: 60 sek

9. TV remote (ir sender)
**price**: 200 sek

10. male to female cable to dupont wire **price**: 10 sek

11. male to male Breadboard Cable Jumper Cable Dupont Wiren
**price**: 40sek

12. ESP32
**price**: 150 sek

13. connectors
**price**: 100 sek

# **Computer setup**
**Chosen IDE**: Arduino IDE is used, Home automation prototype can be easily implemented using Arduino, relay module, Wi-Fi 4 G, 5 G, or Bluetooth module with a PC or microcomputer.
**How the code is uploaded?**
In your Arduino IDE, go to File> Preferences then we should Enter the following into the “Additional Board Manager URLs” field after that we Open the Boards Manager. Go to Tools > Board > Boards Manager then it should install
Arduino IDE is needed to be downloaded then repository of the driver is added.
# **Putting everything together**

The number of channel in relay depends on the number of appliances that you want to connect with the automation system. An Arduino board can take power up to 12 V. Or maybe it can be powered through 9-V DC battery. The Bluetooth and the relay module can be powered using Arduino 5 V/3.3 V output pin.
The Bluetooth module can perform data transfer operation in master slave mode with a baud rate of 9600–115,200 and mostly used universal asynchronous receiver/transmitter (UART) asynchronous transfer mode. This mode is used to communicate with another device like laptop, mobile, and so on. In this case, the Bluetooth module has been paired with an Android phone, and a native android app has been used to control the appliances.
The fundamental function of the relay is to control appliances such as fan, light, fridge, or air conditioner. It provides a complete isolation form Arduino and another module to the high voltage line. Its primary coil gets excited by applying 5 V on the coil that is mainly applied from the Arduino board.
# **Platform**
The platform i used it for free it was Arduino IDE an easy and simple platform for coding the device and organising the structure of the device
**What made me use this platform?** It was because it was easy and free and its a helpful platform for students.
# **The code**








# **Transmitting the data / connectivity**
**Data usage in home automation**
Home automation systems deal with huge amounts of data flowing through the system, not so much in message size, but tin the total number of message being sent. With devices constantly reporting changes, checking in so the system knows they are still online, or reporting internal device statuses, such as battery levels, tamper settings, etc., there is a constant flow of information, often needed by multiple subscribers, so that alarms can be triggered, rules fired, schedules maintained, and user interfaces updated.
Wifi was used
**Which transport protocols were used?** Zigbee
# **Presenting the data**
picture of the dashboard

**How often is data saved in the database**? Approximately 10 days.
# **Finalizing the design**

the project went normal even though there were so many stress on the way and down sides but im glad i managed to finish my project and i hope its well enough for me to succeed.