Hi
Some months ago i built the above pwm with independent variable frequency and duty cycle using an Lm339.
It worked a treat.
Some on this forum suggested it could programmed.
I'm a novice when it comes to programming
i gave it a crack using a tutorial from a site (Engineers Garage).
It only varied the frequency , but a good place to start.
I managed to correct a few lines of code to achieve what i wanted. Freq. adjustment 20hz to 20khz.
But the analog pot (100k linear) produced the following:
5v--------20hz
2.5v------40hz
0v--------20khz
I would like it to be more linear.
Does it need more code in the existing program or could this be achieved using a digital pot (in this case 1024 steps)
Some months ago i built the above pwm with independent variable frequency and duty cycle using an Lm339.
It worked a treat.
Some on this forum suggested it could programmed.
I'm a novice when it comes to programming
i gave it a crack using a tutorial from a site (Engineers Garage).
It only varied the frequency , but a good place to start.
I managed to correct a few lines of code to achieve what i wanted. Freq. adjustment 20hz to 20khz.
But the analog pot (100k linear) produced the following:
5v--------20hz
2.5v------40hz
0v--------20khz
I would like it to be more linear.
Does it need more code in the existing program or could this be achieved using a digital pot (in this case 1024 steps)