Previous in Forum: Ever try a/c motor to drive a car?   Next in Forum: Rotor Lock (VSD-Cegelec)
Close
Close
Close
6 comments
Rate Comments: Nested
Participant

Join Date: Jul 2008
Posts: 2

How to Generate Pulse Width Modulation?

07/31/2008 1:47 AM

I have tried to use 2 arbitrary function generators to generate a sine and triangular waves respectively. Can get a pulse width modulation (pwm) after input both waves to a comparator.

Used 2 XR-2206 function generator chips to generate a similar sine and triangular waves as that of the arbitrary function generators.

However, the output pwm produced is not the same as those produced from those generated from the arbitrary function generators.

Any idea why is it so? Did I miss out anything?
Thanks.

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#1

Re: How to generate pulse width modulation?

07/31/2008 2:43 AM

What are you trying to acheive and why...
If this is purely educational you will get more value from playing with simple CMOS inverters to make oscillators and PWM circuits.
Using 2 function generators seems like using a sledge hammer to crack a nut and will probably teach you little.

Search the web for cmos oscillator pwm and such like.

Del

__________________
health warning: These posts may contain traces of nut.
Register to Reply
Power-User

Join Date: Jan 2006
Posts: 377
Good Answers: 2
#5
In reply to #1

Re: How to generate pulse width modulation?

08/01/2008 7:02 PM

I do almost everything this way and I love how easy it is to apply simulations to real circuits and visa versa. I have used an SG3525 IC, but now I have found that I can get decently balanced push-pull MOSFET drive just using the 74C14 CMOS chip running two interlinked oscillators in a way similar to the famous 2 transistor oscillator.

Register to Reply
Participant

Join Date: Jul 2008
Posts: 2
#2

Re: How to generate pulse width modulation?

07/31/2008 4:29 AM

It is for educational purpose, working on generation of pwm.

Trying to use the 2 XR-2206 to replace the 2 function generator and achieving similar pwm outcome.

Register to Reply
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#3
In reply to #2

Re: How to generate pulse width modulation?

07/31/2008 5:05 AM

I don't know how much you are into electronics...but I'd use a hex inverter (cmos) and a few Rs Cs and pot and a trimmer or two maybe a signal diode. Or play with a 555 timer. If you are controlling a motor the pwm will need tweaking to suit your particular motor/gearbox/load. I built a controller for an electric golf trolley, it turned out that the speed range required was from about 70% to 100% the first 69% didn't get it moving!(a quick search found Microchip AN807... an application note for a bi-directional pwm speed controller based on a 555 with 1 other chip and overcurrent sensing too...maybe overcomplex..but it shows that there is plenty of stuff out there).

Often the 'big' chips have incomprehensible data sheets, are too clever for their own good and teach you little. (EG they will show you how to use 1 specific chip rather than a family of chips and discrete components.

A while back I wanted to build an intelligent(ish) battery charger..I got a big fancy all singing all dancing chip...the application notes were hopeless ... In the end I built my own (simple) two stage charger.

Someone may wish to put an alternative view...

Del

__________________
health warning: These posts may contain traces of nut.
Register to Reply
Power-User

Join Date: Jan 2006
Posts: 377
Good Answers: 2
#6
In reply to #3

Re: How to generate pulse width modulation?

08/01/2008 7:10 PM

No disagreement here. It is much easier to add what I need to simple CMOS Schmitt trigger gates and to quite completely understand what is happening than to try to decipher pre-made dedicated-purpose chips.

Register to Reply
Guru
Technical Fields - Architecture - New Member Popular Science - Weaponology - New Member Engineering Fields - Control Engineering - New Member Engineering Fields - Electrical Engineering - New Member Engineering Fields - Electromechanical Engineering - New Member Hobbies - Fishing - New Member Hobbies - Target Shooting - New Member Hobbies - Hunting - New Member

Join Date: Dec 2005
Location: Clemson, South Carolina
Posts: 1722
Good Answers: 18
#4

Re: How to generate pulse width modulation?

07/31/2008 2:39 PM

See if you can find SG2524 (TI part) or similar. I've used this and other PWM IC's, and I recall that at least one data sheet had application notes which explained the operation very clearly. I've also built them from scratch using a handful of IC's. I never got the performance out of a 555 that I had hoped for, and I tricked it out a bunch of different ways, but it is a very versatile little bugger.

If you generate your own triangle wave form (let's say 50 kHz) and you compare its amplitude to a modulating signal (let's say DC to 500 Hz) which ranges in amplitude from 0 to 100%, then the comparator output will have a pulse width linearly related to the modulating signal.

__________________
We have met the enemy and he is us . . . Walt Kelly
Register to Reply
Register to Reply 6 comments
Copy to Clipboard

Users who posted comments:

Bill (1); electrone (2); user-deleted-1105 (2); young18 (1)

Previous in Forum: Ever try a/c motor to drive a car?   Next in Forum: Rotor Lock (VSD-Cegelec)

Advertisement