This MicroPython project is designed to control light bulbs using a Raspberry Pi Pico. It includes features such as human detection and brightness control using buttons or an infrared remote. To enhance quality of the IR reception, a second Pico is used to receive the IR signals and send them to the main Pico via UART. The project also includes an OLED display to show the current mode of operation.
- Raspberry Pi Pico: Main microcontroller.
- LD2410 Human Sensor: Human detection sensor.
- SSD1306 OLED Display: For displaying information.
- WS2812 LED Strip: RGB LED strip.
- ld2410.py: Manages communication with the LD2410 sensor.
- main.py: Main script to control the light bulbs, handle button inputs, and display information on the OLED screen.
- ssd1306.py: Driver for the SSD1306 OLED display.
- Buttons:
- Button 1: Increase brightness.
- Button 2: Decrease brightness.
- Button 3: Switch to human sensor mode.
- Button 4: Toggle between always on and always off modes.
This project is licensed under the MIT License.