Halloween - A pair of Curious Eyes in the bushes....
Beau Schwabe
Posts: 6,568
Here is a quickie... Two servo's controlling two sets of LED eyes randomly tilting/pausing/blinking from side to side.
Mount these in the bushes or in a tree where it's dark and hard to see.
On a side note:
Using the RANDOM function I have "seeded" the values so that they would start out differently, but there is no check
to see if the randomized values will eventually synchronize. Aside from checking to see if they are equal and restarting
the program in software, does anyone have a more elegant solution?.... Thus far I have not seen this happen, but I
believe that the potential is there.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Post Edited (Beau Schwabe (Parallax)) : 10/13/2007 6:42:32 AM GMT
Mount these in the bushes or in a tree where it's dark and hard to see.
On a side note:
Using the RANDOM function I have "seeded" the values so that they would start out differently, but there is no check
to see if the randomized values will eventually synchronize. Aside from checking to see if they are equal and restarting
the program in software, does anyone have a more elegant solution?.... Thus far I have not seen this happen, but I
believe that the potential is there.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Post Edited (Beau Schwabe (Parallax)) : 10/13/2007 6:42:32 AM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
I used a RNG recently too. One thing I didn't do but should have, is to occasionally write a value into EEPROM that is read on startup as the new seed value. That would at least ensure a different starting point on subsequent power ups.
Other ways to introduce entropy to create "fresh" seed values would be to do some permutations on any serial input data received, RTC values if you have one connected, etc. Or I guess if you had an ADC chip with some floating input, you could take a group of readings.
http://forums.parallax.com/showthread.php?p=516970
Vern