Control Light Bulb and Relay using Blynk Mobile App
Vložit
- čas přidán 7. 09. 2024
- Let's explore how to control light bulb and relay using Blynk mobile app or dashboard. We’ll learn the basics of the single-channel relay. Also, we’ll interface the relay module and light bulb with ESP8266 NodeMCU. This IoT project demonstrates, how microcontrollers control AC-operated devices like a light bulb, fan, etc. through the relay. In the end, you’ll be able to control the light bulb through the Blynk IoT Platform. This video is a part of Blynk video tutorial series.
0:38 relay overview
3:00 pin details of relay
6:08 explained of relay working
7:43 bulb and relay connection
11:53 nodemcu and relay connection
14:08 control bulb with blynk app
►► Try Altium Student Lab! You get FREE access to Altium Designer and Altium 365
www.altium.com...
►► Need Help? To Learn Embedded Systems: courses.binary...
Useful References:
►► PART 1- Create New Blynk Project • Blynk with NodeMCU ESP...
Umesh Lokhande
BINARYUPDATES.COM
Web: binaryupdates....
Mail: umesh@binaryupdates.com
Thank you for the great tutorial! Very detailed which is always nice
Sir, really great information, please make a video on Blynk + Raspberry pi-3 Thank you.
Hi Zeeshan, I'll try my best to make video lesson on Raspberry Pi to communicate with Blynk IoT Platform. Maybe in few weeks you could expect. Good luck and best wishes. Thanks!!
Very good sir
Thanks and welcome Sudheer
Sir, your are say very clear and step by step the students can understand very easily . Thank you sir . And kept up 👍👍
Thanks and welcome
I'll try to make more video lessons around Blynk IoT Platform and OTA Feature
Thanks for you comment I appreciate
Wish you a beautiful day
Sir, thank you and how can we use Bluetooth module in hearing aids
can you combine the temperature sensor with the humidity sensor on the NodeMCU ESP8266?
Hi Muhammad, I'll be soon making video to make send temperature and humidity sensor data DH11 Sensor Module to the Blynk IoT Platform. Stay tune for next videos in Blynk series. Thanks for your visit. Best wishes !!
@@BINARYUPDATES can you combine it with the moisture sensor too?
thank you brother, you explained very clear
Glad it helped
Sir i created my own android app for controlling this and using my own real webserver with some apis that i have created all apis are responding quickly as usual but the nodemcu is fetching data from the api very late why is it happening
There may several reasons from server's uptime to network speed through which your NodeMCU ESP8266 is connected to Internet. Try with other cloud platform and test for performance test to get mode clarity. I hope this help. Wish you good luck and best wishes!
@@BINARYUPDATES Thank You very much Sir for replying. Please tell me one thing How can I change the TCP_MSS value in arduino ide 1.8.18 because I was unable to find the sdk_overrides.h file in the Arduino installation directory
Hi dear .are u the same person who having the electronic clinic channel?? Because I am very familiar with your talking style and sound.
why have you connected vcc with 3.3v on nodemcu and not with 5v?
Hi, Its because my Relay Module operate on 3.3V DC. Usually, most relays in market operate on 5V DC. So Its always advisable to test your relay specification before using it in our project. Its fine if you use 5V DC on NodeMCU ESP8266 Board. Best wishes!
@@BINARYUPDATES thanks
Sir, what if I will use 5V 8 channel relay. What is the connection of Nodemcu and 5V 8-channel relay? I want to control 5 solenoid water valve. Thank you
Yes you can. Use 5-GPIO Pins of NodeMCU ESP8266 to connect relay input and control your Solenoid Valve. Its the same same as shown in video lesson except configure more pins to control and drive more relay inputs. I hope this may help you. Good luck and best wishes!
very good. How to measure current with ACS712?
Hi Ahmet, It can be done. I'll consider making video on measuring current using ACS712 module and NodeMCU ESP8266. Thanks for your patience!
@@BINARYUPDATES Thank you very much for your attention. I need it as soon as possible. I'm looking forward to you share.
Sir, plz provide code iam run the code but device is not connected
Hello Sir I have a Doubt i'm using 5v relay on nodemcu and its low level triggered .... So when i'm triggering the relay means giving an low signal the relay is triggered and when i'm giving a high signal the relay is not comming back to the untriggered position because nodemcu gives 3.3v output which is not enough for a 5v relay....Is there any other option or am i doing something wrong??
Hi Ramprasad, It completely depends on relay module. I would suggest try single channel and 3V DC operated relay for better operation.
There are so many variants of relay module out there in market. Usually, most relay module operate on 5V DC for devices like Arduino and Raspberry Pi. But there're some which also work with 3.3V of NodeMCU ESP8266.
I hope this may help you. Good luck and best wishes!
Im not using nodemcu but im using wemos d1 r1 esp8266 so can i use this code ? What changes should i make to the code?
Hi I believe this code will work fine for Wemos ESP8266. Just make sure the Pin numbering while connecting relay before trying Blynk IoT Code. Good luck!
how many Watts of light are used
Great
What voltage output does your Nodemcu esp8266 produce?
Hi Kingsley, ESP8266 works with 3.3V DC but on NodeMCU ESP8266 you can find Pin which provides you 5V DC in case if you want to drive relay. As in this video I used 5V pin on NodeMCU to control light bulb using relay. I hope this may help you. Good luck and best wishes!
is it possible to power the NODE MCU from the relay instead of data cable
Hi Huzaifah, as long as what i understand your question. I think its better to avoid because NodeMCU operates on 3.3V DC and most relay in market start to operate from 5V DC up.....I hope you get my point. You can do so but it will not make sense in the end.
@@BINARYUPDATES yes I got it, so is there any way that I can power node mcu other than the cable?
How will this work if 12v relay module is being used
Hi Shruti, you may need to provide power to relay from other 12V power supply from DC side of connection on relay module. Make sure you keep Ground Pin common between NodeMCU ESP8266 and Relay module to function it properly.
Good luck and best wishes
Why bro there is a delay in switching on and off?
Hi Dharshan, It's because of high traffic on sever slows down response time for NodeMCU ESP8266. It happens sometimes Blynk Server respond late. I hope you got answer. Good luck and best wishes!
sir, shock is passing through relay ,even though relay works perfectly and the bulb is not responding
Maybe try replacing light bulb and then test relay module. Best wishes!
Sir, can you also do tutorial for servo motor to please Thank you.
Hi Mr. Truth of John, I'll be soon making video around servo control with Arduino, NodeMCU ESP8266 and also with Blynk IoT. It may take few weeks but those are in the upcoming video list. Thanks for your suggestions. Have a good day
@@BINARYUPDATES Thank you Sir. Love your lesson!
Where i can download this app
Hi Abhishesk, just search Blynk IoT in play store and you'll find it. Best wishes!
Sir can send the program for this
Yes code of Blynk will be find in video description of first video published in Blynk IoT platform series or else you can directly visit the GitHub github.com/binaryupdates/Blynk-NodeMCU-ESP8266
Best wishes
Team BinaryUpdates
Bro did you use the same code as the last part-1 video or did you make any changes in the code?
Hi Pavan, here I've used same code from Blynk Part-1 Video lesson. Good luck!
How i can get the coding part to control node mcu
Hi Indrajit, I suggest you to watch all 3-videos in series on Blynk IoT with NodeMCU ESP8266. Also, I have given link in video description from where you can download Arduino code for ESP8266 NodeMCU to use with Blynk IoT Platform. I hope this may help you
Best Wishes
Umesh
How i can get the coding
Hi C-zar, you can watch part-1 of Blynk lesson the link is in description. You'll get code for blynk in first video description in series as code is same. Its just a simple code. Or even you can visit github.com/binaryupdates/Blynk-NodeMCU-ESP8266
Could you tell me some resource for blynk coding?
Please refer to the link in video description in first Blynk video I've provided link for github. There you find all the code and instructions.
Best wishes!
What are the components used here ( I mean I want their names )
Hi Kakashi, in this tutorial I used, Single Channel Relay Module, Light Bulb and it's holder, Wires, NodeMCU ESP8266, screw driver, cutter etc. I hope this may help. Good luck and best wishes!
Source code
Can I have a coding
Hi Sawan, the blynk project code is shared in video description section. It's github link to download the code. Good luck and best wishes!
Sir can u provide code
Hi, the code of Blynk IoT Platform with NodeMCU ESP8266 is already provided in GitHub link in video description. Good luck and best wishes!
In the description sir not git hub link for code