I am making a hot wire bender the same as resistance wire or a hot wire cutter. I think it would be better to have very low frequencies to save loss on heat and power with faster switching times with the mosfet so I would start off with 1Hz frequency even. The lowest pwm you can get is 32.5Hz or so I believe by changing a prescaler but I think that is much too fast switching for a heat strip unlike a led light where it would be obvious or not look good my concern is lower heat from switching times on the mosfet. Turning on and off only once per second wont mean too much for a heat strip.
I would like to be able to set a certain duty cycle AKA high for 300 LOW for 700 for example. This should be 30% duty cycle at 1Hz if I am not mistaken. I would then like to use a potentiometer or analogRead to change the duty cycle and frequency also if possible.
Ideally I would like some code almost exactly like the analogInput example. I believe that example has a fixed 50% duty cycle but changes the frequency of the pwm. If I could find a simple example
This would save me from manually changing the blink example times to create fixed duty cycle and frequency and then rewriting the code each time till the temp is right.
So if you cant have both pwm and duty cycle I would like to be able to keep it at 1 second cycles (1HZ) but just change the times for example the on off times would always add up to one second. 300 on 700 off is 30% then turn the pot and the code changes to 400 on 600 off for 40% etc. And then if possible have a variable at the top i can change in case I want to turn it from 400 to 40 on and 60 off etc. or 150 on 350 off If I want to change from one second freq. to 2 per second.