The Internet of Things ( IoT) aims towards making life simpler by automating every small task around us. A recent trend is the development of smart home IoT devices. As home automation has become very affordable, the global market for smart home automation has increased exponentially in the past few years.
Smart Bulb enables us to control the Bulb using an android phone with just one touch. It's pretty simple to make this at our home with few electrical components. In this article, we will learn How to make Smart Bulb using NodeMCU and Blynk App.
Hardware Requirements :
The required hardware components for interfacing are as follows -
NodeMCU Esp8266
#ESP8266 is a low-cost microcontroller chip that is used to interface various hardware components. It has inbuilt #WiFi and Bluetooth capabilities, making it a better candidate for IoT projects and Developments. Also, it is very cost-efficient as well as consumes less power. It allows us to use it as a micro-controller and manipulate input and output.
Buy Esp8266 from here.
USB Cable
#USB ( Universal Serial Bus ) Cable is used to connect the development boards ( NodeMCU in this case ) to the system ( For eg: Laptops ).
Buy USB Cable from here.
Jumper Wires
Jumper wires are the connecting wires that have connector pins at each end, allowing them to be used to connect the two points without soldering. They typically come in three versions - male-to-male, male-to-female, and female-to-female. Here, we will be using male-to-male jumper wires to interface the hardware components.
Buy Jumper Wires from here.
Breadboard
They are basically a construction base used for prototyping electronic circuits. #Breadboards allow us to make quick connections between hardware components, without soldering.
Buy Breadboard from here.
Relay
It is designed to interface with development boards such as NodeMCU to control high voltage and high current load. It is rated up to 10 A per channel at 30 VDC or 250VAC.
Bulb
A #bulb contains a filament enclosed inside glass to protect the filament from oxidation. Current is supplied to the filaments via terminal.
Buy Bulb from here.
Power Adaptor
An adaptor is used to give a power supply to the NodeMCU board.
Buy Power Adaptor from here.
Softwares :
Arduino IDE
Arduino Integrated Development Environment ( #IDE ) is open-source software that facilitates the development and uploading of codes to the microcontroller. Programs written in Arduino IDE are known as Sketch. These Sketch files are saved with the file extension ino.
Click on the link to download the software
Blynk App
#Blynk is an IoT platform that allows you to quickly build user interfaces for controlling and monitoring your hardware projects from your android phones. You can download this app from Google Play Store.
Circuit Connections :
The positive terminal and negative terminal of the 5V power supply are connected to the positive and negative of the breadboard respectively.
The positive terminal and negative terminal of the Relay Module are connected to the positive and negative of the breadboard respectively.
IN pin of the relay is connected to the D0 pin on the nodeMCU.
The positive terminal of the bulb is connected to pin D0 of the nodeMCU.
Blynk App Settings :
Create an account on BlynkApp, and then log in.
Go to New Project.
Name your Project > Choose device as NodeMCU > Set Connection Type as WiFi. Then select Create.
An authentication key will be sent to your registered Email address.
Go to Widget Box, then select Button.
Now, go to button settings by clicking on the Button Widget.
Change the output pin to Do and then change the slider to Switch.
Now, go back and click on the play button present on the top of the screen.
Installations :
The step by step instructions to install the required libraries are as follows -
Click on the given-below links to download the required packages: Blynk Library ESP8266 support package
Go to Code > Download ZIP.
Open Arduino IDE > Sketch > Add .ZIP Library.
Select the. ZIP files that you just downloaded.
Code :
Note :
Do not forget to select NodeMCU board. ( Go to Tools > Boards menu > NodeMCU )
Change the auth[ ], ssid[ ], pass[ ] as authentication token (received on mail), Wi-Fi Username and Wi-Fi password respectively.
Working :
Once the hardware connections are completed and the code is written, connect the NodeMCU board to the system. Now, Upload the code to the ESP8266 board.
You are all set! Now, Control the bulb using the BUTTON widget on BlynkApp.
Check the Project Working video here - IoT Smart Bulb Project using NodeMCu and Blynk App | IoT Project
Video By - Harshit Gupta
Conclusion :
An #IoT Smart Bulb is very affordable and is no doubt an innovation with many future applications. It allows users to control the device from anywhere in the world with just one touch. You can check out some more Home Automation Projects in this section
NodeMCU Projects :
Order Electronics Projects
Want us to guide you through your project or make the project for you? Click on the button below or reach out to us via Call/WhatsApp at (+91) - 7600948607
You can -
Order Basic Electronics Projects
Order Embedded Systems Projects
Order IoT Projects
Order FPGA Projects
Order VLSI Projects
Order Image Processing Projects
Order Matlab Projects
Order TinkerCAD Projects
Order Proteus Projects
Click on the button below to fill out the project inquiry form -
Create Various Projects
Check out our Free Arduino Projects Playlist - Arduino Projects
Check out our Free Raspberry Pi Projects Playlist - Raspberry Pi Projects
Check out our Free TinkerCAD Projects Playlist - TinkerCAD Projects
Check out our Free IoT Projects Playlist - IoT Projects
Check out our Free Home Automation Projects Playlist - Home Automation Projects
Check out our Free NodeMCu Projects Playlist - NodeMCu Projects
Follow us -
Please do follow us i.e. #learnelectronicsindia to get daily updates about new blogs, videos, courses, products, offers, competitions, quizzes, and Internship Opportunities.
Informative and concise! LearnElectronics India always delivers quality content.
Learn Electronics India has truly outdone themselves with this comprehensive blog. I loved how they explained the theory behind each step, allowing me to grasp the concepts better. The Smart Bulb project using NodeMCU and Blynk App turned out to be a fun weekend DIY project, all thanks to this fantastic guide.