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.
- JEHOVAH YII ZUI HON TB20091
- DAVEIYN A/L MUTHU SELWANATHAN TB21011
- 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
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.
- Go to https://blynk.io/
- Sign up using your email
- Download Blynk IoT from PlayStore or App Store in your phone.
- Create a prototype as shown in figure below:
- Once done, setup up the components:
- 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
- Connect the circuit as shown in the diagram above
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