Home

Awesome

RemoteLightServer

A Server for the RemoteLight LED control software to control addressable LED strips with Raspberry Pi.
Various digital LED strips can be controlled with all Raspberry Pi versions thanks to Matthew Lewis' diozero library.

Supported LED Strips

I have only tested WS2812B LED strips with a Raspberry Pi 3 B+. However, due to their similarity to the WS2812 LEDs, WS2811 and SK6812 LED strips should work as well.
According to Matthew Lewis Apa102 and TMI1829 LED strips should also work.

Connecting the LED strip to the Raspberry Pi

PWM LED strip (WS2812/11)

Connect a LED strip with a single data line to the Raspberry Pi:

Preparation

See also here for more details: https://github.com/Drumber/RemoteLight#raspberry-pi

First you need to disable the onboard audio.
Create a file sudo nano /etc/modprobe.d/snd-blacklist.conf and add this line blacklist snd_bcm2835.
Then open the configuration file sudo nano /boot/config.txt and comment following line out:

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

Restart the Pi: sudo reboot

Wiring

LED StripRaspberry PiPower supply
5V+
DINGPIO18
GNDGND-

SPI LED strip (WS2801/Apa102)

Connect a LED strip with two data lines to the Raspberry Pi:

Preparation

Enable SPI in the Raspberry Pi config:

  1. sudo raspi-config
  2. 5. Interfacing Options
  3. P4 SPI
  4. Yes, Ok, Finish

Wiring

LED StripRaspberry PiPower supply
5/12V+
CK / CLKGPIO11 (Pin23)
SI / DIGPIO10 (Pin19)
GNDGND-

Software Installation

Java is required. Raspberry Pi installation: sudo apt-get install openjdk-8-jdk

See also here: https://github.com/Drumber/RemoteLight#raspberry-pi

Download the RemoteLight.jar and RemoteLightServer.jar.
Upload the RemoteLightServer.jar to your Raspberry Pi (e.g. via WinSCP) and start it with sudo java -jar RemoteLightServer-pre0.2.0.2.jar.
Stop the server by typing end or pressing Ctrl + C.
It should have created a 'config.properties' file in the same folder. You can edit the file with sudo nano config.properties if you want.

strip_type=ws2812   //Possible strip types: SK6812[W,_RGBW,_RBGW,_GRBW,_GBRW,_BRGW,_BGRW]
                                            WS2811[_RGB,_RBG,_GRB,_GBR,_BRG,_BGR], WS2812, WS2801, Apa102
gpio_pin=18
led_number=auto     //Any number > 0, Auto (= Recognizes the setting you have set in RemoteLight)
save_logs=true