I want to make a pwm generator with variable frequency. I notice that the capacitor is charged through R1, but the discharge? I don't know with what formula the duty cycle can be calculated in this case. Thanks!
Attachments
-
38.1 KB Views: 27
The duty cycle is very close to the ratio of resistances on each side of the potentiometer's wiper.Hello,
Have a look at page 5 (fig 6) and page 8 of the following application note.
Bertus
Why variable frequency?I want to make a pwm generator with variable frequency.
PThe duty cycle is very close to the ratio of resistances on each side of the potentiometer's wiper.
Why would you need a variable frequency PWM? A research project or a personal interest? Something else. I don't see a practical use.
personal projectWhy variable frequency?
Normally you want PWM with a more or less constant frequency with a variable duty-cycle, which is what the typical 555 PWM circuit does.
If you give cryptic answers to my questions, then you get none from me.personal project
Sorry. It’s for a personal project. I would like to know if the capacitor is discharged only by potentiometer or not. I encountered problems regarding the duty cycle obtained on the oscilloscope and the one obtained by calculation.If you give cryptic answers to my questions, then you get none from me.![]()
Thanks! now what is the charging path if R1 is no more?I can certainly understand why.
You have two charging paths and discharging paths.
Remove R1 and the connection on pin 7.
View attachment 226782
Hello. If I select 25% at the potentiometer will the charging be done by 75% of the potentiometer value and by 25% of the potentiometer value will the discharge be performed? Thanks!Hello,
Have a look at the situation when pin 3 is high and when pin 3 is low.
Bertus
Depends on which end of the pot is at 25%. To be exact the charging path is through D3, pin3 and pin2 of the pot.Hello. If I select 25% at the potentiometer will the charging be done by 75% of the potentiometer value and by 25% of the potentiometer value will the discharge be performed? Thanks!