B
Bill
Guest
Does anyone know a good and simple way to have 4 LEDs blink in a random
pattern
pattern
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
-----BEGIN PGP SIGNATURE-----Does anyone know a good and simple way to have 4 LEDs blink in a random
pattern
I have never used a PIC, do you have a Schematic?-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
My preference for a simple way would be to use a PIC microcontroller
(pick your own preferred type here), and put something like a linear
congruential generator on it (see Wikipedia - generating a number
requires just a multiply and an add, if you let M be a power of 2).
Once you generate an 8-bit output, use the upper 4 bits for your LEDs
and throw away the lower 4 bits (the lower bits of a linear
congruential generator have awful randomness). With an appropriate
PIC, you can do this with literally nothing but the chip, a power
supply, the LEDs, and the current-limiting resistors. Something like
the 16F627A/16F628A/16F648A have a built-in oscillator and can run
from 3 to 5.5 volts, so 3 AA batteries would power the whole system.
You can also get the 16LF variant (instead of 16F) which can run down
to 2V, so you could use only 2 batteries. I'm not familiar with the
10F series, but you can probably find a 10F series PIC that'll do the
job just as well, and the 10F series have only 8 pins where the
16F648A has 18, so you'd use a lot less space.
On the other hand, if you've never done any microcontroller work, it's
a big job to get started.
Chris
Bill wrote:
Does anyone know a good and simple way to have 4 LEDs blink in a random
pattern
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: GnuPT 2.7.2
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEpV5U6ZGQ8LKA8nwRAsImAKCW85gdinFiqOYMKAY5EhWi79aFSQCg2hmQ
lJudkoQiFCsaV/+3sVF81cQ=
=7fyc
-----END PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)I have never used a PIC, do you have a Schematic?
-----BEGIN PGP SIGNATURE-----
---Does anyone know a good and simple way to have 4 LEDs blink in a random
pattern
cripes, why have the guys spend hundreds of dollars in development tools for-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
My preference for a simple way would be to use a PIC microcontroller
(pick your own preferred type here), and put something like a linear
-----BEGIN PGP SIGNATURE-----"Chris Head" <chris2k01@hotmail.com> wrote in message
news7dpg.85747$I61.65769@clgrps13...
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
My preference for a simple way would be to use a PIC microcontroller
(pick your own preferred type here), and put something like a linear
cripes, why have the guys spend hundreds of dollars in development
tools for
a single application.
simple solution, get 4 blinking LEDs, wire them in parallel. after an hour
they'll be random enough.
be low enough that it doesn't look like a blur to the eye?Does anyone know a good and simple way to have 4 LEDs blink in a random
pattern
I need some parameters. How random? Is the frequency of LED flashing to