Home Automation Systems have increased worldwide popularity in the last decade or so. But now world looking towards Intelligent Smart Home Automation Systems which must be wise to provide efficient electricity usage plan. Intelligent Smart Switch is based on making user life easier. The Internet of
Intelligent Smart Switch using IoT and Machine Learning
Home Automation Systems have increased worldwide popularity in the last decade or so. But now world looking towards Intelligent Smart Home Automation Systems which must be wise to provide efficient electricity usage plan. Intelligent Smart Switch is based on making user life easier. The Internet of Things makes a vast amount of data. Additionally, it contains a huge number of sensors and their data which can control or monitor appliances. This project shows about how the Internet of Things (IoT), Machine Learning and Data Mining use for converting the normal home to the Intelligent Smart home. A user of this system can control their appliances using their smartphone application as well as the web browser which are connected to the internet. The user will also get efficient usage plan to minimize the power wastage. This project is divided into four section, Hardware, User Interface (UI), Cloud Platform and Data mining & Machine Learning.
As an increase in population and global integration, energy consumption also increases. This pretense a risk for run-down natural resources, and Increases demand of renewable energy systems. The prices of fossil fuel going up progressively. Pakistan is in front of the energy crisis where electricity generation is far less than consumption and 50 percent of electricity is consumed by household in Pakistan. By using intelligent smart switches we will be able to reduce energy wastage by providing efficient usage plan. It does not lie that the world is moving towards energy crises. The need of the hour is to save energy by using modern technologies which involve Internet of Thing (IoT) and Machine Learning. The problem is to monitor energy usage and provide an effective plan that helps the user in both energy saving and reducing electricity bills.
The aim of the project is to eliminate energy wastage by monitoring energy usage of each appliance in the home and provide an energy proficient plan to the user. It will be able to predict the behavior of appliances operating in the location and provide a competent profile of the user. Our intention is to use modern technologies and advance knowledge to capitalize on the quality measures.
We can optimize various parameter using Machine Learning such as Bill, Load and time. We want to achieve effective usage plan using different machine learning algorithms.
There are two ways to implement this project.
The first way is to implement by replacing the conventional switch and appliances can only be controlled by Andriod application using a smartphone or by Web app using laptop or desktop computers.
The second way is to connect these switches parallel to the conventional switch and the appliances can be controlled by both conventional switches as well as Android and web application
We only need wifi to connect to implement this project in any area.
Control your devices from anywhere in the globe.
Adds Safety Through Appliance.
Trim Your Energy Costs.
Increases Convenience Through Temperature Adjustment.
Saves Time and Cost Effectiveness.
Keep eyes on which device is wasting energy.
Ease to control appliance for older and disable persons.
This project is divided into Hardware, User interface, Data collection, and Machine Learning algorithms.
Hardware is based around Wemos D1 mini Esp8266 microcontrollers. AC appliances are switches using the relay which is isolated using optocoupler and control by a latch circuit. Current is measured by ZMCT103C Current Transformer by following formulas:
VPP = getVPP();
CurrThruResistorPP2 = VPP2 / 380.0;
CurrThruResistorRMS2 = CurrThruResistorPP2 * 0.707;
CurrentThruWire2 = CurrThruResistorRMS2 * 1000;
The calculated current is upload to thingspeaks to a channel specified by write key of the channel. Current data is stored upto three decimal places.
We can download this data in the form of an excel sheet as well as XML form.
Android application is developed by using the android studio in java language. Application has a login page and some other pages including buttons to switch relays. When the status of a button changes from off to on it changes the in Real-time database of Google Firebase from 0 to 1. Then the microcontroller read the tag from the google firebase and changes the microcontroller pin from low to high.
The web application is developed using HTML language and has a similar procedure as an android application to control appliances.
The other sensors also send data to thing speaks. The other sensor includes occupancy sensor, temperature sensor, gas sensor, flame sensor, soil sensor, and rain sensor.
Various Machine learning algorithms applied to the data collected on thing speaks platform to get proficient and efficient energy consumption plan.
| Item Name | Type | No. of Units | Per Unit Cost (in Rs) | Total (in Rs) |
|---|---|---|---|---|
| Node MCU | Equipment | 2 | 450 | 900 |
| Wemos D1 mini | Equipment | 1 | 400 | 400 |
| ESP 01 8266 | Equipment | 1 | 290 | 290 |
| ESP 12E 8266 | Equipment | 1 | 290 | 290 |
| ESP 8266 ADAPTER | Equipment | 1 | 220 | 220 |
| FT232 | Equipment | 1 | 290 | 290 |
| CH340TTL | Equipment | 1 | 110 | 110 |
| ATTINY85 | Equipment | 1 | 200 | 200 |
| 12E ADAPTER | Equipment | 1 | 50 | 50 |
| 5A CURRENT SENSOR | Equipment | 2 | 250 | 500 |
| ACS712 5A,20A,30A | Equipment | 3 | 250 | 750 |
| 0.96 OLED | Equipment | 1 | 450 | 450 |
| BTA 136 | Equipment | 2 | 30 | 60 |
| BTA 137 | Equipment | 2 | 35 | 70 |
| BTA 139 | Equipment | 2 | 35 | 70 |
| BTA 16 | Equipment | 2 | 30 | 60 |
| AMS 1117 SMD | Equipment | 2 | 10 | 20 |
| PC817 | Equipment | 3 | 6 | 18 |
| MINI 360 BUCK | Equipment | 1 | 80 | 80 |
| 1 CH RELAY | Equipment | 1 | 80 | 80 |
| 1 RELAY SSR | Equipment | 1 | 200 | 200 |
| LTYPE 5V RELAY | Equipment | 1 | 150 | 150 |
| PCB MOUNT SUPPLY | Equipment | 1 | 150 | 150 |
| SOLDER WICK | Equipment | 1 | 90 | 90 |
| HEAT TUBING | Equipment | 4 | 20 | 80 |
| VB DOTTED | Equipment | 3 | 25 | 75 |
| FEMALE HEADERS | Equipment | 3 | 8 | 24 |
| MALE HEADER | Equipment | 3 | 6 | 18 |
| GLUE STICKS | Equipment | 4 | 20 | 80 |
| SOLDER WIRE | Equipment | 1 | 400 | 400 |
| JUMPER WIRE | Equipment | 3 | 80 | 240 |
| HEAT SINK | Equipment | 3 | 10 | 30 |
| HEAT SINK | Equipment | 2 | 15 | 30 |
| MICRO USB CABLE | Equipment | 2 | 60 | 120 |
| SWITCH PUSH | Equipment | 10 | 10 | 100 |
| MOC83 | Equipment | 3 | 30 | 90 |
| MOC61 | Equipment | 3 | 30 | 90 |
| CURRENT TRANSFORMER 5A/5mA | Equipment | 12 | 70 | 840 |
| 10A/10mA CT CURRENT TRANSFORMER CURRENT SENSOR | Equipment | 3 | 110 | 330 |
| SOIL SENSOR | Equipment | 1 | 70 | 70 |
| CURRENT TRANSFORMER 5A/5mA | Equipment | 15 | 70 | 1050 |
| FLAME SENSOR | Equipment | 1 | 120 | 120 |
| HC-SR501 PIR HUMAN MOTION SENSOR | Equipment | 2 | 140 | 280 |
| PUSH BUTTON | Equipment | 10 | 10 | 100 |
| DHT-11 TEMPERATURE SENSOR | Equipment | 2 | 120 | 240 |
| MECHANIC SOLDER PASTE | Equipment | 1 | 310 | 310 |
| MRFC522 RC522 RFID | Equipment | 2 | 250 | 500 |
| MQ5 GAS SENSOR | Equipment | 2 | 200 | 400 |
| POWER RELAY SLA-05VDC-SL-A30A | Equipment | 2 | 150 | 300 |
| RAIN DROP DETECTION SENSOR | Equipment | 2 | 90 | 180 |
| SOLDERING SPONGE | Equipment | 1 | 20 | 20 |
| SHOO(PWA3 SHOO IP) | Equipment | 10 | 100 | 1000 |
| V3 CABLE | Equipment | 2 | 20 | 40 |
| IP SHOO | Equipment | 1 | 150 | 150 |
| IPH5 SHOO | Equipment | 2 | 130 | 260 |
| GT HT | Equipment | 1 | 180 | 180 |
| WEMOS D1 MINI ESP 8266 | Equipment | 8 | 430 | 3440 |
| FUSE BASE | Equipment | 5 | 5 | 25 |
| FUSE | Equipment | 20 | 2 | Close |