![]() |
Motor to work like a servo...what's the best method?
When we push a joystick button we would like a motor to spin forward 90deg, reverse direction, and stop when it returns to home.
Currently we have limit switches to reverse the direction of the motor and indicated when it is back to home position, but with the code we wrote it only operates when the button is pushed. If we take our finger of the button the motor stops and does not return home. Should we set up a State Machine? Can we use the limit switches on the Jaguars to make this happen? Where do we get good basic information on CAN? CAN looks interesting but we don't understand what the advantages and uses of CAN are. |
Re: Motor to work like a servo...what's the best method?
Quote:
Quote:
Quote:
One thing about limit switches in general, a switch is not a positive stop. I've replaced hundreds - if not thousands - of limit switches in industry because they were destroyed when a machine overtravelled. A switch can only tell a controller that something is at a position. If the processor gets hung up in a loop, or the motor coasts, something needs to stop the mechanical motion besides the switch until the processor catches up. For that reason, always have a mechanical stop and always put the switch out of the path of the motion! Quote:
|
| All times are GMT -5. The time now is 11:50. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi