WHat is the best way to generate a digital PWM signal? Purpose is control of PWM controlled fan.
I understand that timers/servo library appears buggy right now?
Generate digital PWM (Duty Cycle control)
Re: Generate digital PWM (Duty Cycle control)
You can use GPT and Servo (they are no buggy), but much easier is to use analogWrite to drive one of the four PWM pins
Re: Generate digital PWM (Duty Cycle control)
Analogwrite does not work for me with these fans. They require a true "return to zero" signal and i have not been able to find a way to decrease the pwm frequency properly to acheive this. AnalogWrite for all intents and purposes generates an analog level, not a discernable duty cycle. IN most applications this is a plus. But in this case, it is a minus
Re: Generate digital PWM (Duty Cycle control)
analogWrite generates real return to zero, but at 488 Hz. If the input capacity is to big, your signal will become smoother like real analog.
For your case use FastPins and delays
For your case use FastPins and delays
Re: Generate digital PWM (Duty Cycle control)
Hm, i wonder what would happen with an external pulldown resistor...