It could be done. Lot of calculations of motor speed and gear ratios for pulley size( length of arms if rigging a T for push/ pull) Engineering mounts and wiring, stop switches so it doesn't rotate to far. I don't know how to search it out but someone on here was building something similar to operate foot pedal a couple of years ago.