Introduction: Home Automation Using MQTT and ESP8266
Nowadays, Home automation is trending and emerging era of IoT (Internet of Things). Everyone tries to automate home in some manner then that can be remote controlled or manual. And which makes life easier for them.
There are man techniques to control the home appliances from remotely.
In this article we will see how to make home automation using mqtt protocol and esp8266. There are many boards, many devices which comes ready in the market like sonoff. But i have made my own (lot more modification is pending) hardware. Lets see one by one and proceed further.
Step 1: More About MQTT
What is MQTT?
MQTT stands for MQ Telemetry Transport. It is a publish/subscribe,
extremely simple and lightweight messaging protocol, designed for constrained devices and low-bandwidth, high-latency or unreliable networks. The design principles are to minimise network bandwidth and device resource requirements whilst also attempting to ensure reliability and some degree of assurance of delivery. These principles also turn out to make the protocol ideal of the emerging “machine-to-machine” (M2M) or “Internet of Things” world of connected devices, and for mobile applications where bandwidth and battery power are at a premium.
Step 2: Schematic
Step 3: PCB Layout
Step 4: Actual Hardware
Step 5: Code
Please find the code here
Step 6: Tutorial
I have covered most of the part in the video.