- Project name: Ambilight TV Project with Raspberry Pi
- Short description: LED strip installed around a screen that reacts to the colors displayed
- Environment: Raspberry Pi OS (Debian-based)
- Tools: Raspberry Pi, C++, Python
- Institution: FEUP
- Course: ERTS (Embedded and Real Time Systems)
- Project grade: 17.2/20
- Group members:
- LED controller library:
sudo pip install rpi_ws281x
- POSIX IPC library for named semaphores:
sudo pip install posix_ipc
Note for screenreader.c:
Make sure $DISPLAY is set to :0
(when running project through ssh, run export DISPLAY=:0
before other programs)
Build project
make
Run each process in a separate terminal
./screenreader.app
./intensity.app
sudo python3 leds.py
(must be sudo to write to RaspberryPi's GPIO pins)
Change NUM_RUNS
to the number of screenreads you want, compile with make and run ./screenreader
.
If ledPrint();
is not commented, comment for more accurate results.
Change NUM_RUNS
to the number of led color change you want to be made, run ./screenreader | sudo python3 leds.py 2>&1
.
If else: print(colors)
is not commented, comment for more accurate results.