Hot answers tagged nxc
2
By "smoother limit", if you mean "when it gets closer to the limit, it will softly land there by slowing down" then:
I recommend using PID control where the response (how fast the motor is moving to the limit) is controlled proportional to the error (how far away from the limit you are).
Wikipedia has a good intro to PID control: ...
Only top voted, non community-wiki answers of a minimum length are eligible