Cofigure heater1 as fan output...
-
Hi,
i want to use the heater1 output on my Duet Wifi as a fan output for my watercooling system. Unforunatly i am not able to measure any voltage on the connectors.
My config:
; Heaters M308 S0 P"bedtemp" Y"thermistor" T100000 B3950 ; configure sensor 0 as thermistor on pin bedtemp M950 H0 C"bedheat" T0 ; create bed heater output on bedheat and map it to sensor 0 M307 H0 R0.362 C386.0 D3.93 S1.00 V24.0 ; disable bang-bang mode for the bed heater and set PWM limit M140 H0 ; map heated bed to heater 0 M143 H0 S160 ; set temperature limit for heater 0 to 160C M308 S1 P"e0temp" Y"thermistor" T4606017 B5848 C5.548428e-8 R4700 H0 L0 ; configure sensor 1 as thermistor on pin e0temp M950 H1 C"e0heat" T1 ; create nozzle heater output on e0heat and map it to sensor 1 M307 H1 B0 S1.00 ; disable bang-bang mode for heater and set PWM limit M143 H1 S400 ; set temperature limit for heater 1 to 400C M950 H2 C"nil" ; disable heater 2 and free up the associated pin ; Fans M950 F0 C"fan1" Q500 ; create fan 0 on pin e1heat and set its frequency M106 P0 S0 H-1 C"Bauteilkühlung" ; set fan 0 value. Thermostatic control is turned off M950 F1 C"e1heat" Q500 ; create fan 1 on pin fan1 and set its frequency M106 P1 S255 H0 T45 ; set fan 1 value. Thermostatic control is turned on M950 F2 C"fan2" Q500 ; create LED on pin fan1 and set its frequency M106 P2 S0 H-1 C"LED" ; set LED value. Thermostatic control is turned off
For testing the fan is linked to the bed. The printer isn t finish yet...
I hope you can find my mistake.
-
Can you confirm your firmware version? M115 to check.
Can you send M98 P"config.g" to check for any config errors?
Can you try M106 P1 H-1 S1 to check if it will turn on manually?
-
@phaedrux My firmware version is 3.2.2 . M98 do not report any errors.
When turn on the fan manually i can measure a different voltage:
off:0,32V
on:0,55VSo at least something is happen, but I would expect 24V.
When i remap the fan to the fan0 output i get 24V there.
-
@luk14 the pins reference here https://duet3d.dozuki.com/Wiki/RepRapFirmware_3_overview#Section_Pin_names_for_Duet_2_WiFi_Ethernet says
Some pins (primarily heater pins) have an inversion between the processor and the corresponding output, RRF3 will automatically allow for this inversion. These pins are marked with a * after the pin name in the list below.
...
Duet 2 and DueX heater outputsbedheat *
e0heat *
e1heat *My guess is that you need to invert the pin, ie try
M950 F1 C"!e1heat" Q500
.If the above doesn’t work, can you test e1heat configured as a heater?
Remember that all PWM pin pairs are switched by the MOSFET on the negative side, so the load (eg fan or heater) is before the MOSFET; the positive pin will always be VIN voltage, in the case of a heater.
Ian
-
@droftarts Thank you! Now everything works fine...