Deepak Batham
Published

Car led indicator and horn by using boltiot Module

It is the simple project, in this the HTML code are written in bolt iot so that the indicator and horn can easily connected by button.

IntermediateFull instructions provided30 minutes240
Car led indicator and horn by using boltiot Module

Things used in this project

Hardware components

LED (generic)
LED (generic)
×2
Resistor 330 ohm
Resistor 330 ohm
×2
Buzzer
Buzzer
×1
Bolt WiFi Module
Bolt IoT Bolt WiFi Module
×1
Jumper wires (generic)
Jumper wires (generic)
×1
USB-A to Micro-USB Cable
USB-A to Micro-USB Cable
×1

Software apps and online services

Bolt Cloud
Bolt IoT Bolt Cloud
Bolt IoT Android App
Bolt IoT Android App

Story

Read more

Schematics

schematic diagram

circuit

circuit

Code

control car indicator and horn

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>
        setKey('{{ApiKey}}','{{Name}}');
        </script>
    </head>
    <body bgcolor="Yellow">
        <center>    
        <h1> Left Indicator </h1>
        <button onclick="digitalWrite(0, 'HIGH');">ON</button>
        <button onclick="digitalWrite(0, 'LOW');">OFF</button>
        <h1> Right Indicator </h1>
        <button onclick="digitalWrite(1, 'HIGH');">ON</button>
        <button onclick="digitalWrite(1, 'LOW');">OFF</button>
        <h1> HORN </h1>
        <button onclick="digitalWrite(2, 'HIGH');">ON</button>
        <button onclick="digitalWrite(2, 'LOW');">OFF</button>
        </center>
    </body>
</html>

Credits

Deepak Batham
1 project • 0 followers

Comments