Maker Pro
Maker Pro

Momentary Switch Delay

S

Santa Ana Slim

I'm handy with a soldering iron, but I don't really know a lot about
circuits. I could rig up a switch to turn on an LED using a battery or
something, but I want to create a little more involved a device.

If anyone's ever played Call of Duty, you'll be familiar with the
Search & Destroy game mode. One team needs to plant a bomb and the
other has to stop them. Arming the bomb takes a few seconds and
defusing it takes a few seconds. Once it's armed it will detonate in x
seconds (45 in the game). I wanted to create a simulated device like
that to use in AirSoft skirmishes. It seems so simple in design, but I
don't know electric circuits well enough..

I want to create a device with 2 buttons (Momentary Switches) and an
LED display.

You would hold Button 1 down for a certain duration (i.e. 10 second)
after ten seconds it would beep or make some noise and start a timer
(the LED display) that was set to count down a preset time (i.e. 60
seconds). If the timer goes to zero it would then beep and that would
be that. Though while it was counting down if you held down Button 2
for a certain duration (i.e. 10 seconds) it would make a noise and and
kill power to that timer, so that you would have to use Button 1 to
turn on the timer again. (Button 1 and Button 2 could be the same
button, I just figured it'd be easier with two buttons, but I might be
wrong)

It seems that it would be easy to use a toggle switch instead of the
buttons, 1 to just open and close the power to this LED Count Down
unit, but it's the 10 second holding that I'm not sure how to
accomplish. Since they are momentary switches, they would only
complete the circuit while they were down. I'm thinking there's
probably a capacitor or two in there or something. This definitely not
my are of expertise, but perhaps there's a simple schematic out there.
Any help would be appreciated.

Here's a link to the LED Countdown unit I was looking at:
http://www.hobbytron.com/UK247.html Though I'm not sure if I can pre-
program the timer (like with dip switches), it seems it needs to be
programmed once it's powered up, but that's another issue.

Thanks,
Slim
 
S

Santa Ana Slim

How are you at software?  If I was doing something like that,
I'd use one of the inexpensive microprocessors.  A 10 second delay
is just a spin loop.  You can check the switches in there too.

If I counted right, you need 2 inputs (buttons), 1 output (LED)
and pwr/gnd, so I think even the smallest will work for you.
(They make some that are only 6 pins in transistor sized packages.)

Google for
  Basic Stamp
  AVR
  PIC
  8051
There are probably lots more.

Software I can handle. I will definitely look into that. Thanks for
the info. I didn't even know where to start.

-Slim
 
F

Franc Zabkar

If I counted right, you need 2 inputs (buttons), 1 output (LED)
and pwr/gnd, so I think even the smallest will work for you.
(They make some that are only 6 pins in transistor sized packages.)

Google for
Basic Stamp
AVR
PIC
8051
There are probably lots more.

PICAXE can be programmed using BASIC:
http://www.rev-ed.co.uk/picaxe/

- Franc Zabkar
 
Top