Open TBAMax opened 8 months ago
What's wrong with default ~7Hz PWM? It works fine with zero-crossing. Also optotriacs only turn on at zero, but turn off happens immediately. Though charge usually carry triac open to the end of half-period. Big heaters are too inert to bother with fine PWM control, there in no noticeable difference between 10 and 100 steps.
What's wrong with default ~7Hz PWM? It works fine with zero-crossing. Also optotriacs only turn on at zero, but turn off happens immediately. Though charge usually carry triac open to the end of half-period. Big heaters are too inert to bother with fine PWM control, there in no noticeable difference between 10 and 100 steps.
Would not want to compromise the hotend temperature regulation because of the heated bed requirements. For hotend the ~7Hz seems way too low, it might not respond adequately for variations in the extrusion rate any more. Wait... what is the default frequency for hotend heaters at the moment... need to check that? So many things to research... I make the list for now about the topics:
All heaters PWM was always ~7Hz. Nope, no way to config it separately yet (i guess because no one ever needed that).
might not respond adequately for variations in the extrusion rate
For that we have MPC now
I don't think MPC changes the PWM base frequency any...just predicts what changes are about to be needed, rather than PID reacting 2-5 seconds later, once the thermistor registers the change.
However, tbf, I don't see that there's likely any inherent need to have a 7hz base-freq. for any non-induction hotends (pretty sure that one uses a separate controller anywise), so maybe we could change the default PWM freq. to 3hz, or just make it user-configurable with a #define PWM_HEATING_FREQUENCY 7
line in configuration_adv.h ?
(By my understanding, a mains-powered bed heater is likely going to change the bed temp faster than a 40-50w cartridge-heater will change the hotend temp anywise).
Yep, it doesn't. Anyway, to propose such changes you must provide real evidence of it's necessity. For now, everything you said is at superstition level.
You'll have to forgive me as someone new to this project, and who hasn't recently done anything with mains dimming. This whole question just seems odd to me.
@TBAMax Re. Number 5. Never have a single piece of software be your only safety mechanism. Infinitely more so if it's not deliberately designed safety critical software. Mains thermostat switches are cheap and will save you. The only reason you don't see them on everything is PTC heaters are self-limiting and ovens are specifically designed with the maximum heater temperature in mind.
@EvilGremlin PWMing a tirac without synchronizing to the zero crossing seems weird to me. Doubly so if you're talking an SSR with zero crossing detection. At that point, the minimum on time is 1/2 wave, but it only triggers if the signal is high at the zero crossing. Which for a PWM is essentially random unless you filter it and are dealing with if the voltage is high enough to trigger the SSR.
tl;dr: A Solid State Relay should probably be treated as a relay, not a dimmer.
PWMing a tirac without synchronizing to the zero crossing seems weird
It would be, were our heaters less inert
It would be, were our heaters less inert
Not sure what you mean in this context.
My guess is that he means they're pretty stable & rather slow-acting ... so any offsets cause by non-synchronization between the PWM frequency & the mains 0-crossings simply gets neutralized by being averaged-out by the thermal inertia of the system.
There is a config option not explicitly spelled out that should be able to achieve what you want -
#if ENABLED(SLOW_PWM_HEATERS) && !defined(MIN_STATE_TIME)
#define MIN_STATE_TIME 16 // MIN_STATE_TIME * 65.5 = time in milliseconds
#endif
If you set the MIN_STATE_TIME along with enabling slow_pwm_heaters you should be able to get the rate youre looking for.
As many platforms share PWM timers for fans and heaters, it most often isnt technically feasible to make it bed only unfortunately.
Is your feature request related to a problem? Please describe.
Solid state relay(SSR) based heater. Brief:
Are you looking for hardware support?
AC powered heated bed heaters. Can be direct from mains, or via transformer (for extra safety).
Describe the feature you want
PID control with 1Hz PWM @ 1Hz for heated bed.
Additional context
No response