Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
shibji shekhar Rout
Published

Control buzzer or light useing python

How to on and off buzzer/light useing python

BeginnerFull instructions provided394
Control buzzer or light useing python

Things used in this project

Hardware components

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

Software apps and online services

Snappy Ubuntu Core
Snappy Ubuntu Core
Bolt Cloud
Bolt IoT Bolt Cloud

Story

Read more

Schematics

led_on_bolt_bb_ygycvntcjr_WTlLECM4Pu.png

Code

for off

Python
from boltiot import Bolt
api_key = "enter your api key from bolt cloud"
device_id  = "enter your devive id from bolt cloud"
mybolt = Bolt(api_key, device_id)
response = mybolt.digitalWrite('0', 'LOW')
print (response)

for on

Python
from boltiot import Bolt
api_key = "enter your api key from bolt cloud"
device_id  = "enter your device id from bolt cloud"
mybolt = Bolt(api_key, device_id)
response = mybolt.digitalWrite('0', 'HIGH')
print (response)

Credits

shibji shekhar Rout
1 project • 0 followers
Contact

Comments

Please log in or sign up to comment.