Jump to content
Ultimaker Community of 3D Printing Experts

Neopixels


callum-burns
 Share

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
     Share

    • Our picks

      • New here? Get ahead with a free onboarding course
        Hi,
         
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 11 replies
    ×
    ×
    • Create New...