|
Re: Window Motors and Rotation
squirrel and the man are correct. As far as any programming is concerned, a window motor is identical to any other motor. It sounds like you're using it as it was intended, which is to reposition elements of your car/robot.
To turn a motor to a precise position, you need an external sensor. Often an encoder is the easiest to mount, but window motors are not designed to have encoders and so don't have an easy place to mount them. In the past, my team has used window motors to switch an element between two positions with limit switches that are triggered when the element has reached its intended position. If your element has multiple positions, investigate sensors that are triggered by touch but allow the element to move past them (if something continues moving after triggering a limit switch, it bends and sometimes breaks the switch).
Good luck!
|