Jump to content
UltiMaker Community of 3D Printing Experts

Use EXP3 pinout / 6 PWM


noctis

Recommended Posts

Posted · Use EXP3 pinout / 6 PWM

Hey folks

I want to use the EXP3 (PWM) pins to control an Ikea Dioder RGB LED bar, but don't know if I can do so.

The pins.h from github/ErikZalm are already used for:

 


#define HEATER_BED_PIN 4
#define TEMP_BED_PIN 10
#define HEATER_0_PIN 2
#define TEMP_0_PIN 8 //Is this Pin A8 or just 8???
#define HEATER_1_PIN 3
#define TEMP_1_PIN 9 //so why is this Pin used, when the PCB Wiki tells me its on EXP3?
#define HEATER_2_PIN -1
#define TEMP_2_PIN -1 //What does -1 mean?
#define E0_STEP_PIN 43
#define E0_DIR_PIN 45
#define E0_ENABLE_PIN 41
#define E1_STEP_PIN 49
#define E1_DIR_PIN 47
#define E1_ENABLE_PIN 48
#define SDPOWER -1
#define SDSS 53
#define LED_PIN 13
#define FAN_PIN 7
#define PS_ON_PIN 12

I'm trying to attach the IKEA RGB Dioder LED bars to Marlin. I've already solderd a Darlington array with an step-down board and tested it with my 2nd Mega.

It's working with pin 8-13 - so far so good.

Also the custom G-Code M250 (all off) M251, M252 (on) are working with Marlin.

But as told, I need 6 channels.

Can someone show me a solution to get 6 PWM outputs or one Tx (with arduino micro)? I'm totally stucked in code.

Thanks a lot!

Greetings, Noc

 

  • Link to post
    Share on other sites

    Posted · Use EXP3 pinout / 6 PWM

    This would be awesome. I already have a Dioder set installed on my machine with just the included controller hanging out the side. Never even thought of trying to control the colors with the Ultimaker itself.

    Hope you figure this out, good luck man

     

  • Link to post
    Share on other sites

    • 1 year later...
    Posted · Use EXP3 pinout / 6 PWM

    Any luck with this? Even just 3 PWM outputs would be okay I think, and just use the controller that came with the unit as a base, like this

    Looking at pins.h it looks like only pin 11 is free is you're using 2 extruders and a heated bed though, so this might not be possible. Maybe the LED_PIN (13) could be used but I'm really not good with this kind of stuff

     

  • Link to post
    Share on other sites

    Posted · Use EXP3 pinout / 6 PWM

    Thanks for clearing that up.

    This is going to make me sound like a noob but I figured I should ask before I let the smoke out on something.

    So according to this diagram here: http://arduino.cc/en/uploads/Hacking/PinMap2560big.png

    EXP3 on the UM PCB (1.5.7) would be digital pins 8-13, AKA actual pins (according to the diagram) 17, 18, 23, 24, 25, and 26?

    And all of these are free to use as I/O? I plan on using the M42 command to play with these, would I use "M42 P13 Sxxx" or "M42 P26 Sxxx" to address the LEDPIN?

    I am quite new to arduino/electronics in general if you couldn't tell, sorry to ask a million questions.

     

  • Link to post
    Share on other sites

    Posted · Use EXP3 pinout / 6 PWM

    Alright, so I've sort of got this working, but it acts funny.

    R, G, B channels hooked up to pins 8, 9 , and 10 respectively on EXP3. Setting all to 255 ("M42 P8 S255", "M42 P9 S255" ...) gives me white as expected. Setting to 255, 0, 0 gives me orange when I expect red, and setting to 0, 0, 0 gives me green which I expected to have the lights turn off. Green is the default, ie. that's whats on before giving any commands after plugging the printer in. I also got this green effect running the controller off a standalone arduino. Any ideas what's going on?

    Working on a Cura plugin now, but I would like be able to fade these LED's through all their colors. I'd imagine I'd have to put this in Marlin somewhere to avoid a never ending G-Code? Might as well try and add a menu for the LCD controller while I'm in there. I don't know Python or Arduino very well so this will be a process.

    Here's some pics, basically hacked up the controller just like that video a couple posts up.

    LED controller

    LED controller

     

    • Like 1
    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.3 stable released
        In this stable release, Cura 5.3 achieves yet another huge leap forward in 3D printing thanks to material interlocking! As well as introducing an expanded recommended print settings menu and lots of print quality improvements. Not to mention, a whole bunch of new printer profiles for non-UltiMaker printers!
          • Thanks
          • Like
        • 31 replies
      • Here it is. The new UltiMaker S7
        The UltiMaker S7 is built on the success of the UltiMaker S5 and its design decisions were heavily based on feedback from customers.
         
         
        So what’s new?
        The obvious change is the S7’s height. It now includes an integrated Air Manager. This filters the exhaust air of every print and also improves build temperature stability. To further enclose the build chamber the S7 only has one magnetically latched door.
         
        The build stack has also been completely redesigned. A PEI-coated flexible steel build plate makes a big difference to productivity. Not only do you not need tools to pop a printed part off. But we also don’t recommend using or adhesion structures for UltiMaker materials (except PC, because...it’s PC). Along with that, 4 pins and 25 magnets make it easy to replace the flex plate perfectly – even with one hand.
         
        The re-engineered print head has an inductive sensor which reduces noise when probing the build plate. This effectively makes it much harder to not achieve a perfect first layer, improving overall print success. We also reversed the front fan direction (fewer plastic hairs, less maintenance), made the print core door magnets stronger, and add a sensor that helps avoid flooding.
         

         
        The UltiMaker S7 also includes quality of life improvements:
        Reliable bed tilt compensation (no more thumbscrews) 2.4 and 5 GHz Wi-Fi A 1080p camera (mounted higher for a better view) Compatibility with 280+ Marketplace materials Compatibility with S5 project files (no reslicing needed) And a whole lot more  
        Curious to see the S7 in action?
        We’re hosting a free tech demo on February 7.
        It will be live and you can ask any questions to our CTO, Miguel Calvo.
        Register here for the Webinar
          • Like
        • 18 replies
      • UltiMaker Cura Alpha 🎄 Tree Support Spotlight 🎄
        Are you a fan of tree support, but dislike the removal process and the amount of filament it uses? Then we would like to invite you to try this special release of UltiMaker Cura. Brought to you by our special community contributor @thomasrahm
         
        We generated a special version of Cura 5.2 called 5.3.0 Alpha + Xmas. The only changes we introduced compared to UltiMaker Cura 5.2.1 are those which are needed for the new supports. So keep in mind, this is not a sneak peek for Cura 5.3 (there are some really cool new features coming up) but a spotlight release highlighting this new version of tree supports.  
          • Like
        • 24 replies
    ×
    ×
    • Create New...