Git Product home page Git Product logo

hovahyii / mca-final-project-ldr-sensor Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.63 MB

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.

C++ 100.00%
blynk-iot-platform cpp ldr-sensor led microcontroller servo-motor esp8266-12e arduino nodemcu-esp8266 iot

mca-final-project-ldr-sensor's Introduction

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 โ˜•


mca-final-project-ldr-sensor's People

Contributors

hovahyii avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.