<p>I was hoping I could find some help as I am not that familiar with Marlin. I currently have an Ender 5 and I am in the process of replacing the stock board.</p>
<p>So here’s what I am trying to do: I have two small 12 V fans that I want to be powered on when the enclosure is above a temperature that I set using the Ender 5 interface. Basically, both fans get powered on until the temp is below (maybe a few degrees) the target temp. The temperature would be monitored by a thermistor.</p>
<p>I prefer this over using a separate Arduino as I find the Arduino adds bulk and lots of unnecessary wires etc.</p>
<p>I really would appreciate any help on this, or anyone telling me that this idea is impossible with the selected board. If it is possible, a detailed list, or edited code -- whichever is easier would be really appreciated.</p>

CC BY-SA 4.0
2020-11-23T22:53:33.453Z
That is strange, if I understand correctly, the fans need to go on when the temperature in the enclosure drops under a value, if you have a heated bed, that is never going to happen! Unless the print is finished and everything cools down. Marlin has default support for the opposite, the fans will go on when the temperature crosses/increases a setpoint temperature to cool the enclosure. Please explain what the purpose is of your question.
0scar
CC BY-SA 4.0
2020-11-24T20:25:37.970Z
Sorry for the misunderstanding, I do mean for the fans to go on when the temperature increases beyond a point. For example, if I am printing in PLA I would want to keep the temperature relatively low, however, with ABS I doubt the fans need to be on at all.
Tassilo16
CC BY-SA 4.0
2020-11-24T20:30:59.970Z
As well, you said that there was default support for this. My main worry is that the pinouts that I have on the board may not work, as they are not meant for fan outputs. I know that may seem weird, but I do not fully understand the amount of voltage or current that is drawn through the pinout.
Tassilo16
CC BY-SA 4.0
2020-11-24T21:58:08.290Z
A pin connected to the processing unit cannot provide the current that schedules a fan or a heater, the idea is that you let a MOSFET switch the power circuit.
0scar
CC BY-SA 4.0
2020-11-25T17:09:15.450Z
Oh ok, that's interesting, I will definitely look into it. Also, could I use any pinout for the thermistor, as long as I specify it in Marlin? and then a separate pinout that will connect to the MOSFET switch?
Tassilo16
<firmware><creality-ender-5><cooling><enclosure><skr-mini-e3>
SKR E3 mini Ender 5 Enclosure cooling system
Tassilo16
# SKR E3 mini Ender 5 Enclosure cooling system

(Asked by: username_0 on 2020-11-23)

I was hoping I could find some help as I am not that familiar with Marlin. I currently have an Ender 5 and I am in the process of replacing the stock board.

So here’s what I am trying to do: I have two small 12 V fans that I want to be powered on when the enclosure is above a temperature that I set using the Ender 5 interface. Basically, both fans get powered on until the temp is below (maybe a few degrees) the target temp. The temperature would be monitored by a thermistor.

I prefer this over using a separate Arduino as I find the Arduino adds bulk and lots of unnecessary wires etc.

I really would appreciate any help on this, or anyone telling me that this idea is impossible with the selected board. If it is possible, a detailed list, or edited code -- whichever is easier would be really appreciated.

**Tags:** firmware, creality-ender-5, cooling, enclosure, skr-mini-e3
> **Comments:**
> **username_1**: That is strange, if I understand correctly, the fans need to go on when the temperature in the enclosure drops under a value, if you have a heated bed, that is never going to happen! Unless the print is finished and everything cools down. Marlin has default support for the opposite, the fans will go on when the temperature crosses/increases a setpoint temperature to cool the enclosure. Please explain what the purpose is of your question.  
> **username_0**: Sorry for the misunderstanding, I do mean for the fans to go on when the temperature increases beyond a point. For example, if I am printing in PLA I would want to keep the temperature relatively low, however, with ABS I doubt the fans need to be on at all.  
> **username_0**: As well, you said that there was default support for this. My main worry is that the pinouts that I have on the board may not work, as they are not meant for fan outputs. I know that may seem weird, but I do not fully understand the amount of voltage or current that is drawn through the pinout.  
> **username_1**: A pin connected to the processing unit cannot provide the current that schedules a fan or a heater, the idea is that you let a MOSFET switch the power circuit.  
> **username_0**: Oh ok, that's interesting, I will definitely look into it. Also, could I use any pinout for the thermistor, as long as I specify it in Marlin? and then a separate pinout that will connect to the MOSFET switch?  

---

## 0 answers

