An inverter circuit hooked up to a bigger transistor might do the trick.
[attachment=0:3870mlx6]srimech.jpg[/attachment:3870mlx6]
Imagine that the switch is a tilt switch set up to be closed when the robot is the right way up. When it is closed the first transistor (left one) inverts this input to leave the second transistor (right one) off.
However, when the robot is inverted the switch opens and turns on the motor to right the robot which will turn off when everything is the right way up again.
Both transistors are npn but the second one will need to be a higher powered one to deal with the motor.
This is severely limited though as it relies on some sort of arm that can continuously rotate to right the robot/a mechanism that can convert continuous rotation to a reciprocating or oscillating motion of the srimech arm.
I'm feeling too lazy to come up with anything better that doesn't involve a micro controller which would be a much nicer solution than this.






Reply With Quote
Bookmarks