Robot arm

Hi guys,
I would like to make a robotic arm to grab anything but the aim is to make it autonomous. So for the model I think I will use this one :

For the autonomous I want to know the position of the grab in X, Y and Z and if the grab is open or close.

So I will use an Arduino and servos, and I thinked to do a point of contact on metal when the grab is fully open, to work as a on/off switch. But for the futur how I could improve the system to know the percentage of the opening grab ?

For the localisation of the grab, I thinked to use a rf signal emitted from it, and disposing some captors around the arm, but I am not sur that I will locate it correctly because of the little range of the project.

Finally what do you think about it ?

You said servos. Do you know how a servo works?

Yeah sur, but I just wanted to add a complement, an other way to get the mesure of the machine because of the autonomous.

You send a command to the servo to go to one position. If you don't trust that the servo go there, you have to measure its position. One way is to hack the servo and grab the info from it. If it's an analog servo, it has a potentiometer. Read the sweeper of the potentiometer.

Turning all servo angles into XYZ coordinates is not difficult. It's just trigonometry. But of course it all depends on the specific robot arm geometry.