Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Duet SBC WS281x Progress Bar

    Scheduled Pinned Locked Moved
    Third-party software
    1
    1
    169
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • keyz182undefined
      keyz182
      last edited by

      I wrote up a quick bit of code last night/this morning to control WS281x LEDs from a PI running the Duet Software Platform.

      It uses the RPI_WS281X under the hood, so it's limitations apply to pin choices. I'm defaulting to GPIO12 in PWM mode, as DSF uses the SPI pin.

      Right now it's using the duration and file time left to calculate progress, as I couldn't find a progress variable in the object model in DuetAPI (not saying it's not there, just couldn't find it).

      I have considered being able to reserve LEDs at the start/end for indicators of other things, but not sure what - any suggestions? e.g. heater x on, fan x on, fan x speed (e.g. red to green or brightness of blue), etc.

      To use, grab the zip from the releases tab, extract to /opt/LEDProgress, and install the systemd service as stated in the readme.

      Modify the command line args as appropriate in the service file before installation. Defaults are my setup, so Pin 12, 56 LEDs, 255 max brightness.

      alt text

      1 Reply Last reply Reply Quote 2
      • First post
        Last post
      Unless otherwise noted, all forum content is licensed under CC-BY-SA