Author Topic: EEVblog #392 – 555 LED PWM Hack  (Read 39778 times)

0 Members and 1 Guest are viewing this topic.

Offline aluck

  • Regular Contributor
  • *
  • Posts: 242
  • Country: ru
Re: EEVblog #392 – 555 LED PWM Hack
« Reply #25 on: December 01, 2012, 05:30:33 pm »
Wouldn't it be simpler to replace one of the resistors on LM317 with a resistor and a pot connected in series? It will become a nice regulated current source with just a couple of components.
 

Offline T4P

  • Super Contributor
  • ***
  • Posts: 3697
  • Country: sg
    • T4P
Re: EEVblog #392 – 555 LED PWM Hack
« Reply #26 on: December 01, 2012, 06:32:35 pm »
yeah but ... you need a fat pot as well as it having to be at the bottom
 

Offline aluck

  • Regular Contributor
  • *
  • Posts: 242
  • Country: ru
Re: EEVblog #392 – 555 LED PWM Hack
« Reply #27 on: December 01, 2012, 11:17:06 pm »
Put that pot on a long wire... nothing wrong here.

Yes, I know, Dave doesn't want to void the warranty...
 

Offline odokemono

  • Newbie
  • Posts: 1
  • Country: ca
    • Danny's doodads
Re: EEVblog #392 – 555 LED PWM Hack
« Reply #28 on: December 02, 2012, 12:17:27 am »
Nice hack Dave.  I gotta admit I was worried the 317 wouldn't like the pulsing but it behaved fine.

You've convinced me to get a good camera.  Mine has serious auto-brightness issues: https://sites.google.com/site/dannychouinard/Home/atmel-avr-stuff/cheap-led-lamp-micro-controller-upgrade

Video at bottom.

Sort of same hack, different solution.

Fun stuff!
 

Offline EEVblogTopic starter

  • Administrator
  • *****
  • Posts: 37717
  • Country: au
    • EEVblog
Re: EEVblog #392 – 555 LED PWM Hack
« Reply #29 on: December 02, 2012, 02:57:03 am »
You've convinced me to get a good camera.  Mine has serious auto-brightness issues: https://sites.google.com/site/dannychouinard/Home/atmel-avr-stuff/cheap-led-lamp-micro-controller-upgrade

I've never regretted spending $1600 on a decent video camera.

Dave.
 

Offline dentaku

  • Frequent Contributor
  • **
  • Posts: 881
  • Country: ca
Re: EEVblog #392 – 555 LED PWM Hack
« Reply #30 on: March 15, 2013, 02:14:16 am »
Very beginner question...
What's the cap between the 10k pot and ground?
I don't understand the writing and the particular way he wrote it seems like some sort of shorthand or code.
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: EEVblog #392 – 555 LED PWM Hack
« Reply #31 on: March 15, 2013, 02:26:03 am »
That's the timing capacitor. It's the same capacitor as is almost always on pin 2/6 on any 555 implementation. Timing is accomplished by repeatedly charging and discharging it between two thresholds.

0µ1 means 0.1µF. The purpose of writing it that way is that decimal points are easy to lose if written sloppily. It's really common in EE.

Edit: Sorry, misunderstood the question as being two questions. Hope you're not offended that I thought you didn't know its purpose  :)
« Last Edit: March 15, 2013, 02:34:38 am by c4757p »
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline dr_p

  • Frequent Contributor
  • **
  • Posts: 309
  • Country: ro
Re: EEVblog #392 – 555 LED PWM Hack
« Reply #32 on: March 15, 2013, 09:36:57 am »
FYI, the same rationality applies to resistors:
120R = 120 Ohms
0R1 = 0.1 Ohms
2K2 = 2.2Kilo Ohms
6M8 = 6.8Mega Ohms

:)
 

Offline dentaku

  • Frequent Contributor
  • **
  • Posts: 881
  • Country: ca
Re: EEVblog #392 – 555 LED PWM Hack
« Reply #33 on: March 15, 2013, 12:13:28 pm »
That's the timing capacitor. It's the same capacitor as is almost always on pin 2/6 on any 555 implementation. Timing is accomplished by repeatedly charging and discharging it between two thresholds.

0µ1 means 0.1µF. The purpose of writing it that way is that decimal points are easy to lose if written sloppily. It's really common in EE.

Edit: Sorry, misunderstood the question as being two questions. Hope you're not offended that I thought you didn't know its purpose  :)

If I wouldn't have already built another 555 circuit recently I probably wouldn't have known what it was for :)
Thanks for the answer.
I ended up using a tiny 104 capacitor which IS 0.1uF so I guess I figured it out.
 

Offline xenocide702

  • Contributor
  • Posts: 21
Re: EEVblog #392 – 555 LED PWM Hack
« Reply #34 on: March 24, 2013, 10:05:09 pm »
Been meaning to post this for awhile, finally got around to making an account.






Thanks for the help! I got my scope and had this sucker within an hour or two. I happened to have an LED panel out of an old flashlight and some components lying around, so I hacked this thing up. A little hot snot onto the mount and we're good. It's not as much light as I really want, but I'll route a board for an LED ring later. You video really helped, I knew this configuration w/ the 555 existed, I just didn't know much about how it worked.
 

Offline scratchypots

  • Newbie
  • Posts: 1
Re: EEVblog #392 – 555 LED PWM Hack
« Reply #35 on: May 30, 2013, 11:33:16 pm »
I think it would be nice to add a toggle switch to bypass the PWM and revert the mod.  This way you can have maximum lux, or a dimmer adjustable setting as desired.

Thank you Mr. Jones for the great blog!
 

Offline c4757p

  • Super Contributor
  • ***
  • Posts: 7799
  • Country: us
  • adieu
Re: EEVblog #392 – 555 LED PWM Hack
« Reply #36 on: May 30, 2013, 11:37:16 pm »
I think it would be nice to add a toggle switch to bypass the PWM and revert the mod.  This way you can have maximum lux, or a dimmer adjustable setting as desired.

It's been a long time since I saw this video, so I don't remember how it worked out for Dave, but I've used the exact same circuit before and IIRC, at the maximum end of the pot range, the duty cycle becomes too high for either the 555 or the switching transistor (I used a fairly large MOSFET with a high gate charge, though, and couldn't be bothered to figure out the "problem" - I called it a feature), and the load just turns fully on anyway.

Of course, if your pot is too scratchy, you might have trouble slamming it hard up against the end stop for full resistance. I recommend newer ones.
« Last Edit: May 30, 2013, 11:40:22 pm by c4757p »
No longer active here - try the IRC channel if you just can't be without me :)
 

Offline SZA

  • Newbie
  • Posts: 2
Re: EEVblog #392 – 555 LED PWM Hack
« Reply #37 on: October 09, 2013, 03:46:51 am »
'm using a simiar circuit to generate a 50kHz PWM signal , can Any1 please confirm the formula used. And can we replace the 1k with a pot to achiving variable frequency.
 

Offline Ivanko1

  • Contributor
  • Posts: 43
Re: EEVblog #392 – 555 LED PWM Hack
« Reply #38 on: December 24, 2013, 10:51:55 am »
Why bipolar transistor, maybe mosfet will be better?
 

Offline bjcuizon

  • Frequent Contributor
  • **
  • Posts: 284
  • Country: nz
  • RF and Analog Electronics Enthusiast
Re: EEVblog #392 – 555 LED PWM Hack
« Reply #39 on: December 30, 2016, 03:09:27 am »
Hi Dave,

How would you know the output voltage of the LM317 if it is configured to constant current mode?
I already know it has a reference voltage of 1.25V but I want to know its output voltage. Does it depend on the resistor or is it the same as the input voltage?

Thanks.
Don't mess with an Electronics Engineer, it Megahertz!
 

Offline Teza

  • Contributor
  • Posts: 44
  • Country: no
Re: EEVblog #392 – 555 LED PWM Hack
« Reply #40 on: April 20, 2017, 11:33:58 am »
I want to use this circiut with a frequency of 3 kHz, at maximum light.
Having problems to find out how to calculate the needed values of the 1kohm resistor, 10 kohm pot and 0,1uF capasitor.

Anyone that kan assist with some calculation examples please?

I tryed the following, but I don't know if this is correct:



« Last Edit: April 20, 2017, 02:59:08 pm by Teza »
 

Offline vince76

  • Newbie
  • Posts: 4
  • Country: it
Re: EEVblog #392 – 555 LED PWM Hack
« Reply #41 on: November 21, 2021, 10:50:29 am »
hi,
what can cause the brighness of the leds be at maximum either way of the pot? ( the pot itself seems ok )
In the middle is kinda working
thanks
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf