EduTECHS
Published © GPL3+

Decorative_Bulb

Decorative bulb for your home that you can access from your phone with the help of IoT.

BeginnerFull instructions provided5 hours464
Decorative_Bulb

Things used in this project

Hardware components

Bolt WiFi Module
Bolt IoT Bolt WiFi Module
×1
Bulb
×1
LED (generic)
LED (generic)
×1
Resistor 330 ohm
Resistor 330 ohm
×1

Software apps and online services

Bolt IoT Android App
Bolt IoT Android App

Story

Read more

Code

Untitled file

HTML
<!DOCTYPE html>
<html>
<head> 
<title>Bolt IoT Platform</title>
<script type="text/javascript" src="https://cloud.boltiot.com/static/js/boltCommands.js"></script>
<script type="text/javascript">setKey('{{ApiKey}}','{{Name}}');</script>
</head>
<body bgcolor="black">
<center>

  <button style="background-color:green; height:50px; width:100px;margin-top:300px;" onclick="digitalWrite(0, 'HIGH');" >ON</button>
  &nbsp;
  <button style="background-color:red; height:50px;width:100px;margin-top:300px;" onclick="digitalWrite(0, 'LOW');" >OFF</button>

</center>

</body>
</html>

Credits

EduTECHS

EduTECHS

1 project • 0 followers

Comments