Page 1 of 1

[Firmware] How to control the fan of the hotend left one

Posted: Thu Oct 10, 2019 4:02 pm
by William
Hi, guys! We know the blower fan of the thinker is the pwm type fan,
you can control it via M106 or M107.
But the fan of the hotend left one(Fan2), you can’t control it and it always running when the PSU is on.
It is a little noise, right?So, here we go! Let us improve it.

Step by step tutorial:

1. Loose the screws of the printer bottom
We need to remove the protection cover off. Then we can plug the fan2’s cable to the heater1 port.(The heater0 is used for the heating rod, the heater1 is the spare one so we can use it)

2. Then we can find the green connector
Fan2_1.jpg
Fan2_1.jpg (294.31 KiB) Viewed 4315 times







For the fan2’s wiring, you need refer to the pics below at first.
1. Check the “+” and “-” pin of the heater1 port
As usual, the cooling fan cable:
The red one is should be plug into the “+” pin of the heater1;
The black one should be plug into the “-” pin of the heater1;
Fan2_1.jpg
Fan2_1.jpg (294.31 KiB) Viewed 4315 times
Fan2_2.jpg
Fan2_2.jpg (153.2 KiB) Viewed 4315 times
Fan2_3.jpg
Fan2_3.jpg (131.54 KiB) Viewed 4315 times


2. When we finished the wires, we need to upload the firmware to the printer.
If you have no experience of the “How to upload the firmware to your 3d printer”
You can refer to this link a first:
https://www.eryone.com/forum/viewtopic.php?f=6&t=9

3.Here is the firmware modified by myself
(Thanks to Robert Li’s support)
Download link:
Update: Fixed the extruder motor not work under printing.
2019/10/11
Fixed the fan automatical feature
2019/10/14
FAN2 Control for thinker.zip
(3.47 MiB) Downloaded 118 times
Note:
The fan2 will running at max(255) when the hotend temperature more than 50℃. When the temperature of it lower than 50℃, it will turn off automatically.




The firmware what I changed:

1. You can find this line on “pins_rambo.h”


If you want to change the cooling fan temperature requires, this line would help:
“temperature.cpp”→Open it with notepad++ or editplus
Ctrl+F > Search”isr”

Change the “50” to whatever number you want to set. Then save it and upload it to your printer.
Fan2_4.jpg
Fan2_4.jpg (59.25 KiB) Viewed 4315 times
Good luck!

Re: [Firmware] How to control the fan of the hotend left one

Posted: Sun Oct 13, 2019 6:43 am
by 3dMichl
Hello, William,
I did everything by the book.
But unfortunately it doesn't work.
When I heat up to 55c the fan stays off.
I used your linked firmware.
The fan only turns on when I set the LCD display FAN3 to 255. Where is the error?

Re: [Firmware] How to control the fan of the hotend left one

Posted: Mon Oct 14, 2019 2:29 pm
by William
3dMichl wrote:
Sun Oct 13, 2019 6:43 am
Hello, William,
I did everything by the book.
But unfortunately it doesn't work.
When I heat up to 55c the fan stays off.
I used your linked firmware.
The fan only turns on when I set the LCD display FAN3 to 255. Where is the error?
Hi, I've updated the firmware, you can refer to it.
The firmware lost some lines of the temperature.cpp
If you have any questions, pls feedback!
;)

Re: [Firmware] How to control the fan of the hotend left one

Posted: Thu Oct 17, 2019 4:28 pm
by Dominic97
Hello William,

can i use this Version with the better fan because i have also mounted a BL Touch V3.1
Is your Firmware compatible with this ?

Thanks for your answer

Re: [Firmware] How to control the fan of the hotend left one

Posted: Fri Oct 18, 2019 10:37 pm
by William
Dominic97 wrote:
Thu Oct 17, 2019 4:28 pm
Hello William,

can i use this Version with the better fan because i have also mounted a BL Touch V3.1
Is your Firmware compatible with this ?

Thanks for your answer
I've not tested it work with the Smart Bltouch V3.0/3.1
My new firmware need more test, if it works then I will upload it.

Re: [Firmware] How to control the fan of the hotend left one

Posted: Thu Jan 09, 2020 4:29 pm
by Retris
Hi there,

there is an easier solution for that.
The hotend fan is plugged into FAN1 and the top line in Configuration_adv.h is changed:

Code: Select all

#define E0_AUTO_FAN_PIN 6
#define E1_AUTO_FAN_PIN -1
#define E2_AUTO_FAN_PIN -1
#define E3_AUTO_FAN_PIN -1
#define E4_AUTO_FAN_PIN -1
#define CHAMBER_AUTO_FAN_PIN -1
#define EXTRUDER_AUTO_FAN_TEMPERATURE 50
#define EXTRUDER_AUTO_FAN_SPEED 255 // == full speed



That's it, now the fan comes on from the specified temperatures.

regards

Re: [Firmware] How to control the fan of the hotend left one

Posted: Thu Apr 09, 2020 2:25 pm
by William
Retris wrote:
Thu Jan 09, 2020 4:29 pm
Hi there,

there is an easier solution for that.
The hotend fan is plugged into FAN1 and the top line in Configuration_adv.h is changed:

Code: Select all

#define E0_AUTO_FAN_PIN 6
#define E1_AUTO_FAN_PIN -1
#define E2_AUTO_FAN_PIN -1
#define E3_AUTO_FAN_PIN -1
#define E4_AUTO_FAN_PIN -1
#define CHAMBER_AUTO_FAN_PIN -1
#define EXTRUDER_AUTO_FAN_TEMPERATURE 50
#define EXTRUDER_AUTO_FAN_SPEED 255 // == full speed



That's it, now the fan comes on from the specified temperatures.

regards
Nice! That's really cool! The marlin2.0.x also has these codes
:)