Raspberry PI utility that controls color of your IR LED light bulb based on the dominant color of the currently played video
Project description
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 a simple IR remote controlled LED light bulb. Please watch the demo.
ambibulb can play a video and simultaneously transmit IR signal to the light bulb with its most dominant color. This can enhance your viewing experience or make your party more colorful 🌈.
HARDWARE
- Raspberry PI (tested on 3B+)
- HDMI output (TV, projector, display)
- RGB LED light bulb with IR remote control (supports 16 colors and 5 levels of brightness)
- IR transmitter (tested on KY-005)
- IR receiver(tested on KY-022, optional)
- wiring
SOFTWARE DEPENDENCIES
- Raspberry Pi OS (10 buster, headless work as well)
- lirc
- omxplayer
- pip packeges in requirements.txt (installed automatically)
SETUP
- Install Raspberry PI OS on your SD card
- Build and install all software dependecies
- Connect and set up your IR transmitter to RPI
- if you couldn't find config file for you IR control device, record it with IR transmitter. My lirc config is stored here
- pip3 install ambibulb (recommended to install in venv)
RUN OPTIONS
simple run:
$ ambibulb demo.mp4
all options:
usage: ambibulb [-h] [-w] [-c CYCLE_PERIOD] [-v] [-l LIRC_CONF] media_path
positional arguments:
media_path path to media file
optional arguments:
-h, --help show this help message and exit
-w, --with_white use white light in the algoritm
-c CYCLE_PERIOD, --cycle_period CYCLE_PERIOD
min period color changing, sec. (Default = 0.4 sec)
-v, --verbosity show timing steps
-l LIRC_CONF, --lirc_conf LIRC_CONF
lirc config name (Default = 'RGBLED')
All omxplayer keyboard shortcuts are avaliable during ambibulb execution.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ambibulb-0.0.4-cp37-cp37m-linux_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e500c055f8bc10928df91bf43d23d87334ea0be7a773a4397836b2618da53577 |
|
MD5 | 0dc0cc8e1556ad8ad8a6fa587cfe80f8 |
|
BLAKE2b-256 | f9fd4d242864a722a84a9414478afd4655f4333e173a65e3d5a078465e7c88e7 |