WiFi IoT Electric Switch for Home Appliances

Introducing the WiFi IoT Electric Switch: A Leap Towards Smart Home Automation

In 2017, I embarked on an exciting project to develop a WiFi IoT Electric Switch aimed at transforming the way we control electrical appliances such as lights, fans, and other equipment up to 150 Watts. This innovative device enables users to manage and monitor their appliances from anywhere in the world, provided there is an internet connection.

Key Features and Components:

The WiFi IoT Electric Switch is built around the low-cost, highly efficient ESP8266 WiFi module, complemented by the Atmega8 microcontroller. Here’s a breakdown of the major components and their functions:

  • ESP8266 WiFi Module: This module provides the device with wireless connectivity, allowing it to interface with the internet seamlessly.
  • Atmega8 Microcontroller: Serves as the brain of the switch, managing inputs, outputs, and processing.
  • Triacs and Optocouplers: These components are crucial for switching and controlling the electrical loads safely.
  • 5V 1A SMPS Power Supply: Ensures that the entire system receives a stable power supply.

For controlling fan speeds and light dimming, the device employs the zero-crossing detection technique, which improves efficiency and performance.

Software and Protocols:

The firmware for the ESP8266 module was developed using the ESP8266-arduino library, which is available at ESP8266-Arduino Library. This library provides a robust foundation for programming the module in a familiar Arduino environment.

Additionally, for handling communication via the MQTT protocol, the device utilizes the ThingsBoard.io IoT platform. This platform offers comprehensive support for IoT device management and data visualization, ensuring a seamless user experience.

Visuals and Demonstrations:

Below are some images showcasing the design and implementation of the WiFi IoT Electric Switch:

  1. Schematic Diagrams:
    1. AVR Part Schematic:

      Schematic Diagram pf IoT-WiFi-Switch’s Microcontroller Part
    2. Switching Part Schematic

      Schematic Diagram of IoT-Wifi-Switch Switching Part
  2. 3D PCB Views:
    1. PCB AVR Part:
       
    2. PCB Switch Part:
       
  3. PCB Layouts:
    1. 3D View of Microcontroller Part PCB Layout:
       
    2. 3D View of Switching Part PCB Layout:
       
    3. Real View
  4. Final Implementation:
    1. App Interface and Physical Switch:
       
    2. Installed Device:
Prototype testing at my home.

This prototype has been running since 5th July 2018.

Inside the box.

Average Power Consumption during operation
shows the maximum power consumption during operation.
Circuit prototype top view
Complete Circuit Module’s Side view
Circuit modules bottom view

 

below photos are added on 5.10.2018