Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[Moved]: How to Convert Analog Voltage to PWM

Status
Not open for further replies.

farhang_760

Newbie level 6
Joined
Mar 8, 2015
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
107
Hi guys ,

1) I produce variable PWM signal with NE555 By potentiometer (50K Ohm) , I wanna change this potentiometer to Analog voltage (0 - 10v) ,
Is there any way or IC to do this ?:?::bang:

(Ne555 )

2) Is there any idea to get Analog voltage and generate PWM signal ? like any IC or any Circuit and etc.
 

betwixt

Super Moderator
Staff member
Joined
Jul 4, 2009
Messages
15,005
Helped
4,890
Reputation
9,798
Reaction score
4,688
Trophy points
1,393
Location
Aberdyfi, West Wales, UK
Activity points
127,533
Re: How to Convert Analog Voltage to PWM

The classic method is to generate a triangle shaped waveform and feed it to one input of a comparator. Feed the analog voltage to the other input. The output will tell which is higher so raising the analog voltage makes the output appear closer to the 'peaks' of the triangle and lowering it makes it nearer to the valleys in the triangle. The result is a waveform with pulse width proportional to the voltage which is essentially PWM.

Brian.
 

farhang_760

Newbie level 6
Joined
Mar 8, 2015
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
107
Re: How to Convert Analog Voltage to PWM

The classic method is to generate a triangle shaped waveform and feed it to one input of a comparator. Feed the analog voltage to the other input. The output will tell which is higher so raising the analog voltage makes the output appear closer to the 'peaks' of the triangle and lowering it makes it nearer to the valleys in the triangle. The result is a waveform with pulse width proportional to the voltage which is essentially PWM.

Brian.

Hi Brian,
thank you for your fast reply.
but how to generate a triangle shaped waveform?
 

BradtheRad

Super Moderator
Staff member
Joined
Apr 1, 2011
Messages
14,102
Helped
2,798
Reputation
5,600
Reaction score
2,713
Trophy points
1,393
Location
Minneapolis, Minnesota, USA
Activity points
105,184
Re: How to Convert Analog Voltage to PWM

The 555 has an easy way to vary duty cycle, by changing voltage at the 'ctl' pin.
Response may or may not be linear.

 

Warpspeed

Advanced Member level 5
Joined
May 23, 2015
Messages
2,213
Helped
756
Reputation
1,514
Reaction score
734
Trophy points
113
Location
Melbourne, Australia
Activity points
17,766
Its pretty easy to do with a potentiometer:
https://www.dprg.org/tutorials/2005-11a/

A 555 all by itself is not really suitable for doing it with a voltage. Its possible, but it will be very non linear and nort work well at the extremes of duty cycle.

Much better to use a proper PWM chip which generates a fixed frequency linear ramp, and it will have its own voltage comparator.
The results will be much better.
 

schmitt trigger

Advanced Member level 5
Joined
Apr 17, 2013
Messages
2,726
Helped
859
Reputation
1,722
Reaction score
846
Trophy points
1,393
Activity points
18,420
Re: How to Convert Analog Voltage to PWM

Hi Brian,
thank you for your fast reply.
but how to generate a triangle shaped waveform?

You can do it with an unijuction transistor, a low IDSS n-chan JFET, one resistor and a capacitor.
Actually a sawtooth, but it also works to generate the PWM

IMG_1047.JPG
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top