top of page
Writer's pictureAnkita Sharma

IoT Smart Bulb using NodeMCu and Blynk App

Updated: Sep 21


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

NodeMCU Esp8266
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 Cable
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

USB Cable
USB Cable

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

Breadboard
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

Relay
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.


Buy the Relay module from here.


Bulb

Bulb
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

Power Adaptor
Power Adaptor

An adaptor is used to give a power supply to the NodeMCU board.


Buy Power Adaptor from here.


Softwares :


Arduino IDE

Arduino IDE
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 App
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 :

  1. Create an account on BlynkApp, and then log in.

  2. Go to New Project.

  3. Name your Project > Choose device as NodeMCU > Set Connection Type as WiFi. Then select Create.

  4. An authentication key will be sent to your registered Email address.

  5. Go to Widget Box, then select Button.

  6. Now, go to button settings by clicking on the Button Widget.

  7. Change the output pin to Do and then change the slider to Switch.

  8. 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 -

  1. Click on the given-below links to download the required packages: Blynk Library ESP8266 support package

  2. Go to Code > Download ZIP.

  3. Open Arduino IDE > Sketch > Add .ZIP Library.

  4. Select the. ZIP files that you just downloaded.

Code :



Note :

  1. Do not forget to select NodeMCU board. ( Go to Tools > Boards menu > NodeMCU )

  2. Change the auth[ ], ssid[ ], pass[ ] as authentication token (received on mail), Wi-Fi Username and Wi-Fi password respectively.

Working :


Smart Bulb ( Unpowered Setup )
Smart Bulb ( Unpowered Setup )

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.


Smart Bulb ( Powered Setup )
Smart Bulb ( Powered Setup )
Blynk App BUTTON Widget
Blynk App BUTTON Widget

You are all set! Now, Control the bulb using the BUTTON widget on BlynkApp.


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.









Related Posts

See All

2 Comments


ashitanarvekar2002
Jul 25, 2023

Informative and concise! LearnElectronics India always delivers quality content.

Like

Anushka Gupta
Anushka Gupta
Jul 24, 2023

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.

Like
bottom of page