docs:blox:connect-ws2812

This is an old revision of the document!


3.1 Connecting BLOX to WS2812 Addressable RGB LEDs

OpenBuilds BLOX supports external LED strings, matrixes and rings containing WS2812 based addressable LEDs

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

Configuration

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 I0 [index 0-Length of LED strip] P255 [brightness 0-255] R255 [red 0-255] U255 [green 0-255] B255 [blue 0-255]

For example, setting the two onboard LEDs BLUE: M150 I0 P255 R0 U0 B255 \n M150 I1 P255 R0 U0 B255

docs/blox/connect-ws2812.1722882197.txt.gz · Last modified: 2024/08/05 18:23 by admin