Hi Guys! With this project you can on the Led bulbs when we press the push button and the bulbs off when we release the push button.
Steps to follow:- Initially place the push button on the breadboard and connect one end of push button to the 5V of bolt module using the male-to-male jumper wire.
- Connect the other end of push button to 1k ohm resistor.
- Now take 2 led bulbs, Connect the positive end of first led to the other end of resistor (i.e connected to switch).
- Connect the negative end of first led to positive end of second led.
- Connect the negative end of second led to the GND(ground) of the bolt module.
BoltConnection :
- Go to cloud.boltiot.com
- Go to Products and click on 'Add New Product' and give name to the product and choose 'Input devices' and 'GPIO' from the given options.
- Now click on 'link' icon and choose your bolt device and click on 'done'.
- Once the device gets linked configure the product where you can view device and its status.
- After hardware setup is done connect the module with usb cable, select analog pin A0 and name as light.
- Go to code section and write the code and select the code extension as js(javascript) from drag down list . Give a name to the file.
The setup is ready ! Now load the code into bolt cloud and the press the push button, the led lights will be switched on. When you release the push button the led lights will off.
Comments
Please log in or sign up to comment.