I was wondering if anyone can help with or knows where I can find a random ON/OFF timer circuit that will switch a 6-12v DC relay ON between a random period of say 5 to 20secs and then turn OFF for another random period of say 5 to 15secs.
I'm building an outdoor device and I'm trying to simulate random movement.
--
So, you want it to turn ON for a random interval of not shorter than 5
and not longer than 20 seconds, and then at the end of the ON period
you want it to turn OFF for a random interval of not shorter than 5
and not longer than 15 seconds, and then you want the cycle to repeat
forever?
--- Seems like you only need one. I'm working up a solution with an 8 bit PRSG feeding the broadside load of an 8 bit down-counter. When the counter times out it toggles a dflop wired as a divide-by-two (which turns the relay on and off), advances the PRSG by one state, and drives a 5 second one-shot which loads the counter with the new value from the PRSG and holds the counter off for 5 seconds.
In order to get the two timeouts, I'm using a 555 as an astable with the frequency switched from about 17Hz for the 20s timeout to about
26Hz for the 15s timeout. The dflop will switch the frequency by changing timing caps, since that's easier because they're ground referred.
Those numbers come from 256 counts in 15 seconds when the PRSG loads all ones into the counter for the 20 second timeout and 256 counts in
10 seconds when the PRSG loads all ones into the couner for the 15 second timeout.
I'll post the schematic to abse when I'm done. Hopefully, later on today.
Pending a more elegant solution, you could adapt this circuit I designed for my 'Surf Synthesiser' many years ago:
formatting link
That delivers an output duration (simulating gaps between successive breakers) chosen randomly from 10 preset values from roughly 9s to 20s (determined by the resistor choices). It sounds like you need TWO such
4017 sections, one for ON and one for OFF.
But if I was tackling your task from cold, I'd probably start by playing with a couple of pseudo-random generators made from shift registers.
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.