We live in an exciting time where more and more everyday items “things” are becoming smart! “Things” have sensors and can communicate to other “things” and can provide control to more “things”. The Internet of Things, IoT, is upon us in a huge way and people are rapidly inventing new gadgets that enhance our lives. The price of microcontrollers with the ability to talk over a network keeps dropping and developers can now tinker and build things inexpensively.
Step1: Create a Device in the Cloudchip
Step2: Create a Dashboard and add four control widgets (i.e, Switches) or else you can follow the guide of adding widgets to the Dashboard over here.
After creating four keys you need to change the “setValue Method” name in widget settings. The procedure is shown below:
Click on the widgets edit option:
Click edit widget option:
Change the RPC setValue method to Switch1 and save it.
Step 3: Give the connections as shown in the circuit and upload the code to the NodeMcu board.
Note: To run the code you need to have the cloudchip libraries integrated to the Arduino. To know the steps of installing Cloudchip Arduino libraries and integrating to arduino you can go over here