Book
Day 7 - Section 4 - Controlling a device
Day 7 - Section 4 - Controlling a device
Completion requirements
View
After the completion of this section the students will be able to:
- create a new project in Blynk
- place widgets inside Blynk's desktop
- adjust Blynk's widgets
- prepare the code to make our device communicate with the smartphone
- create a circuit to experiment with blinking a LED via their smartphone
Arduino IDE and connections
1.Connect your NodeMCU to your PC
2. Open Arduino IDE
3. Then go to File->Examples->Blynk-Boards_Wifi->Esp8266Standalone
4. Select the correct board (NodeMCU 1.0) and the com port from the Tools Menu
5. Change the credentials to yours. If you don't know them, ask the admins. The auth[] is the key that you received previously on your email. The ssid[] is the name of your WiFi network and the pass[] is the password.
char auth[] = "????????????";
char ssid[] = "XXXXXXXXXX";
char pass[] = "YYYYYYYYYYY";
Finally Save the file and Press Upload.
Also, make the necessary connections to your circuit:
Now go back to your mobile press Play and......play with the button in Blynk!