Skip to content

Python utility controls the color of RC lights based on the dominant color of an image on your screen.

License

Notifications You must be signed in to change notification settings

bespsm/ambibulb

Repository files navigation

AMBIBULB

Ambibulb attempts to provide the similar experience to Ambilight® (Philips TV's feature that projects color onto the wall behind a TV) using Raspberry PI and an IR remote controlled LED light bulb. Please watch the demo.

ambibulb controls the color of RC lights based on the dominant color of an image on your screen. This can enhance your viewing experience or just make your party more colorful 🌈.

HARDWARE

  • Raspberry PI (tested on 3B+)
  • HDMI output (TV, projector, display)
  • RGBW LED light bulb with IR remote control (currently supported model: OSRAM LED STAR+)
  • IR transmitter (tested on KY-005)
  • IR receiver(tested on KY-022, optional)
  • wiring

SOFTWARE DEPENDENCIES

  • Raspberry Pi OS (10 buster, or any other RPI compatible OS)
  • LIRC (Linux Infrared Remote Control)

SETUP AND INSTALLATION

  1. Install Raspberry PI OS on your SD card
  2. Install lirc on your RPI:
$ apt install lirc
  1. Configure lirc, connect and configure IR transmitter, guideline
  2. Install ambibulb. There are 2 ways, either build, install and configure locally:
 $ wget https://github.com/bespsm/ambibulb/archive/main.zip
 $ unzip main.zip
 $ cd ambibulb-main
 $ make install
 $ make configure

or using pip (recommended in venv) and configure locally:

 $ python3 -m pip install ambibulb
 $ wget https://github.com/bespsm/ambibulb/archive/main.zip
 $ unzip main.zip
 $ cd ambibulb-main
 $ make configure

COMMANDS

Start ambibulb service:

$ systemctl --user start ambibulb.service

Stop ambibulb service:

$ systemctl --user stop ambibulb.service

Check ambibulb service current status, two options:

$ systemctl --user status ambibulb.service
$ journalctl -f

Configure/change the settings of ambibulb service:

$ ambibulb-config