Previous in Forum: Did My Voltage Converter Transformer Burn Out?   Next in Forum: Energy Meter
Close
Close
Close
20 comments
Rate Comments: Nested
Power-User

Join Date: May 2008
Posts: 306
Good Answers: 12

Dimming 'Random' LED's

11/06/2011 5:10 PM

Tis the season! Yay.

OK. I need help. I want to design a small circuit that has 6 x 25mA white LED's. What I want the LED's to do is randomly go from bright to dim (about half intensity - never off). I don't know what other info would be required. Maybe - run off 12V car battery, no micro controllers. I was thinking of a sine generator running 10-15Hz split to say 4 paths. One path could be inverted. The other paths to have a lagging circuit. Would this work? What do I need to generate a slow sine wave? Also, how to design a lagging circuit? Any help or further questions welcome.

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#1

Re: Dimming 'Random' LED's

11/06/2011 8:25 PM

"Any ... further questions" - Yes! - why not use a microcontroller? - it would be a lot easier .

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Power-User

Join Date: May 2008
Posts: 306
Good Answers: 12
#2
In reply to #1

Re: Dimming 'Random' LED's

11/06/2011 9:46 PM

I don't know code

Register to Reply
Active Contributor

Join Date: Jun 2011
Posts: 16
Good Answers: 1
#3

Re: Dimming 'Random' LED's

11/07/2011 10:51 PM

Buy the blinking LEDs. They are available at different colors and blinking rates.

Register to Reply Score 1 for Good Answer
Guru

Join Date: Feb 2006
Posts: 1758
Good Answers: 6
#14
In reply to #3

Re: Dimming 'Random' LED's

11/09/2011 12:07 PM

Blinking rate is fixed and fast.

The requirement is dim for sometime not annoying to sight; that is slowly [probably adjustable in time and brightness]

Register to Reply
Active Contributor

Join Date: Jun 2011
Posts: 16
Good Answers: 1
#18
In reply to #14

Re: Dimming 'Random' LED's

11/10/2011 7:39 AM

Slow blinking/dimming rates (up to 1cycle/5 secs) are available.

Register to Reply
Anonymous Poster #1
#17
In reply to #3

Re: Dimming 'Random' LED's

11/09/2011 4:40 PM

so how does this guy get GA when he did not read the question...OP does NOT want blinking LED's...dimming from bright to partial

Register to Reply
Active Contributor

Join Date: Jun 2011
Posts: 16
Good Answers: 1
#19
In reply to #17

Re: Dimming 'Random' LED's

11/10/2011 8:09 AM

Blinking/Flashing/Dimming LEDs are all in one category...too general in classification.

Register to Reply
Guru

Join Date: May 2006
Location: Placerville, CA (38° 45N, 120° 47'W)
Posts: 6215
Good Answers: 248
#4

Re: Dimming 'Random' LED's

11/08/2011 12:04 AM

When you say 'random'. do you really mean random, or just 'not obviously synchronized'?

It is relatively straightforward to make an oscillator/multivibrator whose output is divided to get an appropriately low output frequency, and use that output to run a sine-wave approximator. I did just that using 4000 series cmos chips about 35 years ago... If you want more info, send me a message...

Dick

__________________
Teaching is a great experience, but there is no better teacher than experience.
Register to Reply
Guru
Popular Science - Weaponology - New Member Safety - ESD - New Member Hobbies - Fishing - New Member

Join Date: Sep 2006
Location: Near Frankfurt am Main, Germany. 50.390866N, 8.884827E
Posts: 17996
Good Answers: 200
#5

Re: Dimming 'Random' LED's

11/08/2011 4:20 AM

The simplest method I know is to have a DC supply, say 12 volts and feed a capacitor with a resistor across + & -, place a LED across each cap, watch out for polarity of both caps and diodes. It should flash if I remember correctly.....

Using different value caps and resistors will change the frequency and the length of blink. If the blink is too short/bright, add another resistor in the leg of the LED.....

I haven't done this for years so I cannot give you values, but you will need Electrolytics......just play around.....

If I was doing it today I would use a PICAXE chip with as many output pins as you want to drive LED chains, transistors for large numbers of LEDs, and base my code on one of the many free example programs that are available.

As the PICAXE uses a simple form of the BASIC program language, you should be up and running within 2 days of investing maybe $15 for EVERYTHING!!! AND having a ball and changing the original program to suit yourself and the family and making yourself BASICally CLEVERER at the same time, a "win win" situation.....

All needed manuals and software are free to download, you need no "programmer" as a simple Com port or USB cable/adapter does the job, but DO buy the one from Rev-Ed as some others do not always work properly....

Go here:-

http://www.rev-ed.co.uk/

http://www.picaxeforum.co.uk/forum.php

http://www.picaxe.com/Getting-Started/PICAXE-Manuals/

__________________
"What others say about you reveals more about them, than it does you." Anon.
Register to Reply Score 1 for Good Answer
Power-User

Join Date: Sep 2009
Location: N38º3', W085º3'
Posts: 326
Good Answers: 19
#6
In reply to #5

Re: Dimming 'Random' LED's

11/08/2011 5:47 AM

Andy,

you made that sound like fun.

for $15 I'll have to give this a try as well.

__________________
There's a theory stating if anybody discovers exactly what the Universe is for & why it is here, it will instantly disappear & be replaced by something even more bizarre & inexplicable. There's another theory stating this has already happened.D Adams
Register to Reply
Guru
Popular Science - Weaponology - New Member Safety - ESD - New Member Hobbies - Fishing - New Member

Join Date: Sep 2006
Location: Near Frankfurt am Main, Germany. 50.390866N, 8.884827E
Posts: 17996
Good Answers: 200
#7
In reply to #6

Re: Dimming 'Random' LED's

11/08/2011 7:53 AM

Plus Postage, but the suppliers are everywhere so it should not be excessive......Look here for your local supplier:-

http://letsmakerobots.com/node/213

__________________
"What others say about you reveals more about them, than it does you." Anon.
Register to Reply
Power-User

Join Date: Sep 2011
Location: Near the New Madrid Fault. USA
Posts: 269
Good Answers: 1
#8
In reply to #5

Re: Dimming 'Random' LED's

11/08/2011 8:33 AM

GA Andy, if you want simple analog a dual 555 timer with the right resistors and caps. will do the trick.

__________________
It's not Rocket Science
Register to Reply
Guru
Popular Science - Weaponology - New Member Safety - ESD - New Member Hobbies - Fishing - New Member

Join Date: Sep 2006
Location: Near Frankfurt am Main, Germany. 50.390866N, 8.884827E
Posts: 17996
Good Answers: 200
#9
In reply to #8

Re: Dimming 'Random' LED's

11/08/2011 12:16 PM

I don't want anything, the OP wants "Random" switching of many LEDs, not all at the same time. I personally cannot tell you how to attach a 555 to either switch many LEDs all at different times, nor how to make it random either.......

Perhaps you would be so kind as to show us all here and now. Thanks in advance. I am always very interested in leaning some new tricks.....

Here is the request of the OP:-

Tis the season! Yay.

OK. I need help. I want to design a small circuit that has 6 x 25mA white LED's. What I want the LED's to do is randomly go from bright to dim (about half intensity - never off). I don't know what other info would be required. Maybe - run off 12V car battery, no micro controllers. I was thinking of a sine generator running 10-15Hz split to say 4 paths. One path could be inverted. The other paths to have a lagging circuit. Would this work? What do I need to generate a slow sine wave? Also, how to design a lagging circuit? Any help or further questions welcome.

Thanks for the valuable input, the OP will be most happy.

__________________
"What others say about you reveals more about them, than it does you." Anon.
Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#12
In reply to #9

Re: Dimming 'Random' LED's

11/08/2011 5:58 PM

Just an idea about 555s (or any other square-wave-producing devices) - if two square waves of slightly different frequencies (say 100Hz and 100.125Hz) were ANDed and used to drive the LEDs, it could give the desired effect (for one LED - inverted output would obviously give 2 LEDs in antiphase). If this is anywhere near practical, 3 dual 555s and a handful of Rs, Cs and FETs could do the biz.

Have a nasty feeling that the oscillators'd lock onto each other, tho', if the circuits were basically analog, and in close proximity.

(Still think a micro of some sort is easier - so don't shout about PICs in response).

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Guru
Popular Science - Weaponology - New Member Safety - ESD - New Member Hobbies - Fishing - New Member

Join Date: Sep 2006
Location: Near Frankfurt am Main, Germany. 50.390866N, 8.884827E
Posts: 17996
Good Answers: 200
#13
In reply to #12

Re: Dimming 'Random' LED's

11/09/2011 3:38 AM

LOL!!

Why can't I "PIC" on you????? HUH????

__________________
"What others say about you reveals more about them, than it does you." Anon.
Register to Reply
Power-User

Join Date: Sep 2011
Location: Near the New Madrid Fault. USA
Posts: 269
Good Answers: 1
#15
In reply to #9

Re: Dimming 'Random' LED's

11/09/2011 1:51 PM
__________________
It's not Rocket Science
Register to Reply
Power-User

Join Date: May 2008
Posts: 306
Good Answers: 12
#10

Re: Dimming 'Random' LED's

11/08/2011 4:08 PM

Good info there..thanks...yes it can be random or a sequence that is not obvious. I want to create small clusters of LED's to have a twinkle effect. I want it to be in the background not something that draws attention with harsh bright to half intensity and back again.

More info I thought about... 'switching' bright to low intensity and rising to bright again with an obvious rise-fall time is what i want. Infinite (until it's switched off) operation. I see that a lot of Christmas lights may have this function all in a small box. I opened one but the IC is a blob of black goo.

Register to Reply
Guru
Popular Science - Weaponology - New Member Safety - ESD - New Member Hobbies - Fishing - New Member

Join Date: Sep 2006
Location: Near Frankfurt am Main, Germany. 50.390866N, 8.884827E
Posts: 17996
Good Answers: 200
#11
In reply to #10

Re: Dimming 'Random' LED's

11/08/2011 4:22 PM

Underneath that goo is a PIC.

__________________
"What others say about you reveals more about them, than it does you." Anon.
Register to Reply
Power-User

Join Date: Sep 2011
Location: Near the New Madrid Fault. USA
Posts: 269
Good Answers: 1
#16
In reply to #10

Re: Dimming 'Random' LED's

11/09/2011 2:18 PM

I think you can fade these a little with large value Caps. Good luck.

__________________
It's not Rocket Science
Register to Reply
Guru

Join Date: Mar 2012
Posts: 2189
Good Answers: 84
#20

Re: Dimming 'Random' LED's

02/09/2013 1:10 AM

Current-steering is one approach. One way might be to drive a multiplexer with a latched counter. Latch the outputs of a high-speed counter by means of a low rep-rate square-wave oscillator (a 555 being ideal). Use a second 555 (or 1/2 of a 556) to clock the counter at high speed, say, 10-100 kHz or so. As the two 555s are running independently, you effectively have a repeating 'dice-roller' that rolls at your low rep-rate. Connect each LED anode to the positive supply rail and each cathode to ground through a suitable current-limiting resistor. Also connect each line of the mux to each cathode, one line per LED, through a resistor and a diode (1N914 or equiv.) with the diode's cathode tied to the LED cathode and the anode to the mux resistor. When the mux line is low, the LED is unaffected. When high, the line biases the LED's cathode at a higher voltage, reducing the current through the device and dimming it thereby. You didn't say if you wanted to dim one LED at a time, btw. If more than one, use the latched outputs of the counter directly. Either way you go, be sure the device you use can source or sink sufficient current. Also, since white LEDs are really blue LEDs at heart, 5-volt TTL levels aren't gonna cut it directly unless your device has open-collector outputs. Or use CMOS if you can find it or use an octal line driver/level shifter or use discrete transistors and DIY one. Voila! Coding With Solder! :-))

Register to Reply
Register to Reply 20 comments

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

Andy Germany (5); Anonymous Poster (1); daffy (2); dkwarner (1); europium (1); Geode Hunter (1); Haajee (1); JohnDG (2); Rockyscience (3); sulat (3)

Previous in Forum: Did My Voltage Converter Transformer Burn Out?   Next in Forum: Energy Meter

Advertisement