Sunday, April 17, 2022

IoT Based Controlled LED using Blynk Apps and Nodemcu | ESP8266 | Project

Today, I will share how to control LEDs using Blynk web or apps via the internet. The microcontroller used in this project is Nodemcu V3 (ESP8266).



Related Post:

References:

Steps: 

  1. Prepare 2 LEDs, 2 resistors (220), breadboard, and Nodemcu module.


  2. Connect LED from pin D1 and D2 Nodemcu to the GROUND through a 220 Ω resistor.



  3. Connect micro USB to Nodemcu module.


  4. Go to the blynk.io website and log in. If you do not have an account yet, click "Create new account".




  5. Create New Template > Type NAME "Control LED" > Select HARDWARE "ESP8266" > Select CONNECTION TYPE "WiFi" > Done.



  6. Go to Datastreams Tab> New Datastream > Virtual Pin > Type NAME "LED" > Select PIN "V0" > Select DATA TYPE "Integer" > DEFAULT VALUE "0" > Create.




  7. Click New Datastream again > Virtual Pin > Type NAME "LED2" > Select PIN "V1" > Select DATA TYPE "Integer" > DEFAULT VALUE "0" > Create.


  8. Go to Web Dashboard Tab > Select Switch widget to the canvas. Repeat again for another switch widget.





  9. Go to Switch widget setting > Select Datasteam LED (V0) > Slide Show on/off labels > Type ON LABEL "ON" and OFF LABEL "OFF" > Save.


  10. Repeat again for another switch widget > Select Datasteam LED2 (V1) > Slide Show on/off labels > Type ON LABEL "ON" and OFF LABEL "OFF" > Save. Then, Save the Web Dashboard.



  11. Open Arduino IDE and go to Sketch > Include Library > Manage Libraries... > Type "blynk" > Enter. Go to Blynk tab > Select the latest version > Install > Close. Library code click HERE.



  12. Back to Blynk.io website > Select Info Tab > Copy FIRMWARE CONFIGURATION.


  13. Open the Controlled LED coding project and paste the FIRMWARE CONFIGURATION. Click HERE to download the project code.


  14. Verify and upload the project.


  15. Download and Log In Blynk IoT app on Google Playstore.


  16. Click Connect to Wi-Fi.


  17. Click Ready and connect Blynk Control LED WiFi.




  18. Click Grant permission > Select "Only this time" > Select your WiFi network.




  19. Type your WiFi password and click Continue.


  20. Click Continue > Click Continue > Click Done >Click  OK,great! > Click Finish and exit.






  21. Click Setup Dashboard > Click ≡ > Select Button Widget.




  22. Add another Button Widget. Rearrange Button Widget.


  23. Click Button Widget > Select Datastream "LED" > Select MODE "SWITCH" > Click back arrow "←".


  24. Click Button 2 Widget Widget > Select Datastream "LED2" > Select MODE "SWITCH" > Click back arrow "←". Lastly, exit the canvas.




  25. Test from Phone apps.


  26. To test from the website, go to the 🔍 icon at Tab > Click My devices > Click My Organization > Click Control LED 57CBF.









Video:


If you have any suggestions, please write in the comment section. Thank you for your time 👷.

No comments:

Post a Comment