Hi, David. Your description is a little sketchy. I'm going to make a
few assumptions here, and you tell me where I'm wrong.
You've got a low voltage DC motor which you want to run at two speeds.
To do that, you want to apply two voltages: 1.5V and 3VDC.
Now, you want to run the motor both clockwise and counterclockwise. To
do this, you have two pushbuttons labelled CW and CCW. When you press
the CW button, you want the motor to go clockwise for 5 seconds. When
you press the CCW button, you want the motor to go counterclockwise for
5 seconds.
You forsee needing at least one 555 for this project and a DPDT relay,
but you're not sure what's going to happen if someone, say, presses the
CW button while the motor is going counterclockwise -- you don't want
to smoke anything. OK. Let's see if we can simplify this and make it
safe from accidental short circuits.
The first thing you could use is a specialty relay called an impulse or
latching relay. This is a relay that's got two coils and two internal
magnets. When you energize one of the relay coils, it moves the
armature toward that direction. A weak magnet helps keep the armature
on that side, whether the coil is energized or not, until the other
coil is energized.
These relays can be a little expensive, but if you're not switching too
much current in your motor (you're using a 9V battery, that indicates
your motor doesn't draw more than a few tenths of an amp), a surplus
telecom relay should do the job. You'll have to suppress any switching
arcing, but it is still an inexpensive solution. Jameco sells one that
can switch up to 2 amps as their P/N 206543CM for $3.79 ea.
For the rest of this, the circuit should be pretty simple. You can use
three "C" or "D" batteries in series to give you a 4.5V power supply
(you'll need the higher supply for the surplus relay) and an LM555.
Cut and paste this wiring diagram to M$ Notepad if your newsreader
doesn't have fixed font:
|
| VCC VCC
| + +
| | |
| .--o---o---o--. D V
| | | | | -
| D| | D| | VCC |
| - C| - C| + D V
| ^ C| ^ C| | -
| | C| | C| .-. VCC VCC |
| | | | | | | + + o-----. SW3
| | | | | | | | | | | Slow/
| | | | | '-' .---o---o--. .-. o Fast
| '--o o--' | | | R| | '\
| | | | | | | | \
| | o----|<-o---)----o | '-' o \
| | | | | | | | |
| | | | | | LM555 o--. o-----'
| o-------)----|<-' | | | | /|C
| | | o----o | | -------
|SW1 | SW2 | | | | | --- ---
|CW | CCW | | | | | NC/ | | NO
| | o | o o----o | | .----' '----.
| |=|> |=|> | | | | | _ |
| | o | o | | | | | / \ |
| | | --- | | | o---o( M )o---o
| === === --- '---o---o--' | | \_/ |
| GND GND | | NC | | |
| === === | '----. .----'
| GND GND | NO | |/ NC
| | --- ---
| | ------- VCC
| | C |/ +
| | | D |
| | o ->|---'
| | |
| | ___ |/
| '|___|-o-| TIP31
| 180 | |>
| .-. |
| 1K| | ===
| | | GND
| '-'
| |
| ===
| GND
|
(created by AACircuit v1.28.6 beta 04/19/05
www.tech-chat.de)
The value of R is equal to the DC resistance of the DC motor. D is any
diode like the 1N4001 or 1N4002.
When you press either SW1 or SW2, you energize the appropriate relay
coil, and also trigger the 555 one shot (you seem to have R and C
values down). The motor will be on for your 5 seconds.
I'd guess this is pretty much complete. Now tell me how I got it
wrong.
Cheers
Chris