Problems wiring & configuring fans
-
Hi
I'm having some problems getting my fans working on my new build. and need some help. I'm using the 6HC mainboard + Rpi4 on the latest firmwares. and having troubles getting a E3D 24v 2 wire fan working as a printhead fan. and a Cpap blower as my part cooling fan. This is what I have tried so far:-
E3d fan wired and comfigured on "out7" powered by vin (24v) to be thermostaticly controlled to come on at 45ΒΊ by "temp1" hotend PT1000 sensor. (The fan didn't work)
-
After reading some posts, I came to the conclusion that "out7" would not give me that control so I moved the wires to "out5" with the red wire on pin2 and black to pin4 also powered by vin. (This worked as expected once and then stopped working)
-
The Cpap blower, Item link: https://www.aliexpress.com/item/32980201709.html?spm=a2g0o.order_list.0.0.21ef1802djmEpl I tried setting this up on "out4" as described in this post ( https://forum.duet3d.com/topic/23876/connecting-high-power-12v-fan-to-duet-3-6hc/9 ) for contecting high power fans, ( Fan doesn't work ).
I have limited electrical knowledge, and know experimenting can be expensive. So I'm hoping someone can help before I find the magic smoke.
-
-
@ce72 post you complete config.g using the code feature </> so we can read it and help if needed.
-
@ce72 can you also elaborate on your wiring to the 6HC? maybe mark up the wiring diagram to make it clear? https://docs.duet3d.com/duet_boards/duet_3_mb6hc/duet_3_mb6hc_wiring_diagram_v1.0_v1.01.png
-
@rushmere3d Hi this is a cut and paste of my config.g file
Configuration file for Duet 3 (firmware version 3) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v3.2.3 on Sat May 08 2021 00:14:11 GMT+0100 (British Summer Time) ; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"Hevort" ; set printer name M669 K1 ; select CoreXY mode ; Network M552 P0.0.0.0 S1 ; enable network and acquire dynamic address via DHCP M586 P0 S1 ; enable HTTP M586 P1 S0 ; disable FTP M586 P2 S0 ; disable Telnet ; Drives M569 P0.0 S1 ; physical drive 0.0 goes forwards M569 P0.1 S1 ; physical drive 0.1 goes forwards M569 P0.2 S1 ; physical drive 0.2 goes forwards M569 P0.3 S1 ; physical drive 0.3 goes forwards M584 X0.1 Y0.2 Z0.5:0.4:0.3 E0.0 ; set drive mapping M671 X-30.0:164.4:362.8 Y-30.0:298.8:-30.0 ; z leadscrew positions M350 X16 Y16 Z16 E16 I1 ; configure microstepping with interpolation M92 X80.00 Y80.00 Z400.00 E420.00 ; set steps per mm M566 X900.00 Y900.00 Z60.00 E120.00 ; set maximum instantaneous speed changes (mm/min) M203 X6000.00 Y6000.00 Z180.00 E1200.00 ; set maximum speeds (mm/min) M201 X500.00 Y500.00 Z20.00 E250.00 ; set accelerations (mm/s^2) M906 X1200 Y1200 Z1200 E1100 I30 ; set motor currents (mA) and motor idle factor in per cent M84 S30 ; Set idle timeout ; Axis Limits M208 X0 Y0 Z0 S1 ; set axis minima M208 X330 Y315 Z340 S0 ; set axis maxima ; Endstops M574 X1 S1 P"!io0.in" ; configure active-high endstop for low end on X via pin !io0.in M574 Y1 S1 P"!io1.in" ; configure active-high endstop for low end on Y via pin !io1.in ; Z-Probe M950 S0 C"io7.out" ; create servo pin 0 for BLTouch M558 P9 C"^io7.in" H5 F120 T6000 ; set Z probe type to bltouch and the dive height + speeds M558 H30 ;*** Remove this line after delta calibration has been done and new delta parameters have been saved G31 P500 X30 Y40 Z2.5 ; set Z probe trigger value, offset and trigger height M557 X15:215 Y15:195 S20 ; define mesh grid ; Heaters & Sensors M308 S0 P"temp0" Y"thermistor" T100000 B3950 ; configure sensor 0 as thermistor on pin temp0 BED TEMP M950 H0 C"out0" T0 ; create bed heater output on out0 and map it to sensor 0 M307 H0 B1 S1.00 ; enable bang-bang mode for the bed heater and set PWM limit M140 H0 ; map heated bed to heater 0 M143 H0 S120 ; set temperature limit for heater 0 to 120C M308 S1 P"temp1" Y"pt1000" R2200 ; configure sensor 1 as PT1000 on pin temp1 EXTRUDER TEMP M950 H1 C"out1" T1 ; create nozzle heater output on out1 and map it to sensor 1 M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit M143 H1 S280 ; set temperature limit for heater 1 to 280C M308 S2 A"Chamber" P"temp2" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin temp2 CHAMBER TEMP SENSOR M308 S10 Y"mcu-temp" A"MCU" ; defines sensor 10 as MCU temperature sensor MCU TEMP SENSOR M308 S11 Y"drivers" A"Stepper Drivers" ; defines sensor 11 as stepper driver temperature STEPPER TEMP SENSOR ; Fans M950 F0 C"out4" Q500 ; create fan 0 on pin out4 and set its frequency PART COOLING FAN M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned oFF M950 F1 C"out5" Q500 ; create fan 1 on pin out7 and set its frequency EXTRUDER FAN M106 P1 S1 H1 T45 ; set fan 1 value. Thermostatic control is turned on ;M950 F2 C"out5" Q500 ; create fan 2 on pin out5 and set its frequency MCU COOLING FAN ;M106 P2 H10:11 T40:70 ; set fan 2 value. Thermostatic control is turned on ;M950 F3 C"out6" Q500 ; create fan 3 on pin out6 and set its frequency CHAMBER FAN ;M106 P3 S0.7 H2 T60 ; set fan 3 value. Thermostatic control is turned on ; Tools M563 P0 D0 H1 F0 ; define tool 0 G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C ; Custom settings are not defined ; Miscellaneous M501 ; load saved parameters from non-volatile memory
I hope this helps, I have commented out the other fans I originally planned to use, going one step at a time and also realising the limitations
-
I hope this is clear enough I'm not great with paint
-
@ce72 How are the two three-pin jumpers above OUT4 to OUT9 set? These control the voltage to each bank of OUT connectors. The E3D fan needs 24V. Do you have the 12V or 24V version of the CPAP fan controller? The fan needs to be supplied with that voltage continuously. The fan controller also says it needs a "Input 0-5V DC signal to change motor speed", so 0V to 5V variable, not PWM.
Ian
-
@ce72
I don't think the way you have the VSR wired is correct. Looking at the aliexpress listing, the VSR accepts a 0-5v analogue control signal to set the fan speed. RRF provides PWM signals which won't work. You'll need something like a PWM to analogue converter (which is the same way I control my CNC spindle). https://www.amazon.co.uk/Voltage-Converter-Analog-0-100-2KHZ-20KHZ/dp/B07SZ8JYLTThe E3D fan wiring however looks correct. It is worth checking how you have the jumper set just above OUT4 (the Low current output voltage input).
-
@droftarts
Both jumpers set to V Fused, I Originally I had outputs 4-6 set to 12v, but after my first problem with "out7" i changed 4-6 onto the Vfused jumper. -
@jay_s_uk
If anything I thought this could be my problem and where my knoledge run out, would this give me the same solution? https://www.ebay.co.uk/itm/194326627552 . As the one you linked was out of stock. -
@ce72 No, that ones the wrong way. you need PWM to voltage like this https://www.ebay.co.uk/itm/194326642791
-
@jay_s_uk
Thank you for pointing that out, the fun of google search same words wrong placeOn the the off chance and please pardon my ignorance here, but I have got this with another air pump system, would it be what I need?
If not I will happily grab the one you linked to
-
@ce72 looks like an external mosfet for when the onboard ones aren't powerful enough. It won't help you in this instance
-
@jay_s_uk That's fair enough. I have just ordered the one that you linked, The next question is could you tell me how I need to wire it in and configure it
-
@ce72 you'd wire it as you have your fan. The output from the PWM to analog would then go to the VSR for the speed. Then just configure it as a normal fan
-
@jay_s_uk so if I understand you correctly that would be
"out4" jumper in VFused
pin1 = GND:Ground
pin2 = VCC:DC 12V-30V
pin3 = PWM:Positive of PWM input signal
pin4 = GND:Negative of input signal"fan control board"
VSR = VOUT:Output Voltage 0-10V
GND = GND:Output Voltage Ground
PG = Not connectedIs this is for the 24v version of the Cpap?
You also mentioned earlier about the frequency on the E3d fan? how do I determine this value and could this be the reason for it not working at the moment
Thank you for all your help it is very much appreciated, As I feel like I have been banging my head against a brick wall trying to work this out
-
@ce72 "Qnn (optional) PWM frequency in Hz. Valid range: 0-65535, default: 500 for GpOut pins, 250 for fans and heaters"
-
@ce72 no, it would be provide 24v directly to the VSR from your PSU.
connect between V_OUTLC1 (+) and out4 (-) to the input of the PWM to analog converter.
the PWM to analog would then just need to connect the + and - to the VSR 0-5v input and ground. Make sure you set the PWM to analog to 5v mode rather than 10v. -
@jay_s_uk oh fair enough, thank you for pointing that out, I will check the output before fully conecting them up.
I'll post back with the outcome when the convertor arrives
thank you again
-
@ce72 I have received my PWM to voltage converter and I'm have troubles connecting it and getting the right output. I have checked the port on the board with a pigtail and multimeter and I'm getting the right output from there as it is the same as the other ports which are now working.
Here is how I'm trying to connect the converter
port6
V_OUTLC1 red wire to 12-30V on the converter
OUT6(-) black wire to PWM- on the converteryellow & blue going to the multimeter (leave other components out of the way)
I'm only getting 0.2v out
Please advise (I've managed to get the acceleromter working no problem, but I'm getting beaten by a fan )
-
@ce72 what have you connected the PWMIN+ wire on the converter to? And the GND side of the 12-30V power input?
PS - also, which of the 2 drivers on that page linked to in the original post are you using with it: the 12V one or the 24V one?