how do i plug in my Linear Actuator in to my Vex Cortex Microcontroller?

i know how to do servos and such, but the actuator has 5 wires, and i dont know where to put it.

sort by: active | newest | oldest
Two of the wires should be for the motor, one as a common for the limit switches, and the remaining two as the connections to the limit switches themselves.

You will need a motor driver to supply enough current to the motor, as microcontrollers can typically only supply enough current to drive a few LEDs. The common of the limit switches can be connected to 0V, with a pull up resistor on the switch outputs, which can then be read by the microcontroller.

The easiest way to identify the pins is to find the datasheet, but if you don't have it, all you need to do is find which pairs of pins become connected/disconnected at each end of the travel of the actuator. These are the limit switch connections, and the remaining two are the motor.
therobotman (author)  The Skinnerz4 years ago
What kind of limit switch would you suggest?
Given the number of wires on the actuator, one would assume that 3 of them are connected to limit switches already built into the actuator, so no external switches are needed.
Is this a stock Vex part ?
therobotman (author)  steveastrouk4 years ago
Yes
Which part number ? The linear actuator I saw on their site in the UK was just a pile of bits
therobotman (author)  steveastrouk4 years ago
oh, the linear actuator isn't, but the microcontroller is.
sorry
therobotman (author) 4 years ago
So, what you're telling me is that I can just take the 5 wires and plug it in where the motors are supposed to go, and it wouild run?