76Views3Replies

Author Options:

A circuit that turns on randomly Answered

Hey,

Another quick questions for the more technically minded than me. I need to make a circuit that turns on randomly between 2 set times. i.e. a circuit that will turn on at a different point between 1 and 3 seconds each turn. I'm hooking it up to a keyboard to stimulate it to press a button, but I think I've that bit sorted! It's getting it to turn on and off randomly that's confusing me. So if any of you geniuses can help!? :D

Thanks in advance!

Discussions

0
None
FreshGarbage

8 years ago

Thanks guys, I'll give it a stab!

0
None
Goodhart

8 years ago

one way to "randomize" something is to sense something in the environment that occurs randomly. People walking by, fluctuations in nearby radio signals, etc. Once you have the occurrance, you can find a way to sense it changing, or sense it "being at a certain point" or frequency, and go from there.

0
None
steveastrouk

8 years ago

TRULY random is actually quite hard to do, but most computers can implement a pseudo-random number generator, with some additional hardware, here is an example that uses an arduino to do true RNG. It uses "avalanche noise" made in diodes that are breaking down to provide the basic noisiness that the RNG needs.

Steve