Smart Light Control
This project focuses on creating an interactive lighting system using the ACROME SMD platform, incorporating an Ambient Light Sensor, an RGB LED Module, and a Button Module. The system allows for automatic lighting control based on ambient light conditions and provides user interactivity to change the LED color. Additionally, the Button Module allows the user to cycle through colors, and when held down, it will quickly transition between colors. The LED will retain the last selected color after the button is released.
About Tools and Materials:
SMD Red (Robot Shop)
SMD USB Gateway (Robot Shop)
RGB LED Module (Robot Shop)
Button Module (Robot Shop)
Ambient Light Sensor Module (Robot Shop)
Step 1: Hardware & Software Overview
Key Components:
SMD The SMD serves as the central communication hub between the different modules. It manages the interaction between the Ambient Light Sensor, RGB LED Module, and Button Module, executing the logic as defined in the script.
RGB LED Module The RGB LED Module emits light in different colors by mixing red, green, and blue channels. This allows users to create a variety of lighting effects, controlled via the Button Module.
Button Module The Button Module serves as a physical interface for user input. Users can press the button to cycle through different colors for the RGB LED Module, and if the button is held down, the system will rapidly cycle through colors, allowing for faster color selection.
Ambient Light Sensor Module The Ambient Light Sensor detects the intensity of the surrounding light and allows the system to decide when to automatically turn on or off the RGB LED Module, depending on the environment’s lighting conditions.
Project Key Features:
Automatic Light Sensing The Ambient Light Sensor Module continuously monitors the environmental light levels. When the light intensity falls below a predefined threshold, the system automatically activates the RGB LED Module. This ensures that the light is only turned on when needed, enhancing energy efficiency and creating an adaptive lighting environment.
Manual Color Control The user can interact with the Button Module to manually change the color of the RGB LED Module. Each button press cycles through a preset list of colors (e.g., red, green, blue, yellow, magenta, cyan). Additionally, holding the button down accelerates the color transitions, allowing users to quickly move between colors.
Energy-Efficient Operation The Ambient Light Sensor Module makes the system more energy-efficient by turning the light off when ambient light levels are sufficient. This feature ensures that the RGB LED Module operates only in low-light conditions, minimizing unnecessary energy usage.
Seamless Module Communication The SMD ensures seamless communication between all components. It reads the ambient light data from the Ambient Light Sensor, controls the color output of the RGB LED, and processes user input from the Button Module. This integration allows the project to react dynamically to both environmental changes and user commands.
Step 2: Assemble
Getting Started
Hardware Setup
Connect the SMD to the PC or Arduino board using USB Gateway Module or Arduino Gateway Module.
Connect the Ambient Light Sensor Module and the RGB LED Module to the SMD using an RJ-45 cable.
Make sure that the SMD is powered and all connections are correct.
Project Wiring Diagram
Step 3: Run & Test
Light Monitoring: The system constantly reads ambient light data using the Ambient Light Sensor.
Automatic Light Control: If the environment is too dark, the RGB LED Module is automatically turned on, and if the environment is bright, the RGB LED Module turns off.
User Interaction: The Button Module allows the user to cycle through colors manually. A single press changes the color, and holding the button down rapidly switches between the colors.
Color Retention: When the button is released, the LED remains on the last selected color until further interaction.
Project Codes
Conclusion:
This project exemplifies how the ACROME SMD platform can integrate with various modules to create a smart lighting solution that is both interactive and energy-efficient. By using the Ambient Light Sensor, RGB LED, and Button Module, the system combines automatic control with manual user inputs, providing a flexible and customizable lighting experience.
Last updated