QR Code based Light Control

Published Aug 30, 2021
 24 hours to build
 Intermediate

It is a home automation system which uses ESP8266 and its WiFi functionalities to control appliances over WiFi. The project can be accessed by anyone by scanning a QR code from a smartphone.

display image

Components Used

ESP8266 WiFi Module
ESP8266 is a system on chip (SoC) which provides WIFI capability for embedded applications. This enables internet connectivity to embedded applications. ESP8266 modules are mostly used in Internet of Things(IoT) applications.
1
Resistor 220 Ohms
Metal Film Resistors - Through Hole 220 OHM 1/4W 1%
1
Red LED 5mm
Standard LEDs - Through Hole Red Round
1
Green LED 5mm
Standard LEDs - Through Hole LED HIGH BRIGHTNESS
1
Breadboard Half Size
Breadboard Half Size
1
Description

Introduction

It is a home automation system which uses ESP8266 and its WiFi functionalities to control appliances over WiFi. The project can be accessed by anyone by scanning a QR code from a smartphone. The QR code opens the web page required to control the GPIO pins of the ESP8266.

Make Process

We need to change the ssid and password in the code to the ssid name and password of the WiFi address of the WiFi of which the uer's smartphone and the ESP8266 will be connected.

The code once uploaded will print out the IP address of the ESP8266 in the serial monitor.

We need to use the IP address along with the web page info to generate the QR code. The QR code is entered in the form 

http://ip_address/led1/on

example : http://190.168.43.43/led1/on

The QR code is generated using the website https://www.the-qrcode-generator.com/

Once the QR code is generated, we can scan using any QR code scanning app on smartphone and then it opens up a web page with buttons to control the GPIOs. 

Circuit

4 LEDs are connected to the pins D2, D4, D6, D7 of the ESP8266. 4 220 ohm resistors are also connected between the -ve terminal of LED and the Ground Pin of ESP8266. 

Result & Video

 

 

Codes

Downloads

circuit2 Download
Comments
Ad