Wayne, it would be easier to give you suggestions if you gave even a small clue as to what you’re trying to do. This could be as simple as a DC motor and a double throw switch.
ErnieHorning wrote:Wayne, it would be easier to give you suggestions if you gave even a small clue as to what you’re trying to do. This could be as simple as a DC motor and a double throw switch.
Controlling a flow valve. So, I need to be able to adjust the open and close positions is why the stepper motor.
I was thinking a PIC based unit (very small) would be good.
If it's either 0 or 90 and no need inbetween, wouldn't a simple solenoid work out? Simple, quick, firmware-free...:rolleyes:
All I was thinking of was a gear reduction motor (probably need to do this with a stepper too) and a switch on each end to kill power in that direction.
Think of a cam with a 90˚ pie cutout and a double throw switch inside. You could tap a screw hole on each side so that you could adjust exactly where it stops.
This is exactly how air handling dampers are controlled in buildings and homes
For multi-unit approaches:
http://www.arduino.cc/playground/ComponentLib/Servo
http://www.ladyada.net/make/mshield/use.html
However, for the described application, an Attiny25 plus AVR-GCC is a lot more lightweight. The nice thing about servos is that they have most of the control and drive circuitry built in, and just need a TTL-level pulse input for control.
http://winavr.scienceprog.com/example-avr-projects/servo-motor-control-using-avr.html could easily be ported to an ATTiny, and tweaked to use an "on/off" switch to select two angles instead of using the switches for "up/down" control.
http://www.societyofrobots.com/member_tutorials/book/export/html/25 does multiple servos controlled via USB.
Edit: Given the new info, I would say:
ATtiny25 + H-bridge chip (L293 probably?) + limit switches would do the trick
