Re: Random timer!
- From: Baron <baron.nospam@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 03 Jun 2007 12:05:15 +0100
Jasen inscribed thus:
On 2007-06-01, Baron <baron.nospam@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi Jasen, inscribed thus:
On 2007-05-31, Baron <baron.nospam@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
I'm looking for ideas here. I am trying to figure out how to
make a
random interval timer! Something that will trigger an indicator
after a random period of time. Ideally 1 to 15 seconds after a
button is pushed.
have a fast oscilator the becomes a slow oscilator when the button
is pressed. (period of 14 seconds) add a 1 second delay
I like that idea... but how would you implement it ?
I'd probably do it software, but if pressed to do it in hardware
it'd be based around this:
here's the variable-rate bit done using a LM555 tiomer chip,
(it's not perfect one time in 1000 (or so) it'll fire immediately
instead of waiting "randomly" 0-14 seconds but I'm guessing from
your description that's not an issue...
.-------------------------------------------------------------.
| This is an ascii schematic, if the diagram appears garbled |
| try switching to a fixed-pitch font (courier works well) |
| pasting it into notepad works well on ms-windows. |
| or in google groups "view source" (found under options) |
`-------------------------------------------------------------'
Yes I have been caught out by not using fixed pitch fonts before !
500K slow rate
\
/\
.-\/\/\--+--------+--- +5V
| / | |
/ | . . . .|. . . .
\ | . VCC(8) .
/ 1.2M | . .
\ `--RES(4) OUT(3)--------->
| . 555 .
go-fast ----\/\/\-->|-+--------+--TH(6) DIS(7)-----.
10K 1N914 | . . |
+--TR(2) CV(5)-- |
| . . |
| . GND(1) . |
| . . . .|. . . . |
| | |
+--------|-----\/\/\-'
| | 33
===== |
10uF | |
--+--------+-- 0V
+5V on go fast will make it run at about 100Hz - faster than human
reactions.
pur 0V on go fast and the rate is determined by the trimmer at the
top, set that so that the circuit pulses once every 14 seconds
with go-fast held low. (best way to detect the pulses may be cheap
headphones in series with a 1K resistor on the output, the pulse
will it'll probably be too short to easily see on a LED)
the rest of the circuit depends on exactly what you want.
The indicator and counter should come on together !
assuming the start switch is a momentary push button,
is it acceptable to require that the operator to hold it down
until the random trigger ?
No ! Once pushed the operator has to be able to press a second
button. This stops the counter and latches the display until the
first button is pressed again.
can I use a two pole switch to make the design easier or is only
single pole available, can the switch be floating or must one end
be ground or +5v
The switches I used are the momentary ones from computer reset
buttons.
what sort of output do you need is a floating LED acceptable or
must it be ground referenced ?
What happens at the moment is a monostable flips state, 0 - 5v TTL
logic.
what behavior do you want from the output?
Bye.
Jasen
It won't take me long to breadboard this up so that I can play with
it. If it works well then that will be great.
--
Best Regards:
Baron.
.
- References:
- Random timer!
- From: Baron
- Re: Random timer!
- From: Jasen
- Re: Random timer!
- From: Baron
- Re: Random timer!
- From: Jasen
- Random timer!
- Prev by Date: Re: -5v and -12v Serial Ports
- Next by Date: Re: -5v and -12v Serial Ports
- Previous by thread: Re: Random timer!
- Next by thread: Re: Random timer!
- Index(es):