GRINAL PATEL
Published

String Light Using Python

“STRING LIGHT USING PYTHON ” this project show that LED blinking like a “string light” with buzzer. Here I use buzzer for music entertain.

BeginnerFull instructions provided3 hours368
String Light Using Python

Things used in this project

Hardware components

LED (generic)
LED (generic)
×1
Buzzer
Buzzer
×1
Bolt WiFi Module
Bolt IoT Bolt WiFi Module
×1
Resistor 10k ohm
Resistor 10k ohm
×1
Male/Male Jumper Wires
×1
Breadboard (generic)
Breadboard (generic)
×1

Software apps and online services

VM VirtualBox

Story

Read more

Code

String Light Using Python

Python
from boltiot import Bolt
api_key = "XXXXXXXX"
device_id = "XXXXXX"
mybolt = Bolt(api_key, device_id)
def my_res():
    response = mybolt.digitalWrite('0', 'HIGH')
    print(response)
    for i in range(50,150,50):
           response1 = mybolt.analogWrite('0', i)
           print(response1)
    response2 = mybolt.digitalWrite('0', 'LOW')
    print(response2)
my_res()
my_res()
my_res()

Credits

GRINAL PATEL

GRINAL PATEL

1 project • 0 followers

Comments