This repository contains the source code and documentation for a SmartLamp system that adapts to the habits of the residents in a house. The system utilizes the C5 algorithm for classifying habits data. The microcontroller used is the ESP32, and all data is stored in Firebase.
-
Adaptive Lighting: The SmartLamp system adjusts the intensity and color temperature of the light based on the habits of the residents.
-
Energy Efficiency: The system aims to optimize energy consumption by dynamically controlling the lighting conditions.
-
C5 Algorithm Implementation: The core of the system is built on the C5 algorithm, which classifies habits data to customize lighting preferences.
-
ESP32 Microcontroller: The system is implemented on the ESP32 microcontroller, providing a compact and efficient solution.
-
Firebase Integration: All habits and system data are stored securely in Firebase, enabling easy access and analysis.
- Arduino IDE with ESP32 support
- Firebase account
- Python 3.x for local testing
- Required Python packages (listed in
requirements.txt
)
-
Clone the repository to your local machine.
git clone https://github.com/kisnak21/smartlamp-website.git cd smartlamp-website
-
Install the required dependencies.
cd decision-tree-api pip install -r requirements.txt
-
Set up the ESP32 microcontroller with the provided Arduino sketch in the
esp32
directory.
-
Flash the Arduino sketch to the ESP32 microcontroller.
-
Run the SmartLamp system.
python main.py
-
Follow the on-screen instructions to set up and configure the SmartLamp system.
-
C5 Algorithm Parameters: Adjust the dataset that you want to use. It's up to you whatever the format is CSV or XLS.
-
Firebase Configuration: Update Firebase credentials and connection details in the
firebase_config.json
file. -
User Preferences: Users can set their lighting preferences through the SmartLamp mobile app or a web interface.
If you would like to contribute to the project, please follow the contribution guidelines.
This project is licensed under the MIT License - see the LICENSE file for details.
-
The C5 algorithm implementation is based on the work presented in the author's thesis or final project.
-
Special thanks to all of my friends for their contributions and support.
For inquiries and support, please contact [krisnastya21@gmail.com].
Feel free to explore the code and documentation to better understand the implementation of the SmartLamp system. Happy coding!