Raspberry Pi controlled VL53L0X activated lights via PCA9685
- A Raspberry Pi (Original Pi Zero and Original Pi A/B are not supported)
- PCA9685
- Up to 16 VL53L0X sensors
- As many leds as there are sensors
Raspberry Pi OS Bookworm (Older OSes may work with pyenv and building lgpio from source)
Install these before Python dependencies
sudo apt install python3-dev
-
Change directory into AutoLight
cd AutoLight
-
Setting virtual environment
python3 -m venv .venv
-
Source environment
source .venv/bin/activate
-
Install dependencies
pip install -r requirements.txt
All configuration is done through a config.yaml file. An example to get started is included and used by default in the source. Either directly edit the file, or use the --config
or -c
command line argument to define a custom location.