Skip to content

Controlling a circuit of rgb leds in a lamp to show average color of the windows in the Telefonplan Tower from a webcam image using a RaspberryPI and Python. When a significant change of the average color happens the lamp animates to the new color. Also runs a simulation of lamp color, input colors and enhanced webcam image for testing purposes.

License

Notifications You must be signed in to change notification settings

mik4el/gadget-pi-tower-lamp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README for PI Tower Lamp

Controlling a circuit of rgb leds in a lamp to show average color of the windows in the Telefonplan Tower from a webcam image using a RaspberryPI and Python. When a significant change of the average color happens the lamp animates to the new color. Also runs a simulation of lamp color, input colors and enhanced webcam image for testing purposes.

Dependencies

Python 3.5, pillow, pi-blaster, requests, Docker, docker-compose

Tests

Run tests with this command:

cd pi-tower-lamp
python -m unittest tests

Running it

The program can be run in visual mode for developing and debugging and in rgbled mode to control rgb leds.

First time on pi

  1. Install pi-blaster (https://github.com/sarfata/pi-blaster or my fork that works with gpio pins 2, 3 and 4 from https://github.com/mik4el/pi-blaster).
  2. Make local copy of .env.sample to .env and fill in.
  3. docker-compose up -d

For developing:

cd pi-tower-lamp
python main.py --mode visual

About

Controlling a circuit of rgb leds in a lamp to show average color of the windows in the Telefonplan Tower from a webcam image using a RaspberryPI and Python. When a significant change of the average color happens the lamp animates to the new color. Also runs a simulation of lamp color, input colors and enhanced webcam image for testing purposes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages