
PRO
RoboHappy
USA
Asked
— Edited
I'm perplexed....:) is there a simple script command that can stop a servos movement when the servo starts moving?
I am trying to use a lever switch within a gripper. When I tell the gripper to begin closing around an object, and then the object presses against the lever switch,the gripper servo could immediately stop.
I've looked thru the EZ script manual, just cant the right command or function. Any ideas? Thanks in advance.
this is the script, assuming the pressure sensor is a digital switch. Otherwise use an ADC comparison like Techno had demonstrating
Thank you again guys. I tried yours DJ,did several test and it worked pretty good. I will plan on using it with my next arm configuration.
I made a gripper using a rotating servo and 2 limit switches. The way it works is like this. Gripper opens fully and hits the open limit. When closing, it Closes until the inner switch get pushed in. And like DJ I also have foam in the gripper. The foam has to be compressed a Little to trigger the switch, this gives a good grip.
@glycol79..>Nice, at one time I though about doing something like that. Right now, im the process of mounting the whole arm assembly to the bot. Would like to upload a pic of it whe I get the chance too.