Introduction: Very Simple PWM With 555...Modulate Every Thing

Picture of Very Simple PWM With 555...Modulate Every Thing

Note:Any one can ask me for help.Don't comment me on my spelling and grammar.......Because my mother language isn't english.OK LETS GO

and also plz plz rate my instructable well



Hi every one.Today i'll show you how to make a PWM(pulse width modulation) out of a very famous chip 555(lm,ne any one will do) with some other parts offcourse.This is really simple and it is very handy if you want to control your leds,light bulb,servo motor or dc motor(brushless also works).
My pwm can only change the duty cyle from 10% to 90% it cant do nothing more!

Step 1: What Is PWM

Pulse-width modulation (PWM) of a signal or power source involves the modulation of its duty cycle, to either convey information over a communications channel or control the amount of power sent to a load.The simplest way to generate a PWM signal is the intersective method, which requires only a sawtooth or a triangle waveform (easily generated using a simple oscillator) and a comparator. When the value of the reference signal (the green sine wave in figure 2) is more than the modulation waveform (blue), the PWM signal (magenta) is in the high state, otherwise it is in the low state.But in my pwm I will not use comparator.

Step 2: Types of Pwm

Picture of Types of Pwm

Three types of pulse-width modulation (PWM) are possible:

1. The pulse center may be fixed in the center of the time window and both edges of the pulse moved to compress or expand the width.
2. The lead edge can be held at the lead edge of the window and the tail edge modulated.
3. The tail edge can be fixed and the lead edge modulated.


Three types of PWM signals (blue): leading edge modulation (top), trailing edge modulation (middle) and centered pulses (both edges are modulated, bottom). The green lines are the sawtooth signals used to generate the PWM waveforms using the intersective method.

Step 3: How Can PWM Help Us???

Power delivery:

PWM can be used to reduce the total amount of power delivered to a load without losses normally incurred when a power source is limited by resistive means. This is because the average power delivered is proportional to the modulation duty cycle. With a sufficiently high modulation rate, passive electronic filters can be used to smooth the pulse train and recover an average analog waveform.

High frequency PWM power control systems are easily realisable with semiconductor switches. The discrete on/off states of the modulation are used to control the state of the switch(es) which correspondingly control the voltage across or current through the load. The major advantage of this system is the switches are either off and not conducting any current, or on and have (ideally) no voltage drop across them. The product of the current and the voltage at any given time defines the power dissipated by the switch, thus (ideally) no power is dissipated by the switch. Realistically, semiconductor switches such as MOSFETs or BJTs are non-ideal switches, but high efficiency controllers can still be built.

PWM is also often used to control the supply of electrical power to another device such as in speed control of electric motors, volume control of Class D audio amplifiers or brightness control of light sources and many other power electronics applications. For example, light dimmers for home use employ a specific type of PWM control. Home use light dimmers typically include electronic circuitry which suppresses current flow during defined portions of each cycle of the AC line voltage. Adjusting the brightness of light emitted by a light source is then merely a matter of setting at what voltage (or phase) in the AC cycle the dimmer begins to provide electrical current to the light source (e.g. by using an electronic switch such as a triac). In this case the PWM duty cycle is defined by the frequency of the AC line voltage (50 Hz or 60 Hz depending on the country). These rather simple types of dimmers can be effectively used with inert (or relatively slow reacting) light sources such as incandescent lamps, for example, for which the additional modulation in supplied electrical energy which is caused by the dimmer causes only negligible additional fluctuations in the emitted light. Some other types of light sources such as light-emitting diodes (LEDs), however, turn on and off extremely rapidly and would perceivably flicker if supplied with low frequency drive voltages. Perceivable flicker effects from such rapid response light sources can be reduced by increasing the PWM frequency. If the light fluctuations are sufficiently rapid, the human visual system can no longer resolve them and the eye perceives the time average intensity without flicker (see flicker fusion threshold).


Voltage regulation:

PWM is also used in efficient voltage regulators. By switching voltage to the load with the appropriate duty cycle, the output will approximate a voltage at the desired level. The switching noise is usually filtered with an inductor and a capacitor.

One method measures the output voltage. When it is lower than the desired voltage, it turns on the switch. When the output voltage is above the desired voltage, it turns off the switch.

Variable-speed fan controllers for computers usually use PWM, as it is far more efficient when compared to a potentiometer.



Audio effects and amplification:

PWM is sometimes used in sound synthesis, in particular subtractive synthesis, as it gives a sound effect similar to chorus or slightly detuned oscillators played together. (In fact, PWM is equivalent to the difference of two sawtooth waves. [1]) The ratio between the high and low level is typically modulated with a low frequency oscillator, or LFO.

A new class of audio amplifiers based on the PWM principle is becoming popular. Called "Class-D amplifiers", these amplifiers produce a PWM equivalent of the analog input signal which is fed to the loudspeaker via a suitable filter network to block the carrier and recover the original audio. These amplifiers are characterized by very good efficiency figures (e 90%) and compact size/light weight for large power outputs.

Historically, a crude form of PWM has been used to play back PCM digital sound on the PC speaker, which is only capable of outputting two sound levels. By carefully timing the duration of the pulses, and by relying on the speaker's physical filtering properties (limited frequency response, self-inductance, etc.) it was possible to obtain an approximate playback of mono PCM samples, although at a very low quality, and with greatly varying results between implementations.

In more recent times, the Direct Stream Digital sound encoding method was introduced, which uses a generalized form of pulse-width modulation called pulse density modulation, at a high enough sampling rate (typically in the order of MHz) to cover the whole acoustic frequencies range with sufficient fidelity. This method is used in the SACD format, and reproduction of the encoded audio signal is essentially similar to the method used in class-D amplifiers.

Speaker:Using pwm it is possible to modulate arc(plasma) and if it is in the hearing range,it can be used as a speaker.Such speaker are used in Hi-Fi sound system as tweeter

COOLLLL right?

Step 4: Thing You Will Need

Picture of Thing You Will Need

because it's a simple one chip circuit you won't need lots of part

1.NE555,LM555 or 7555(cmos)
2.two diodes 1n4148 is recomended but you can also use 1n40xx series diodes
3.100k pot(volume control pots are good for this circuit)
4.100nf green cap
5.220pf ceramic cap
6.breadbord
7.power transistor
Easy right?

Step 5: Building It $$$$

Picture of Building It $$$$

Just follow the diagram and put all parts on the breadboard.Recheck every thing twice before you power it up.if you want to drive efficiently and control the brightness of a light source or a motor you can only put a power transistor on it out put but if you only want drive a light source or a motor efficiently then put a higer rating cap 2200uf is recomended.If put this cap and drive a motor on 40% duty cyle then your motor will be 60% efficient at almost same speed and same torque.Go build it now


there is two video.you can watch how pwm works.and my pwm really works with out any op amp
1. u can see the fan starts to spin 1/2 sec then is starts to spin on 90 % duty cycle
2.u can see the leds blinks like the blinker of cars the it is on 80% duty cycle

P.S:plz plz rate this instructable with higher rating.I'm only 15 years old.Good-bye


my next instructable will be a arc speaker with pwm

Comments

EricN121 (author)2017-11-27

Good job son! What magazine was it and what issue? I'd like to see the article!

justjohnny86 (author)2017-04-21

I don't care if you're 15 or 50, plagiarism is uncool. You need to cite your source(s), young man.

PellumB (author)justjohnny862017-10-03

it's not plagiarism! It's information; its not your fault either rather; professor's at many universities talk a lot of nonsense as if they were the inventors of things; they good at talking but hardly do any thing!! The instruction above is for education purposes only... remember!!! & he is not trying to sell you stuff! "So called purists are very keen to spread this idea of plagiarism and try to poison brains whilst they base all their rubbish theory on the work of others & why not student loans who have to furk out large sums of money for the fat cows at "Universities" (money making schemes in broad day light)...( hope people don't get the amp with everyone and heat the ceiling as it may come down!)

JayJ57 (author)2017-08-05

Hey Shams

Which book are you using?

GeorgeT118 (author)2017-02-14

Where did you get the picture in step 5?

EzraH2 (author)2017-02-07

perfect!

cmxdiver (author)2017-01-25

I'd check your source circuit diagram again. The 555 data sheet states that pin 5 be connected to GND where the diagram in your post has it connected to Vcc. also it has not taken into consideration pin 7. Good work though.

Mjtrinihobby (author)2017-01-09

Well done!

thekraftyrhino (author)2014-04-03

I am looking for a circuit to drive an IGBT or MosFet. The goal is to regulate a battery 3-4.2 volt input 0-100%. @ full charge it must handle 150 watts output @ 100% on time. Additionally I would like the control to be push button as opposed to a variable resistor. with a digital % power led display. Is this to complicated?

shams (author)thekraftyrhino2014-04-05

I dont get it....what kinds of batteries are you trying to use? Cause i dont think you will be able to get 150watt of output from a typical battery which would supply 3-4volt

DakLak (author)shams2016-12-08

Warehouse tug-motor fork lifts have 2 VDC batteries and they output 50-100Amps!

thekraftyrhino (author)shams2014-04-06

Not typical they are Turnigy 60amp 160 amp burst rated output LiPo. IT is 3.7 volts (4.2 hot off charge) we currently use it wired thru a solid state relay. trying to explore moving to a 2s battery that has higher compacity. making the device Variable from 3-6 volts with PWM MosFet or IGBT is our mission. I am able to use your 555 to cut cycle time to our desired area but we want more control and without the dial rheostat.

yaly (author)2015-02-07

What's its output frequency please? I need something more than 20 Khz preferably 40 Khz

DakLak (author)yaly2016-12-08

Why the speed range?

My daylight running lights operate at 4 Hz (four flashes per second) and the highest I use, at night, is 20kHz.

ryan.m.jensen.9 (author)2015-02-10

Can you show me how to build a PWM that can take 110V DC at 15A? For a go kart.

DakLak (author)ryan.m.jensen.92016-12-08

If you search the EDN web site, and others, and look under 'electric bikes' and 'electric wheelchairs' you will find plenty of ideas.

One site, from Australia, has a powered skate board (or whatever they are called) and has a complete D-I-Y 3-part articles.

shams (author)2014-03-10

ArunR29 (author)shams2016-01-09

Hi shams, can i use the buck converter(LM2596) as a pwm?
Led spot lights on my motocycle flickering when its engine is on . In my mototorcycle its a 12v 9amp battery. Pls replay. Thanks.

DakLak (author)ArunR292016-12-08

I have a Kymco - 100% LED. My build.

You have to remember that a battery's voltage can vary under normal conditions between 11-16 VDC depending upon engine speed. The voltage is even lower under start conditions.

A typical 3-pin regulator has about a 2V drop between input and output - so the output will vary between 9-15VDC.

Likely you have LEDs in series, Therefore, rearranging the series combinations to reduce the number of series LEDs will make them brighter (don't forget to make adjustments in the supply circuits) and your 'hog' will always supply sufficient current to drive the LEDs.

I also picked up the power for my running light spots from where the generator output is fed to the battery. Be careful if you mess with the generator connections - one connection on modern machines is dedicated to the ignition feed.

BTW, modern cars with super-bright LEDs cheat, often they are using a buck-boost power source and the LEDs are running as high as 60 Volts!

Drive safe.

dennisg8 (author)2016-11-01

Is there a better explanation somewhere. The diagram of the 555, doesn't line up with the real chip, so is confusing as hell to 99 out of 100 people!!!!! Then, you don't use the standard symbol for a potentiometer. Where is your pot? Then, no simple summary for beginners: of what capacitor goes where: between what pin and which battery poll...Also, a more flashlightaholics know the 555 should be controlling one amc7135 (10 cent chip), which should regulate a newer 225 lumen per watt Souel white led, or a 202 lpw Cree xp-l v6 led. The leds you choose are 20 lumen per watt, and aren't current constant, independent of the battery voltage. The amc is one watt or 340 milliamps. the amc needs the 555 for dimming. ...Also, no mention of heatsinking anything. Does the 555 need heatsinking? All leds need heat sinking, as does the amc's need 5 sq cm. Most flashlights run too many amcs and don't heatsink. Also, still chasing the 100 lumen per watt setups, rather than 200 lumen per watt setup. And so there is a need to make our own controllers. Will take more research to figure out the wiring, as this page falls short and needs an update.

2011saaluc (author)2016-10-17

Hello Shams

Thank you.

Your article is good but not very simple. Why? Because the picture in the last page uses symbols which are not understandable for non-expert people.

To be *very* simple, please you draw a diagram only with the name of the parts that you have mentioned on page 4 (1.NE555,LM555 or 7555(cmos), etc.).

Good luck

classif (author)2016-10-06

Would this work with 9v?

MitchHa (author)2016-07-03

Can you help design a simple pwm circuit to very the low side duty cycle in the attached image? Thanks in advance.

raypsi (author)2015-09-20

I made mine using 10nf capacitor and 5k potentiometer using a PNP to drive my soldering iron, to vary the temperature, the PNP runs cool, my iron is rated 50 watts but I run it at 13.8vdc at only 25 watts The soldering iron has a ceramic element IMO it likes PWM.

ddanial014 (author)2015-06-08

Hello.. i want to drive a diode with input of 1.5amp and 12 volt so can i do it using this circuit if so then how much amount of current do i have to give as input

dsamsudin (author)2014-10-22

couldn't download the videos, corrupted

shiv.ram.790 (author)2014-10-09

well can u please tell me in detail that how it can be used to drive a brushless dc motor?

shams (author)shiv.ram.7902014-10-09

You see,there are 3 wires in a typical dc brushless motor. positive,gnd and pwm....you have to connect a stable positive and gnd connection then connect the pwm wire to the output of this circuit

shiv.ram.790 (author)shams2014-10-09

Are you sure it will really work? Because to run a bldc motor, you must need to find the position of the motor. Then you have energize the coils based on that location by using sensors or without sensors.

Have you really tested it in a brushless motor?If so can you please post me the circuit? Thanks..

shams (author)shiv.ram.7902014-10-10

Yeah I am sure,if I wasn't sure I would'nt have said it in the first palce !Those circuits are integrated in almost every BLDC motor.The circuit analyses the width of the given pulse and changes the speed of the motor.You can try is too if you have a BLDC motor (cpu fan,pc exhaust fan,rc bldc motors etc).


you can also control a servo with pwm the same way

shiv.ram.790 (author)shams2014-10-11

Okay got it. So I need to connect my bldc motor and ESC with this circuit to control it. Am I right?

selvam12345 (author)2014-03-10

Hi Dilshan, I am building a battery powered LED torch with 4X1.2V 1200mA batteries, and 3X3W LEDs I am trying hard to find a driver which could do the job of connecting them together

the LEDs I have are,
LED, HIGH POWER, 5000K, 70CRI, 275LM
Series: LUXEON TX
LED Colour: White
Luminous Flux @ Test: 369lm
Forward Current @ Test: 1A
Forward Current If Max: 1.2A
Forward Voltage @ Test: 2.86V.

could you please help me what should be the specifications of the driver??

shams (author)selvam123452014-03-10

Dilshan ? Whats that ? And how did you connect your LEDs ?Are they in series or parallel ?
IMO driving high powered LEDs need critically engineered drivers. I will advise you to use LED driver chips or LED driving module ! :)

selvam12345 (author)shams2014-03-10

Sorry about the name being mixed up
I have no idea about whether to connect the LEDs in parallel or series.and yes i understand i should get an LEd driver chip,

The question is what should be the output characteristrics of the chip and can these LEDs can be powered at all by the batteries that I have.

May thanks for the comment though :)

shams (author)selvam123452014-03-10

3x3watt=9watt
4x1.5x1.5=9watt

as you can see you will need a 100% efficient driver which doesnt exist.so you will need higher voltage or higher amp

I will suggest you to hook your LEDs in series as parallel is not as efficient as series

you can use one of these drivers
http://www.ebay.com/itm/50W-Constant-Current-LED-D...

http://www.ebay.com/itm/30W-White-High-Power-LED-L...

http://www.ebay.com/itm/10W-Cool-White-20000K-High...

selvam12345 (author)shams2014-03-12

I have found a couple of drivers, which seem to fit my design of 4X1.2V batteries

the problem here is all these drivers are meant for applications(flahlights) here only one LED is used

now, should i use the one which provides a constant current of 1A (http://dx.com/p/5-mode-led-driver-circuit-board-for-flashlight-dc-3-6-9v-106487#.UyBVtfmSxWY)and connect the LEDs in series

or

should I go for a driver which provides 3A and connect the LEDs in parellel (http://dx.com/p/t6-2500-3000ma-3-mode-regulated-led-driver-circuit-board-for-diy-flashlight-4-5-18v-128269#.UyBWW_mSxWY)

shams (author)selvam123452014-03-12

you cant just hook up leds in parallel cause you will run into the risk of burning out the leds. You will have to connect resistors to each led if really want to conncet them in parallel

shams (author)2014-03-10

plapić (author)2014-01-29

which power transistor did you use??
and where does it go in the schematic??
please respond quickly

shams (author)plapić2014-01-29

ummm tip 32 maybe....but you can use any transistor provided it meets your spec.The base of the transistor is tied to the output of the circuit

leviterande (author)2013-08-05

NIce tutorial, I have a question if you don't mind: I have a 555 connected to a transistor hooked to a small HF transformer . When I change the pulse width manually say from 58% to 80% and keeping the same 25khz frequency, the secondary voltage drops to very very low instead of increasing. I am utterly confused

jackricci (author)2013-01-22

dude you are dominating the electronics game for a 15 year old

shams (author)jackricci2013-01-22

Thnks man !............ i am now 19 :)

IronWill (author)2012-05-24

Good job.
Would you be so kind as to please tell me the title of the textbook you are referencing?
it looks like a really useful book.

jhaneyzz (author)2012-01-09

I think I get it all until it comes to connecting the TIP31. I am trying to dim a 12v lamp. Low voltage bulbs used along walkways.

I tried to connect the power transistor based upon what little I could see in the picture, and I ended up frying the 555.

Could someone help me figure out the correct schematic. It would seem to differ significantly from the "magazine article" diagram, given the picture shows a power transistor as well as a 2200uF cap!

Help!

igorpark (author)jhaneyzz2012-03-23

jhaneyzz,

What kind of power transistor are you using? Is it a FET? I believe the problem you are experiencing is due to high current during the power transistor turn-on.

This is most likely exceeding the drive capabilities of the 555 and is frying the chip.

I believe the solution for you (if you are using a FET) is a proper mosfet driver IC. The PWM signal from the 555 would hook into the driver, and the driver would control your FET.

An additional benefit of dedicated drivers is that a faster on/off transition decreases switching losses, and thus reduces the heat on the FET. I recommend taking a look at Linear Technology parts, as their data sheets are excellent, and their free circuit simulator (LTSpice) is also very good.

This IC: http://www.linear.com/product/LTC4441 Might be close to what you need...

Good luck!

jhaneyzz (author)igorpark2012-04-15

I'm using a TIP32 just like in the picture. This is a standard pop voltage regulator.

But I don't see any guidance in how to place this in the schematic.

boredomandi (author)2011-12-06

you need to control the current not the voltage with leds! check onsemi part NSI45030AT, the data sheet explains it very well. once you have a maximum current then(say 30 mA) use the 555 to change the voltage. and shams your engish is just fine!

camservo (author)2011-11-15

Any suggestion on how to modify this to be used as a dimmer circuit for the backlight on an LED monitor? I've measured the LEDs at 32v. I'm still learning electronics, but I've seen dimmable monitors go for 4000 dollars!

shams (author)camservo2011-11-25

Actually its kind a complicated...because leds on led monitors are in matrix so u cant dimm them without complicated digital circuit....

About This Instructable

332,598views

179favorites

License:

More by shams:How to use a breadboardHow to blink{breathing style} LED$ while you are playin re4/mgs/crysisVery simple PWM with 555...Modulate every thing
Add instructable to: