Jump to content

Neopixels


callum-burns

Recommended Posts

I am looking at adding neopixels to my ultimaker. They will be used for status LEDS, general ooh ah kind of things and work lighting. I am trying to get how to go about adding this kind of thing to Marlin! IMO is just a mess of code and cant get my head about how it all works!

 

  • Link to post
    Share on other sites

    • 1 month later...

    I'm not sure what pins are available, but there are a couple of considerations:

    1. the Neopixel libraries use assembly, and disable interrupts. It would probably be ok if nothing else is going on, but could cause problems during printing.

    2. an alternative would be to use a separate processor (teensy, arduino micro, etc.) to drive it.

     

  • Link to post
    Share on other sites

    Posted · Neopixels

    2. an alternative would be to use a separate processor (teensy, arduino micro, etc.) to drive it.

     

    I would do this. Updating these kinds of LEDs costs significant amount of CPU power from the Arduino, which will block the printing process.

     

  • Link to post
    Share on other sites

    • 3 weeks later...
    Posted · Neopixels

    I've added Neopixels to Marlin successfully.The interrupt blocking is a concern. I updated only 4 of them and no more than 4x / second. It's possible there were timing hiccups but I didn't notice any print quality issues.

    An alternative is the BlinkM modules (which I've also integrated into Marlin). A single super-bright RGB LED with an I2C interface. It's a "smart" LED in that it will blink, fade, etc. on it's own....you can download scripts for it. Which makes it easy to have it flash color sequences or pulse without having the AVR update it constantly.

     

  • Link to post
    Share on other sites

    As others have pointed out, this would probably interfere with the interrupts. How I would do it would be to set up a Trinket to run the neopixels, and also set up the Trinket as an I2C slave device, come up with an ad hoc protocol, and send commands over I2C.

  • Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • UltiMaker Cura 5.7 stable released
        Cura 5.7 is here and it brings a handy new workflow improvement when using Thingiverse and Cura together, as well as additional capabilities for Method series printers, and a powerful way of sharing print settings using new printer-agnostic project files! Read on to find out about all of these improvements and more. 
         
          • Like
        • 16 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    ×
    ×
    • Create New...