This project is made for my bachelor's thesis, and it was inspired by my internship, where I recognise the importance of being energy-efficient, which is often overlooked in favour of renewable energy solutions. And also my bed is far from the light switch so before bedtime, I always have to turn off the light and walk in the dark to my bed, which is annoying. It was when I have the idea to make a light that is energy efficient, and voice commendable at the same time
- Firstly, sensor data on the environment’s illuminance is collected by the (1) microcontroller. Then, the sensor’s reading will be sent to Arduino IoT cloud - a cloud-based platform for IoT applications - by an Internet connection via WiFi
- The (2) microcontroller’s role is to control the brightness of the LED generating the PWM signal. The microcontroller can be controlled in 3 scenarios:
- By the control panel on the dashboard of Aurdino IoT cloud on either the website or the application on the smartphone
- By voice command through Alexa
- By activating the “Automatic” mode, in which: The (2) microcontroller will read the illuminance reading from the (1) one, and consider the required illuminance to control the LED accordingly
Find out more about integrating Alex with Arduino IoT Cloud at: https://create.arduino.cc/projecthub/303628/arduino-iot-cloud-amazon-alexa-integration-4e6078
The code comprises 2 sketches: one for the sensor-receiving ESP8266, one for the LED controller ESP 8266
The detailed diagram of the circuit:
And the decision tree for the principle behind the code:
Comments
Please log in or sign up to comment.