Rajat Sachan
Published © GPL3+

Controlling LED over the Internet

LED control using bolt wi-fi module and bolt cloud

BeginnerFull instructions provided30 minutes621
Controlling LED over the Internet

Things used in this project

Hardware components

Bolt WiFi Module
Bolt IoT Bolt WiFi Module
×1
LED (generic)
LED (generic)
×1
Resistor 10k ohm
Resistor 10k ohm
×1
USB-A to Mini-USB Cable
USB-A to Mini-USB Cable
×1

Software apps and online services

Bolt IoT Android App
Bolt IoT Android App
To control LED
Bolt Cloud
Bolt IoT Bolt Cloud
To connect bolt wi-fi module and android app

Story

Read more

Schematics

Circuit Connections

Connections

Code

LEDCONTROL

HTML
HTML code to switch on/off LED over the internet using bolt cloud.
<html>
    <head>
<script type="text/javascript" src="https://cloud.boltiot.com/static/js/boltCommands.js"></script> <!--link to javascript file-->
<script type="text/javascript">setKey('{{ApiKey}}','{{Name}}');</script></head> <!--  Here ApiKey and Device name will be set automatically -->
<body>
    <center>
  <button onclick="digitalWrite(0, 'HIGH');">ON</button> <!-- on click set pin 0 to high state i.e turn on the LED -->
  <button onclick="digitalWrite(0, 'LOW');">OFF</button> <!-- on click set pin 0 to low state i.e turn off the LED -->
</center>
</body>
</html>

Credits

Rajat Sachan
2 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.