Author Topic: PWN Dimmer with NE555 and Mosfet  (Read 21488 times)

0 Members and 1 Guest are viewing this topic.

Offline ForserTopic starter

  • Contributor
  • Posts: 47
  • Country: se
PWN Dimmer with NE555 and Mosfet
« on: May 30, 2016, 09:39:19 am »
Greetings,

I am planning to make a PWN dimmer based on this schematic


I don't have a IRF530 at home though but i got IRF520, IRF740 and IRF3205.
The LED strip i am going to use is a short one and runs on 12 V and when i measured it draws around 250 mA.

So if i understand the datasheet correctly for IRF520, it would be capable to replace the IRF530 since it supports a Continuous Drain Current of 6.5 A at Tc = 100C and the strip doesn't draw more then 250-300 mA.

Am i correct in my assumptions?
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 22436
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: PWN Dimmer with NE555 and Mosfet
« Reply #1 on: May 30, 2016, 10:03:48 am »
Yes, that would be fine.

Even better, the gate can be connected to pin 3, and no pullup is needed.

I think you'll fine 100nF is more like a blinker or strobe than PWM, so that may need to be smaller, like 10 or 1nF.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 13132
Re: PWN Dimmer with NE555 and Mosfet
« Reply #2 on: May 30, 2016, 10:23:30 am »
You should use a CMOS 555, and if you are using the Discharge pin (7) to drive the MOSFET, the pullup needs to be a *LOT* smaller e.g. 680R, or the MOSFET will spend too much time in the linear region switching on and will tend to overheat if you push the frequency up to get rid of the flicker.  Better to drive it from the Output pin (3) as Tim suggested. 10nF should work for the timing cap.
 

Offline ForserTopic starter

  • Contributor
  • Posts: 47
  • Country: se
Re: PWN Dimmer with NE555 and Mosfet
« Reply #3 on: May 30, 2016, 10:33:55 am »
The 555 i have is a NE555.

The design i found is from Instructables

http://www.instructables.com/id/PWM-dimmer-using-NE555-and-MOSFET-with-DIY-alumini/?ALLSTEPS

So i understand you guys right now, the 100nF on pin 2 / 6 should be 10nF or 1 nF.
The pullup on pin 7 should be 680R rather then 10K?
 
The following users thanked this post: ArisTos

Offline ForserTopic starter

  • Contributor
  • Posts: 47
  • Country: se
Re: PWN Dimmer with NE555 and Mosfet
« Reply #4 on: May 30, 2016, 11:22:13 am »
Just found Dave's PWM Led Dimmer Video.

Except he is using a BD136 instead of a Mosfet like IRF520 and a LMC555CN for the 555, it looks like what you guys has mentioned.

Guess i have to order and wait for the CMOS 555 to arrive before making a PWM Dimmer.
 

Offline Yansi

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: PWN Dimmer with NE555 and Mosfet
« Reply #5 on: May 30, 2016, 11:31:44 am »
No need for CMOS 555.  Works fine even with the bipolar one. Just don't believe every shit from instructables. This is no good source of relevant information. This a site for trolls.

Put the gate on pin3 through a 47ohm resistor.

And tell us please, what load are you going to drive with it.  If it's a motor (or any other inductive load), the PWM frequency need to be high (5+ kHz,  10-20k recommended) and also you will need a fast recovery (or schottky) diode accross the load and adequate circuit layout for that, using enough decoupling so the PWM current ripple would be filtered out enough for the supply. (small RC filter recommended for the 555 supply voltage too, something like few tens of ohms and 100uF cap)
 

Offline ForserTopic starter

  • Contributor
  • Posts: 47
  • Country: se
Re: PWN Dimmer with NE555 and Mosfet
« Reply #6 on: May 30, 2016, 11:37:53 am »
It's a short LED strip which are driven by 12 V and during measurements it was using around 250mA in current.



This seems to be the original schematic that the guy on instructables used.

Which also has the connection for the LED.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 13132
Re: PWN Dimmer with NE555 and Mosfet
« Reply #7 on: May 30, 2016, 11:43:50 am »
The reason to prefer a CMOS 555 is it has a rail-to-rail output, which the bipolar 555s don't have.  This affects the On time and makes it greater than the Off  time with your pot centered.  Also, you have to allow for the input base bias currents, which result in issues with high value timing resistors.   OTOH a bipolar 555 typically has about twice the output drive capability when compared to a CMOS one.

I suggest you try it on a breadboard with the NE555 you have. 

N.B. that circuit is UNSUITABLE for high frequency PWM due to the poor turn-on gate drive.   If you add a NPN emitter follower between the Discharge pin pullup (make it 1K) and the MOSFET gate, with a Schottky diode b-e, cathode to b, ('poor man's' gate driver for open collector outputs), the turn-on will be much faster and the MOSFET should run cool even if you increase  the PWM frequency.   
 

Offline ForserTopic starter

  • Contributor
  • Posts: 47
  • Country: se
Re: PWN Dimmer with NE555 and Mosfet
« Reply #8 on: May 30, 2016, 11:48:16 am »
Have ordered some cmos 555.

Noticed also that I was out of breadboard, should have it by tomorrow or Wednesday.
 

Offline Yansi

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: PWN Dimmer with NE555 and Mosfet
« Reply #9 on: May 30, 2016, 12:13:10 pm »
The reason to prefer a CMOS 555 is it has a rail-to-rail output, which the bipolar 555s don't have.  This affects the On time and makes it greater than the Off  time with your pot centered.  Also, you have to allow for the input base bias currents, which result in issues with high value timing resistors.   OTOH a bipolar 555 typically has about twice the output drive capability when compared to a CMOS one.

I suggest you try it on a breadboard with the NE555 you have. 

N.B. that circuit is UNSUITABLE for high frequency PWM due to the poor turn-on gate drive.   If you add a NPN emitter follower between the Discharge pin pullup (make it 1K) and the MOSFET gate, with a Schottky diode b-e, cathode to b, ('poor man's' gate driver for open collector outputs), the turn-on will be much faster and the MOSFET should run cool even if you increase  the PWM frequency.

Nonsymetricality of the PWM at centered pot is an invalid argument here. Nobody cares if the PWM is few % off at center when dimming LEDs.

What emitter follower? Why at all?  CONNECT THE F*CKING GATE TO PIN 3  >:D. There is a high current capable totempole output stage suitable for driving mosfets.  Not a single reason to use pin 7 with loads of other circuitry to increase the current capability.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 13132
Re: PWN Dimmer with NE555 and Mosfet
« Reply #10 on: May 30, 2016, 12:51:26 pm »
The only reason not to connect both the load and the timing resistor to pin 3, is the load can then disturb the timing. However that isn't an issue for low frequency MOSFET gate drive, so yes, simply use pin 3 as both Tim and my self already said in replisy #2 and #3.   I offered the emitter follower + diode idea for those that insist on driving the load from pin 7.

The other reason to prefer CMOS 555s over bipolar ones is the objectionable shoot-through when a bipolar 555's output switches.  The resulting current spike needs a lot of local decoupling, and if you don't get the decoupling right can cause problems with other circuits on the same supply.  The classic case is two NE555 chips on the same supply with insufficient Vcc decoupling and no Control pin decoupling.  If they are free running at slightly different frequencies (each measured with the other disabled), if both are enabled they will tend to lock together at the higher frequency.
 

Offline ForserTopic starter

  • Contributor
  • Posts: 47
  • Country: se
Re: PWN Dimmer with NE555 and Mosfet
« Reply #11 on: May 30, 2016, 01:06:11 pm »
If Gate is Connected to Pin 3, Where or how does the Potentiometer going to work? Should that also be on Pin 3?
 

Offline Yansi

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: PWN Dimmer with NE555 and Mosfet
« Reply #12 on: May 30, 2016, 01:15:25 pm »
The other reason to prefer CMOS 555s over bipolar ones is the objectionable shoot-through when a bipolar 555's output switches.  The resulting current spike needs a lot of local decoupling, and if you don't get the decoupling right can cause problems with other circuits on the same supply.  The classic case is two NE555 chips on the same supply with insufficient Vcc decoupling and no Control pin decoupling.  If they are free running at slightly different frequencies (each measured with the other disabled), if both are enabled they will tend to lock together at the higher frequency.

Never seen such behavior, nor have I ever heard of such shootthrough problems with the 555 output drivers.  Crossconduction is the usual symptom of complementary output MOS devices.  :P
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 13132
Re: PWN Dimmer with NE555 and Mosfet
« Reply #13 on: May 30, 2016, 01:31:23 pm »
Its a well known & well documented issue. See Philips AN170 NE555 and NE556 applications, page 5, second paragraph of 'GENERAL DESIGN CONSIDERATIONS'.  Also see Q4 & Q6 in the FAQ on page 7.

A spike of over 100mA would not be unusual.

Also see https://www.eevblog.com/forum/projects/arrggghh!-injection-locking-between-halves-of-a-556/
« Last Edit: May 30, 2016, 01:58:05 pm by Ian.M »
 

Offline Yansi

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: PWN Dimmer with NE555 and Mosfet
« Reply #14 on: May 30, 2016, 02:04:19 pm »
That really is interesting now. Maybe I haven't encountered any issues because I've been usually quite thorough with supply decoupling.  Thank you for the appnote.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 13132
Re: PWN Dimmer with NE555 and Mosfet
« Reply #15 on: May 30, 2016, 02:16:01 pm »
Yes.  Those of us who actually RTFM and use appropriate decoupling rarely get bit in the ass by such idiosyncrasies.   I first ran into it personally back in the early 90's trying to get a 555 to clock a Z80 reliably.  The transition glitch was preventing it executing instructions, but the address counter was incrementing!  The cure was to rewire the timer with feedback from pin 3, and drive the Z80 from pin 7 with a 1K pullup + as a precaution, add extra decoupling right at the 555 pins.
 

Offline ForserTopic starter

  • Contributor
  • Posts: 47
  • Country: se
Re: PWN Dimmer with NE555 and Mosfet
« Reply #16 on: May 30, 2016, 04:51:45 pm »
Another part of my wondering is the part where you guys / girls say to use pin 3 rather then pin 7, Is there a reason and how do you guys figure that out?
Read it somewhere? Experimented with glorious magic smoke or lack of it? :)

Since i am a beginner, i want to learn and not just follow a schematic.

Thanks for all the help so far!
 

Offline Audioguru

  • Super Contributor
  • ***
  • Posts: 1507
  • Country: ca
Re: PWN Dimmer with NE555 and Mosfet
« Reply #17 on: May 30, 2016, 04:53:07 pm »
Many Instructables are written by kids who are only 10 years old (no kidding!) and who know nothing about electronics.
I agree that the pin 3 output of a bipolar 555 can drive the gate of the Mosfet much better because the 10k pullup resistor in the Instructable will take all day to charge the high capacitance of the gate.
Intersil shows a 'scope photo of the supply current spike of a bipolar 555 and also explains the need for good supply bypass capacitors.
 

Offline Audioguru

  • Super Contributor
  • ***
  • Posts: 1507
  • Country: ca
Re: PWN Dimmer with NE555 and Mosfet
« Reply #18 on: May 30, 2016, 05:02:49 pm »
Another part of my wondering is the part where you guys / girls say to use pin 3 rather then pin 7, Is there a reason and how do you guys figure that out?
Read it somewhere?

The gate capacitance of a Mosfet is high (look on its datasheet) and needs a fairly high current to charge it quickly. If it charges slowly then the Mosfet spends time being linear and gets hot.
With a 12V supply the 10k pullup resistor has a maximum charging current of only 12V/10k= 1.2mA. The datasheet of the 555 shows that its pin 3 output is rated at 200mA so it can provide plenty of current to quickly charge the gate capacitance of a Mosfet.

The pin 3 output current of a Cmos 555 is rated at only 10mA which might not be enough.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 13132
Re: PWN Dimmer with NE555 and Mosfet
« Reply #19 on: May 30, 2016, 05:12:38 pm »
I knew it was bad, but didn't remember seeing that bit of NE555 bashing!
Its on page 5 of the Intersil ICM7555 datasheet.   Of course they aren't saying what the test conditions are to get a >350mA shoot-through spike in a NE555.  I'd guess it would be at max supply voltage.

Some CMOS 555s are better than others and 10 mA output source/sink sounds like one of the wimpy ones.   The better ones do 40-50mA.   Unfortunately with a capacitive load like a power MOSFET gate, there is no way of slamming it through its transition region quickly without drawing a big current spike.
 

Offline ForserTopic starter

  • Contributor
  • Posts: 47
  • Country: se
Re: PWN Dimmer with NE555 and Mosfet
« Reply #20 on: May 30, 2016, 06:06:48 pm »
I am a bit confused regarding the Pin 3 / Pin 7.

If Gate on Mosfet is connected to Pin 3, then nothing is connected to Pin 7 and where or how will the Potentiometer work since Gate is on Pin 3.
and should i still lower the 100 nF to 10 nF on Pin 2 / 6.

Looking at Dave's 555 hack for his LEDs,

It's close to the one i have been looking at except he is using Pin 7 to drive the BD136.
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 13132
Re: PWN Dimmer with NE555 and Mosfet
« Reply #21 on: May 30, 2016, 06:39:47 pm »
Pin 3 (Output) and pin 7 (Discharge) are controlled by the same internal drive signal (when Reset is pulled high), but pin 7 is open collector (it can only pull its load low) and pin 3 is a Totem pole output (which can drive a load both high and low).   If you stick an external pullup resistor on pin 7 and make sure all loads are small compared to the pullup current, they'll have basically the same waveform.


Dave's version uses a PNP transistor so pin 7 doesn't have to be able to drive the base high.

When driving a MOSFET you need to be able to slam the gate from 0V to >8V or so as fast as possible, which pin 7 cant do so both the timing resistor and gate drive should be from pin 3.  leave pin 7 open circuit.

If it flickers with the original 100nF cap, use a 10nF one instead.
 
The following users thanked this post: Richard Crowley

Offline ForserTopic starter

  • Contributor
  • Posts: 47
  • Country: se
Re: PWN Dimmer with NE555 and Mosfet
« Reply #22 on: May 30, 2016, 07:37:36 pm »
So only remove Pin 7, Connect Pin 3 to Gate on MOSFET, lower 100 nF to 10 nf if it flickers.

Only Question i have if i use a Mosfet and connect Pin 3 to Gate on Mosfet, should the Pontentionmeter still be connected as it ?
 

Offline Ian.M

  • Super Contributor
  • ***
  • Posts: 13132
Re: PWN Dimmer with NE555 and Mosfet
« Reply #23 on: May 30, 2016, 08:06:01 pm »
Yes.  Both pot wiper and gate to pin 3 if you are basing your circuit on a modification of the original schematic you posted.   If the MOSFET heats up quickly, add a 47R resistor between pin 3 and the gate as Yansi suggested.
 

Offline alsetalokin4017

  • Super Contributor
  • ***
  • Posts: 2055
  • Country: us
Re: PWN Dimmer with NE555 and Mosfet
« Reply #24 on: May 30, 2016, 08:20:50 pm »
 :palm:

Use your NE555, no need for the CMOS version _in this application_. Use the schematic below. Note the Pin 3 and Pin 7 connections; Pin 3 is almost always used as the Output from a 555 astable circuit. Use almost any mosfet; I would prefer IRF3205 for this application. Substitute your LED strip plus any needed dropping resistor for the 12v bulb shown in the schematic. The mosfet will not heat up.

Tested and running on my breadboard right now. Provides a pulse width from under 2 percent Hi to about 99 percent Hi at around 215 -230 Hz. Pin 3 output shown at the extremes of the pot setting in the scopeshots below. I used a 50k pot on my breadboard but 10k works fine too but at a higher frequency. 
« Last Edit: May 30, 2016, 08:38:42 pm by alsetalokin4017 »
The easiest person to fool is yourself. -- Richard Feynman
 
The following users thanked this post: edavid, Forser


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf