I'm a noob so I want to thank all of you for the help I'm about to receive.
I'm trying to create a clamping device using a toggle clamp and a servo. My problem is that I'm clamping different thicknesses of material and therefore can't tell the servo what angle I want it to stop at. I have to sense the thickness and request an in-motion stop, using a micro switch, but I'm at a loss to figure out the code. More than likely because I don't understand how servos work yet. Or the code to control it.
Oh... by the way, I've spent close to 5 hours youtubing and surfing this and other forums for a solution.
Thanks so much for your help.