josh26turner / Ambilight

An ambient lighting solution for the X11 window enviroment in Linux using an Arduino to control the LEDs, works on Raspberry Pi - Raspbian
MIT License
41 stars 5 forks source link
ambient-light ambilight arduino leds lighting linux raspberry-pi x11

Ambillight

https://www.youtube.com/watch?v=gHw7eMHb4cw

An ambient lighting solution for the X11 window environment in Linux using an Arduino to control the LEDs.

Multi monitor not currently supported.

Hardware

Software

Dependencies:

  1. Run install.sh
  2. Upload the Arduino/ambilight/ambilight.ino program onto the Arduino using the Arduino IDE - updating the NUM_LEDS and DATA_PIN to the your values

Usage

To run the ambient lighting, run:

$ ambilight

Quit with ctrl+c.

To set a background color, use:

$ ambilight-color <red> <green> <blue>

For example:

$ ambilight-color 0 0 0

will turn off all the lights.

Red, green and blue values from 0 to 254.

Running

$ ambilight-color

will set the background color to the one specified in the config file.

Config

There is a config file saved at ~/.config/Ambilight/config.

Background

An idle color can be set in the config, this color will be set when ambilight-color is run with no arguments.

Bad Delay

If you're getting bad delay then go to the config file and decrease the pixels_to_process value. Find the highest value where you can't notice the delay, this should give good results.

Brightness

Brightness as an integer out of 100