Home Automation
In this project, NodeMCU is used to fetch the temperature and humidity data from the DHT11 temperature sensor, which is pulished to a broker.
Similarly from Android Phone application and PC Application (written in Python), loads and led's can be turned on and off.
NodeMCU after measuring the temperature and humidity, it publishes this data to a broker, and this broker then publish this data to all the subscribers.
Similarly the Android phone or PC application, pushes the data with which NodeMCU will control the devices connected with it. For publishing and subscribing, I am going to use MQTT at all the ends (NodeMcu, Android Phone, Server).
Connection Diagram
The following is the connection diagarm.
Actual Setup
The following is the actual setup.
The Arduino software is present in HomeAutomation/HomeAutomation.ino file
Android Application
The following is screenshot of the Android application.
The Android application is written in B4A and the complete source code is present inside the folder "Application"
Python Application
The following is screenshot of the Python application.
The Python application is developed using PyQt5 framework and is present inside the folder Py-App