I know this is more mechanical than electrical in nature, but I'm thinking that this may be closer to a robotics question, so perhaps someone on here has an answer. Here's basically what I have. I've got a key switch lock, and I want to push a locking pin into place using a small motor and a cam when I turn the switch on and off (i.e. voltage applied, voltage removed). The cam and pin would look something like this:
However, unlike what is being shown in this picture, I don't want to have a full rotation. I want the motor to spin 180 degrees to push the pin forward and lock and then reverse 180 degrees to release the pin.
If possible, I don't want to have to have a bunch of controller boards that need programming - perhaps just a pulse for forward and a pulse for backward. I know the question of load is going to come up, so I'll estimate that it takes about 5 lb of force to push the pin into place. What type of motor would do this?

However, unlike what is being shown in this picture, I don't want to have a full rotation. I want the motor to spin 180 degrees to push the pin forward and lock and then reverse 180 degrees to release the pin.
If possible, I don't want to have to have a bunch of controller boards that need programming - perhaps just a pulse for forward and a pulse for backward. I know the question of load is going to come up, so I'll estimate that it takes about 5 lb of force to push the pin into place. What type of motor would do this?