docs:blox:connect-ws2812

This is an old revision of the document!


2.2 Connecting BLOX to WS2812 Addressable RGB LEDs

OpenBuilds BLOX supports external LED strings, matrixes and rings containing WS2812 based addressable LEDs. It comes with 2x LEDs onboard ready to use as well!

  • Max Current: 2A
  • Voltage: 5v (Same as Input voltage)
  • LED Type: WS2812B
  • LED Address: 2+ (0,1=Onboard)

2.2.1 Wiring

BLOX Terminal Device
GND GND
5V 5V IN
LDO LED Data In

2.2.2 Configuration

2.2.2.1 grblHAL / CONTROL

Make sure to set $536=0-255 (WS2812B LED strip length) in grblHAL settings (CONTROL > Grbl Settings Tab > Scroll down to$536 WS2812B LED strip length > Set the value to 2+'number of LEDs on the attached strip/matrix/circle' and Save.

That is because BLOX has two onboard LEDs. So if you add a 24-LED strip, you should set $536 = 2+24 thus $536=26

To change the LED colors, use the M150 command: “M150 S0 [strip=0] I0 [index 0-Length of LED strip] P255 [brightness 0-255] R255 [red 0-255] U255 [green 0-255] B255 [blue 0-255]: Learn more about M150 here

  • For example, setting the first of the two onboard LEDs BLUE: M150 I0 P255 R0 U0 B255
  • For example, setting all LEDs to Green: M150 S0 U255
docs/blox/connect-ws2812.1722951403.txt.gz · Last modified: 2024/08/06 13:36 by admin