Analogue to PWM signal converter

Thread Starter

fjulianelli

Joined Jul 5, 2013
2
Hello all,

I'm working on a project and I'm facing a problem on my next task. I need to convert the analogue output of a dual pot device to a PWM signal to be read by an other device. Both signals voltage are 5v and the PWM frequency is 250±20 Hz.
ANALOGUE SIGNAL ----> (ANALOG to PWM CONVERTER DEVICE) ----> PWM SIGNAL

Does anybody knows witch microcontroller could I use to build this converter?

Thanks in advance!
 

Thread Starter

fjulianelli

Joined Jul 5, 2013
2
Wayneh and Dodgydave, thanks for your reply!
Attached here are the source analog signal graphic and the expected PWM signal graphic.
Both signals are 5v DC.

Best Regards.
 

Attachments

Last edited:

donpetru

Joined Nov 14, 2008
185
You have to make an application with a microcontroller so that you can better control the variation of input-output circuit measurements. But to do this you have to precisely calculate input-output transfer function. Then you can make application with a simple microcontroller like: Attiny25, 45 or 85 (choose attiny85 because it has more flash and the price is the same ~~ 1$).
If you can not handle, ask and I'll help you.
 

KL7AJ

Joined Nov 4, 2008
2,229
Hello all,

I'm working on a project and I'm facing a problem on my next task. I need to convert the analogue output of a dual pot device to a PWM signal to be read by an other device. Both signals voltage are 5v and the PWM frequency is 250±20 Hz.
ANALOGUE SIGNAL ----> (ANALOG to PWM CONVERTER DEVICE) ----> PWM SIGNAL

Does anybody knows witch microcontroller could I use to build this converter?

Thanks in advance!
At such a low frequency, you can do this with a few op amps. First generate a 50 % duty cycle square wave. (a 555 timer will work fine. Run this through an integrator to obtain a triangle wave. Combine the triangle wave and the MODULATING analog signal in a simple adder. Take the output of the adder and apply it to a COMPARATOR The output of the comparator will be a PWM signal. This is how some A.M. broadcast transmitters have done this for a couple of decades. :)

Eric
 

donpetru

Joined Nov 14, 2008
185
Even if he chooses analog circuit solution or choose the solution with microcontroller, in both cases must be drawn input-output transfer function (to get a better result).
The disadvantage of analog solution (example, with operational amplifiers) is that: after calculating the transfer function should be explored poles component values ​​function to correct small non-linearity function that will undoubtedly exist. This operation involves many components bonding and delaminate to find more accurate solution, when all this can be replaced by more modern optimization software.
It's his choice, but think carefully.
 
Top