Skip to content

fanuware/controLED

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

controLED

Controls a LED Matrix on the Raspberry Pi or another linux based system.

LED's can be light up on a Raspberry Pi 3 B. It's also possible to use it on another systems(i.e Ubuntu), just that the LED's are held virtually.

  • Websocket connections allow controlling the LED's from a html frontend.
  • Multiple connections are allowed to connect and control simultaneously.
  • Different animations are available and can be started/played (Snake Game, Light Show, Dijkstras shortest path)
  • Two different LED displays are supported and either one can be plugged in; displays: WS2812(PWM), 74HC595(SPI)

Getting Started

Use the package manager APT to install dependencies of controLED.

Install dependencies

apt-get install libboost-system-dev
apt-get install libssl-dev

Configure LED device on your Raspberry

Configuration for WS2812 PWM

/etc/modprobe.d/snd-blacklist.conf

blacklist snd_bcm2835

/boot/config.txt

# Enable audio(loads snd_bcm2835)
#dtparam=audio=on

Configuration for 74HC595 SPI

/boot/config.txt

device_tree=bcm2710-rpi-3-b.dtb
dtparam=spi=on

Build controLED from source

git clone <controLED-repo>
cd <controLED-project>
git submodule update --init
mkdir build
cd build
cmake ../
make

Usage

1. Start server

sudo bin/controLED

2. Connect from your local browser

cd <project-root>
cd html
chromium-browser controled.html

License

MIT License

About

Control LED Matrix on Raspberry Pi using Websockets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published