I think you may be missing the (hidden) easiest route: the jags have built in ports for limit switches. Check the
datasheet for more info.
Quote:
Limit Switches
The normally closed limit switch inputs provide a simple method for limiting range of motion. When a
limit switch input is open, motor operation in that direction is disabled. Install jumpers if limit switch
functionality is not required.
|
Admittedly, it is a pain in the posterior to chop up the pwm cables to make a 2-pin connector at one end, but this solution gets rid of one sizable problem with running the limit switches in software - the latency.
-jonathan
nice filter CD guys
