Jump to content

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.9 stable released!
        Here comes Cura 5.9 and in this stable release we have lots of material and printer profiles for UltiMaker printers, including the newly released Sketch Sprint. Additionally, scarf seams have been introduced alongside even more print settings and improvements.  Check out the rest of this article to find out the details on all of that and more
          • Like
        • 5 replies
      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
          • Heart
          • Thanks
          • Like
        • 7 replies
    ×
    ×
    • Create New...