Led & piezzo buzzer not working

I have made all the connections properly, the coding, the saving of the filename “index.htm” and typefile as *.htm I’ve configured my BOLT board perfectly. Is it that the GPIO pins are not working ? But the LEDs present in the BOLT board are working and it has been configured correctly too.

<!doctype html>

BOLT

LED Controller


LED ON

LED OFF

Please share the code wihout tag

Hi Pranav facing the same issue here can your team please help?
Below is the code snippet of the same:

<!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>
        <center>
        <button onclick="digitalWrite(0, 'HIGH');">ON</button>
        <button onclick="digitalWrite(0, 'LOW');">OFF</button>
        </center>
    </body>
</html>

Check Which resister you have wrapped? choose same color pattern as shown in figure

for more info of color codes of resisters Color codes of Resisters

Please Check the connection again, Let me summarize connections
LED/ Piezzo Buzzer

  • longer leg(+ve) No Connection (In Air) Wrapped with one leg of resister
  • shorter leg(-ve) insert to GND(Ground Port) in Bolt.

Resister

  • one leg is wrapped with positive edge of LED/Buzzer.
  • other leg is inserted in GPIO Port 0

check whether the bolt wifi moderm is connected to the bolt cloud.

Hi @ravarunreddy,

Please open the control page on Bolt Cloud -> Right-click on the page -> Inspect element -> Console and then check if you are able to see any error.

Your code seems fine to me. Please share the image of your Bolt to led connection.