led randomizer

  • Thread starter Jason Allen Finnigan
  • Start date
J

Jason Allen Finnigan

Jan 1, 1970
0
alright here's what I am wanting to do I want to put leds of different
colors in the bezel of my computer case I want them to randomly flash and if
possible to be powered by the 5v output on my power supply I am not sure how
to do this if anyone has any ideas could you email me and let me know how I
could do this
thanks finni
 
L

Luhan Monat

Jan 1, 1970
0
Jason said:
alright here's what I am wanting to do I want to put leds of different
colors in the bezel of my computer case I want them to randomly flash and if
possible to be powered by the 5v output on my power supply I am not sure how
to do this if anyone has any ideas could you email me and let me know how I
could do this
thanks finni
PIC16F670 is about $3 and can drive about 22 LED's in any pattern you
want. It runs on 5 volts.
 
R

Rather Play Pinball

Jan 1, 1970
0
I've used "blinking LEDs" in some of my projects. They come in different
colors, and operate on 5VDC. When you apply voltage, they all start to
blink. But no two LEDs blink at the same exact frequency, so the net effect
is a random pattern. I've used these in old computer front-panels (PDP,
VAX, etc.) and the look is really cool. Makes for a great book-shelf
display (better than a lava lamp) and all I had to do was yank out the old
LEDs and replace 'em. Even Radio Hack used to carry these, but you'll get
better pricing at the major outlets.

- - - -
 
M

Mark (UK)

Jan 1, 1970
0
Hiya!

You could use shift registers to general random signals, or use a
counter with a prom/eprom - that way you could program custom patterns,
or just program random data into it.

Yours, Mark.
 
B

Bill Bailley

Jan 1, 1970
0
Jason Allen Finnigan said:
alright here's what I am wanting to do I want to put leds of different
colors in the bezel of my computer case I want them to randomly flash and if
possible to be powered by the 5v output on my power supply I am not sure how
to do this if anyone has any ideas could you email me and let me know how I
could do this
thanks finni

Check the store remainder bins for Xmas tree light controllers. These have
selectable patterns and should do pretty much what you want.
Bill
 
J

Jem Berkes

Jan 1, 1970
0
You could use shift registers to general random signals, or use a
counter with a prom/eprom - that way you could program custom
patterns, or just program random data into it.

Just to point out something about the term 'random'... it's going to be
pretty hard to actually generate a truly random sequence. But in a digital
circuit, you can use a shift register with various feedback (throw in some
kinds of XORs and other funky things) to generate a sequence that appears
random.

To get truly random, you'd have to tap into thermal effects or noise.
That's not worth the effort; it's better to go digital with a convoluted
sequence that appears random.
 
D

Dave

Jan 1, 1970
0
Jason Allen said:
alright here's what I am wanting to do I want to put leds of different
colors in the bezel of my computer case I want them to randomly flash and if
possible to be powered by the 5v output on my power supply I am not sure how
to do this if anyone has any ideas could you email me and let me know how I
could do this
thanks finni
http://quozl.netrek.org/flasher/
 
W

Wouter van Ooijen

Jan 1, 1970
0
alright here's what I am wanting to do I want to put leds of different
colors in the bezel of my computer case I want them to randomly flash and if
possible to be powered by the 5v output on my power supply I am not sure how
to do this if anyone has any ideas could you email me and let me know how I
could do this

http://www.voti.nl/shop/products.html#K-KITT-1
(sorry for the slow page)

This is a kitt-display, but besides the classic kitt pattern it can
show a lot of other patterns, including random. Of course it uses a
LFSR for that, implemented in the PIC.
Wouter van Ooijen

-- ------------------------------------
http://www.voti.nl
PICmicro chips, programmers, consulting
 
T

Terry Pinnell

Jan 1, 1970
0
Jason Allen Finnigan said:
alright here's what I am wanting to do I want to put leds of different
colors in the bezel of my computer case I want them to randomly flash and if
possible to be powered by the 5v output on my power supply I am not sure how
to do this if anyone has any ideas could you email me and let me know how I
could do this
thanks finni

i built a circuit to do this about 20 years ago and will try to find
its schematic when i have time later today but right now i recall it
used to appear entirely random but my priority first is to go out
shopping for a few more packs of periods
 
B

Bob Masta

Jan 1, 1970
0
Just to point out something about the term 'random'... it's going to be
pretty hard to actually generate a truly random sequence. But in a digital
circuit, you can use a shift register with various feedback (throw in some
kinds of XORs and other funky things) to generate a sequence that appears
random.

To get truly random, you'd have to tap into thermal effects or noise.
That's not worth the effort; it's better to go digital with a convoluted
sequence that appears random.


Actually, it's pretty simple to get a true random source.
A reversed-biased transistor junction makes a good
white noise generator. Put about 100K from the collector
of an NPN to +9V or more, and ground the base. Take
the output from the collector through a capacitor to
block the DC, and use it to trigger a Schmitt trigger
or comparator.

This will give a random pulse pattern, but it will be
at a fairly high rate... too fast for LEDs. And if you
simply try to divide it down with flip-flops, it will come
closer and closer to a square wave the more stages
you use. You would need additional circuitry to get
random pulses at slow rates, so it might be simpler to
use the shift register pseudo-random approach with
a slow clock in the first place.



Bob Masta
dqatechATdaqartaDOTcom

D A Q A R T A
Data AcQuisition And Real-Time Analysis
www.daqarta.com
 
J

John Woodgate

Jan 1, 1970
0
I read in sci.electronics.design that Bob Masta
Actually, it's pretty simple to get a true random source.
A reversed-biased transistor junction makes a good
white noise generator. Put about 100K from the collector
of an NPN to +9V or more, and ground the base. Take
the output from the collector through a capacitor to
block the DC, and use it to trigger a Schmitt trigger
or comparator.

The E-B junction is more usually used.
This will give a random pulse pattern, but it will be
at a fairly high rate... too fast for LEDs.

Just severely low-pass filter the noise signal from the transistor. You
lose a lot of signal level but an op-amp will make that up, either
before or after the filter, or both.
 
T

Terry Pinnell

Jan 1, 1970
0
Terry Pinnell said:
i built a circuit to do this about 20 years ago and will try to find
its schematic when i have time later today but right now i recall it
used to appear entirely random but my priority first is to go out
shopping for a few more packs of periods

Well, I found the full stops, but not the circuit. Best I can do is a
description.

A low frequency astable with a pot to vary its period typically has a
low of 10 ms and high 200mS. After inversion/buffering, each low gates
a TTL HF oscillator (about 24 MHz). Output from that in turn goes to 6
cascaded TTL flip-flops (binary dividers). So during the 10 mS low
time, about 24*.01*10^6 pulses are counted by the dividers. Q1 on
average changes about 120,000 times, Q2 60,000...and Q6 4,000 times.
In practice there is a random variation in the successive periods of
the astable, so the combination of 6 Q outputs effectively changes at
random, freezing when oscillation stops, then resuming again a short
time later. These drive coloured lamps via transistors.

Note that during oscillation the divider outputs are still changing,
but the time is so short this is not visible.

Additional divider outputs could be added, of course.

I also added a timer operated by a push button, so that instead of
constantly changing, the lamps changed to a new pattern only when
button was pressed. (It was a novelty toy for one of my two sons.)
 
M

Mikael Ejberg Pedersen

Jan 1, 1970
0
alright here's what I am wanting to do I want to put leds of different
colors in the bezel of my computer case I want them to randomly flash

A possibility is to use a microcontroller of some sort. It won't be
truly random, but for this purpose it doesn't matter.

You could add a fading effect to the light for that extra cool look. I
have made a program for an AVR, that is able to control up to 16 LEDs
with fading and all. I originally wrote it for a small indoor water
fountain, I've made, but I know of several people that are using it
for casemodding purposes.
Take a look at the videos on my page for a taste of the fading effect:
http://www.ejberg.dk/ledfade2/

It doesn't do random right now, but I have thought of implementing it
some time.
 
W

Watson A.Name - Watt Sun, Dark Remover

Jan 1, 1970
0
i built a circuit to do this about 20 years ago and will try to find
its schematic when i have time later today but right now i recall it
used to appear entirely random but my priority first is to go out
shopping for a few more packs of periods

Yeah, Terry. I really dislike those who make it difficult to read
their posts. To the point where I don't even want to reply...


--
@@F@r@o@m@@O@r@a@n@g@e@@C@o@u@n@t@y@,@@C@a@l@,@@w@h@e@r@e@@
###Got a Question about ELECTRONICS? Check HERE First:###
http://users.pandora.be/educypedia/electronics/databank.htm
My email address is whitelisted. *All* email sent to it
goes directly to the trash unless you add NOSPAM in the
Subject: line with other stuff. alondra101 <at> hotmail.com
Don't be ripped off by the big book dealers. Go to the URL
that will give you a choice and save you money(up to half).
http://www.everybookstore.com You'll be glad you did!
Just when you thought you had all this figured out, the gov't
changed it: http://physics.nist.gov/cuu/Units/binary.html
@@t@h@e@@a@f@f@l@u@e@n@t@@m@e@e@t@@t@h@e@@E@f@f@l@u@e@n@t@@
 
T

Terry Pinnell

Jan 1, 1970
0
Yeah, Terry. I really dislike those who make it difficult to read
their posts. To the point where I don't even want to reply...

I wonder if poor writing can be correlated with poor manners? My reply
of 6th Jan hasn't so far had any response.
 
H

HaCv

Jan 1, 1970
0
Actually, it's pretty simple to get a true random source.
A reversed-biased transistor junction makes a good
white noise generator. Put about 100K from the collector
of an NPN to +9V or more, and ground the base. Take
the output from the collector through a capacitor to
block the DC, and use it to trigger a Schmitt trigger
or comparator.

This will give a random pulse pattern

then send it to a pic's adc input and take the value of convertion to
drive the leds.... or a 4028 1-10 decoder...
 
Top