Jump to content

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.8 Stable released 🎉
        In the Cura 5.8 stable release, everyone can now tune their Z seams to look better than ever. Method series users get access to new material profiles, and the base Method model now has a printer profile, meaning the whole Method series is now supported in Cura!
        • 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
          • Thanks
          • Like
        • 3 replies
    ×
    ×
    • Create New...