If it's only going to be moving 90 degrees, a potentiometer would probably work better for your purpose. You would also probably need to make an adapter of some sort to connect the potentiometer shaft to your arm, since they typically come with a
round shaft with a flat slot.