I'm looking to create some kind of "pianoplaying" Pi robot. I started to look into ways to create some kind of "arm" that can make a lateral movement and came across solenoids.I'm looking to create three arms and was thinking that I could use three solenoids for the movement of the arms and three solenoids to push the keys down on the piano.
What I need to know though is if it's possible to determine the range of motion for the solenoid using the GPIO library? Since it will be needed to determine which pianokey that should be pressed. If not is there a better simple way to create an arm that makes a lateral movement where you're able to decide the range of motion?