Manish Bibhu
Published

Controlling Home Appliances by Smartphone or Website

Controlling Home Appliances by smartphone through Google Assistant or Webpage also getting SMS when someone turns 'on' the light in room.

AdvancedProtip3 hours68
Controlling Home Appliances by Smartphone or Website

Things used in this project

Hardware components

Bolt WiFi Module
Bolt IoT Bolt WiFi Module
×1
Solderless Breadboard Half Size
Solderless Breadboard Half Size
×1
Jumper wires (generic)
Jumper wires (generic)
×1
LED (generic)
LED (generic)
×1
Resistor 1k ohm
Resistor 1k ohm
×1
Resistor 330 ohm
Resistor 330 ohm
×1
LDR, 5 Mohm
LDR, 5 Mohm
×1
DC Motor, Miniature
DC Motor, Miniature
×1

Software apps and online services

IFTT- Google voice assistant
Bolt Cloud
Bolt IoT Bolt Cloud
Snappy Ubuntu Core
Snappy Ubuntu Core

Story

Read more

Schematics

Hardware Connection

Schematic

Connections

Code

HTML Code for controlling through webpage.

HTML
In this project, either fan or light or both can be controlled by webpage, Google Assistant (smartphone). So, here I have provided the HTML code for webpage controll.
<!DOCTYPE html>
<html>
    <head>
	  <title>Appliance Control</title>
	  <script type="text/javascript" src="https://cloud.boltiot.com/static/js/boltCommands.js"></script>
	  <script>
	      setKey('{{ApiKey}}','{{Name}}');
	  </script>
	</head>
    <body>
	 <center><h1>Appliance Control By BOLT IoT</h1></center>
       <center>
	 <center><p>Light Control</p></center>
       <button style="background-color:green; border-color:blue" onclick="digitalWrite(4, 'HIGH');">LIGHT ON</button>
       <button style="background-color:red; border-color:blue" onclick="digitalWrite(4, 'LOW');">LIGHT OFF</button>
       </center>
	 <center><p>Fan Control</p></center>
       <center>
       <button style="background-color:green; border-color:blue" onclick="digitalWrite(3 'HIGH');">FAN ON</button>
       <button style="background-color:red; border-color:blue" onclick="digitalWrite(3, 'LOW');">FAN OFF</button>
       </center>
	 <center><p>______</p></center>
	 <center><h6>Made by:</h6></center>
	 <center><h5>Manish Bibhu</h5></center>
    </body>
</html>

Credits

Manish Bibhu

Manish Bibhu

1 project • 0 followers

Comments