Skip to content

Latest commit

 

History

History
executable file
·
62 lines (46 loc) · 2.38 KB

BUILD-LEDSYSTEM.md

File metadata and controls

executable file
·
62 lines (46 loc) · 2.38 KB

LED System Build Instructions

The LEDs used are addressable LED stripes. There are many type of them (i.e. ws281x, ws2801, apa102). The original project goes for WS2801, but they were not available in Q4 2020 for me. Therefore this project uses WS2811 LEDs.

LEDs

Requirements

Besides the tools, time and money (the climbing holds are the most expensive component) you will need:

  • Rapi with 8GB SD Card - powered over GPIO
  • 4x LED Strips: 50x WS2811 LED, 5V, 12mm - custom cable length of 23cm (alternatively 3x 4x LED Strips with standard length of 7cm)
  • Power supply meanwell mdr-60-5 - (~60mA * 50 * 4 = 12A ==> 60 W for 5V)

General Considerations

Bear in mind that 198 LEDs wired with 3-4 cables each mean a lot of soldering work. You probably want to order ready-to-use LED stripes with a suitable custom length. 5V leads to higher currents compared to 12V versions of comparable bright LEDs. The voltage drop in such a length will lead to color mismatches. To fix this the stripes usually have separate voltage connectors on each end in addition to the 3 / 4 pin connection.

Wiring the LED stripes

The WS2811 LED strips have three wires (colors may differ in your case):

  • White = GND
  • Red = 5V
  • Green = Signal
  • Both the LED and the RASPI are driven by the same power supply (warning: GPIO power on raspi has no fuse)

Raspi Wiring

Put Holds to moonboard

  • There is a mode (CLI) to display the hold setups with leds
sudo systemctl stop moonboard.service
cd ~/moonboard/led
sudo /usr/bin/python3  /home/pi/moonboard/led/moonboard.py  --driver_type PiWS281x --holdset "Hold Set A"

Configure the LED addresses FIXME!

  • Create a custom layout in FIXME moonboard.py
sudo systemctl stop moonboard.service
sudo /usr/bin/python3  /home/pi/moonboard/run.py --debug --driver PiWS281x
  • Running the script in testing mode
sudo systemctl stop moonboard.service
cd led
sudo python3 moonboard.py  PiWS281x

There are different possibilities how to choose the path of your led strip (cf. layout in the sources). There is a scrip in the folder led for creating the address arrays (create_nth_led_layout.py).

LED path

Further readings: