PWm control using fans
-
Can i use say Fan 0 PWM to control an external phase angle controller using a thermocouple for temperature? The controller draws less then the 1.5A as stated in the documentation.
If so, what code do i require, existing code below:
; thermocouples
M308 S1 P"spi.cs1" Y"thermocouple-max31856"
M308 S2 P"spi.cs2" Y"thermocouple-max31856"
M305 P0 X153 ; set thermocouple to control bed temperature; chamber parameters
M141 H3 ; heater 3 is the chamber heater
M305 P3 X152 ; set thermocouple to chamber temperature; Heaters
;M305 P0 T100000 B4138 R4700 ; Set thermistor + ADC parameters for heater 0
M143 H0 S180 ; Set temperature limit for heater 0 to 150C
M305 P1 X201 ; Set thermistor + ADC parameters for heater 1
M143 H1 S450 ; Set temperature limit for heater 1 to 280C; Fans
;M106 P0 S0.3 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
;M106 P1 S1 I0 F500 H1 T45 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on -
Ditch the M305 commands, they are not used in RRF3. Instead, you should first create sensors using M308, then use M950 to create the heaters and associate them with sensors.