Dual part cooling fans for dual extruders

Share your modifications or have technical discussions about the Rigidbot

Dual part cooling fans for dual extruders

Postby spannerworx » 23 Mar 2015, 11:19

After spending quite some time looking for a way to get a second part cooling fan running off the PCB for the second extruder on my dual extruder Rigidbot without success I decided to take the matter into my own hands. So, here are the instructions for the modifications required to the firmware to run dual part cooling fans in sync, one off each extruder PCB.

DISCLAIMER: Slicer software (GCODE) only allows for software control of one part cooling fan. Therefore, this solution does not provide for independent software control of two part cooling fans, rather it runs the two fans in sync meaning whatever is happening at one is happening at the other. However, this means that rather than just having one fan ducted across two extruder heads you can have one fan ducted directly to each extruder.

You just add the three lines highlighted red below to the planner.cpp tab in the Marlin firmware file and re-flash the mobo.

#if defined(FAN_PIN) && FAN_PIN > -1
#ifndef FAN_SOFT_PWM
#ifdef FAN_KICKSTART_TIME
static unsigned long fan_kick_end;
if (tail_fan_speed) {
if (fan_kick_end == 0) {
// Just starting up fan - run at full power.
fan_kick_end = millis() + FAN_KICKSTART_TIME;
tail_fan_speed = 255;
} else if (fan_kick_end > millis())
// Fan still spinning up.
tail_fan_speed = 255;
} else {
fan_kick_end = 0;
}
#endif//FAN_KICKSTART_TIME
analogWrite(FAN_PIN,tail_fan_speed);

// Engage E0-FAN on pin 11 //
pinMode(11, OUTPUT);
analogWrite(11, tail_fan_speed);


#endif//!FAN_SOFT_PWM
#endif//FAN_PIN > -1

I've also created a printable dual fan mount bracket and fan outlet ducts which you can download from here http://www.thingiverse.com/thing:736563

I hope this is of use. If so, enjoy.
spannerworx
 
Posts: 1
Joined: 22 Mar 2015, 04:46

Re: Dual part cooling fans for dual extruders

Postby goblingift » 03 Aug 2015, 16:57

Thank you soooo much :mrgreen:
Your little code is so helpful- now i can run both of my cooling fans :P

But there´s one thing, which is maybe to improve:

If i set the FAN-speed from the rigidbot LCD-panel, then only the first fan is starting. (I mean with: Prepare-> Heat/Cool->Fan speed).
But if i selecting the Prepare-> Heat/Cool->Preheat PLA, then both of the fans are starting...

Can you maybe improve this in the code? Any suggestions?
goblingift
 
Posts: 4
Joined: 04 May 2015, 19:02

Re: Dual part cooling fans for dual extruders

Postby goblingift » 26 Aug 2015, 16:53

spannerworx wrote:After spending quite some time looking for a way to get a second part cooling fan running off the PCB for the second extruder on my dual extruder Rigidbot without success I decided to take the matter into my own hands. So, here are the instructions for the modifications required to the firmware to run dual part cooling fans in sync, one off each extruder PCB.

DISCLAIMER: Slicer software (GCODE) only allows for software control of one part cooling fan. Therefore, this solution does not provide for independent software control of two part cooling fans, rather it runs the two fans in sync meaning whatever is happening at one is happening at the other. However, this means that rather than just having one fan ducted across two extruder heads you can have one fan ducted directly to each extruder.

You just add the three lines highlighted red below to the planner.cpp tab in the Marlin firmware file and re-flash the mobo.

#if defined(FAN_PIN) && FAN_PIN > -1
#ifndef FAN_SOFT_PWM
#ifdef FAN_KICKSTART_TIME
static unsigned long fan_kick_end;
if (tail_fan_speed) {
if (fan_kick_end == 0) {
// Just starting up fan - run at full power.
fan_kick_end = millis() + FAN_KICKSTART_TIME;
tail_fan_speed = 255;
} else if (fan_kick_end > millis())
// Fan still spinning up.
tail_fan_speed = 255;
} else {
fan_kick_end = 0;
}
#endif//FAN_KICKSTART_TIME
analogWrite(FAN_PIN,tail_fan_speed);

// Engage E0-FAN on pin 11 //
pinMode(11, OUTPUT);
analogWrite(11, tail_fan_speed);


#endif//!FAN_SOFT_PWM
#endif//FAN_PIN > -1

I've also created a printable dual fan mount bracket and fan outlet ducts which you can download from here http://www.thingiverse.com/thing:736563

I hope this is of use. If so, enjoy.


Hey, just take a look on my google plus thread- your code makes the rigidbot sometimes getting crazy... Did you investigated these problems too?
https://plus.google.com/109288726195425 ... xMdUpZ4VGJ
goblingift
 
Posts: 4
Joined: 04 May 2015, 19:02


Return to Modifications & Technical

Who is online

Users browsing this forum: No registered users and 1 guest