Skip to content

This project uses an LDR sensor to control a servo motor and a button in the Blynk app to control an LED connected to an ESP8266 board. The LDR sensor value is also logged to the Blynk Timeline.

Notifications You must be signed in to change notification settings

hovahyii/MCA-Final-Project-LDR-Sensor

Repository files navigation

LDR Sensor with ESP8266-12E + Blynk IoT

This project involves using an LDR sensor and a button in a Blynk app to control a servo motor and an LED. The LDR sensor is used to detect the ambient light level and open or close the servo motor based on the sensor's reading. The button in the Blynk app is used to turn an LED on or off. This project demonstrates the ability to remotely control physical devices using a Blynk app and an ESP8266 microcontroller.


Author

  • JEHOVAH YII ZUI HON TB20091

Teammate

  • DAVEIYN A/L MUTHU SELWANATHAN TB21011

Materials

  • 1 X Servo Motor
  • 1 X Green LED
  • 1 X Blue LED
  • 1 X White LED
  • 1 X LDR Sensor
  • 1 X ESP8266-12E
  • Blynk IoT
  • Proteus 8 Professional

Demonstration Video

https://youtu.be/r4WrYoSOUYg


Important

Make sure you use your own mobile hotspot, as university WIFI and public WIFI block the SSID connection.
The ssid is your mobile hotspot Network name and the pass is your mobile hotspot password.


Setup

  1. Go to https://blynk.io/
  2. Sign up using your email
  3. Download Blynk IoT from PlayStore or App Store in your phone.
  4. Create a prototype as shown in figure below:


  5. Once done, setup up the components:


  6. Setup the Datastream for LEDs and LDR sensor respectively
    • V1 for LDR (change the MAX value to 300)
    • V2 for Green LED
    • V3 for White LED
    • V4 for Blue LED
    • V13 for RUN button
    • V14 for PAUSE button
    • V15 for STOP button
    • SuperChart to display the graph
  7. Connect the circuit as shown in the diagram above

Connection

ESP8266 Components
D4 Servo - orange
3V Servo - red
D4 Servo - chocolate
D5 Blue LED (+)
D6 White LED (+)
D7 Green LED (+)
A0 LDR Sensor (any leg)
G Breadboard (-)
Vin Breadboard (+)

The other left behind legs are connected to the ground


Like this project? You can show your appreciation by buying Hovah a coffee ☕


About

This project uses an LDR sensor to control a servo motor and a button in the Blynk app to control an LED connected to an ESP8266 board. The LDR sensor value is also logged to the Blynk Timeline.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages