Autonomous Lighting
Last updated
Last updated
The autonomous lighting project is a basic environmental interaction example. It imitates a night lamp, using the to sense the light level and let the user decide what level is dark enough to turn on the . It also helps with energy efficiency by turning the LED when it is bright enough.
About Tools and Materials:
()
Project Key Components
Project Key Features
Automatic Light Sensing
Energy-Efficient Operation
Real-time Monitoring
The script can also be modified to monitor the ambient light intensity in real-time.
Getting Started
Hardware Setup
Make sure that the SMD is powered and all connections are correct.
Run the Script
Observe Autonomous Operation
Observe how the LED automatically turns on when the environment becomes dark and turns off when there is sufficient ambient light.
()
()
()
()
The SMD acts as a bridge between the script and the modules. It is responsible for interpreting the commands sent by the script and translating them into actions that read input from the and toggle the .
The is designed to emit different colors, allowing users to experiment with different lighting effects.
The is measures the surrounding light intensity and provides feedback of the intensity to the script, allowing the user to decide whether to turn on or off the LED.
The SMD library is at the heart of the application. It communicates with the SMD using a specific communication protocol, sending commands to read the and toggle the LED on the .
The is a input module and the bridge between the physical world and the script, allowing the user to read the data of the environment.
The allows the user to only turn on the light when it is dark and needed, thus, it helps with the energy efficiency.
Connect the SMD to the PC or Arduino board using or .
Connect the and the to the SMD using an RJ-45 cable.
Run the script on your computer. This will establish communication with the SMD, the and the .