I have been trying to find a tutorial, but have not been able. the dc motor goes forward, hits the micro switch and turns off. Flip the DPDT switch, the motor turns on and goes in reverse, hits another micro switch and turns off again. not sure how todo it

This diagram uses the Common (COM) and Normally Closed (NC) tabs on the limit switches.

When a limit switch is not pressed, it is in the green position -- connection between COM and NC.

When a limit switch is pressed, it is in the red position -- no connection between COM and NC.

It also uses a Double Pole Double Throw (DPDT) switch.

The dashed line between the poles (blue) indicates that they are linked mechanically, but not electrically -- both will be in the middle (shown below), both will be up, or both will be down.

A black dot indicates that wires are connected and no black dot indicates that the wires are not connected.

If the DPDT switch is placed in the "Up" position, current flows from your power supply "-" (electrons have a negative charge so current flows from - to +), in through the "-" tab of the DPDT switch and out the "Up -" tab, through the actuator, through the upper limit switch (green position), in through the "Up+" tab of the DPDT and out the "+" tab, and back to the power supply.

The actuator will go up until it presses the upper limit switch (red position) which breaks the connection and stops current from flowing through the limit switch.

With no current flow, the actuator stops.

Changing the DPDT switch to the down position allows current to flow throught "Down-", the actuator, the lower limit switch (green position) and "Down+" until the lower limit switch is pressed (red position) and the actuator stops.

If neither limit switch is pressed, the actuator can go up or down, depending on the switch position.

This diagram will work with any of these three styles of switches:1. DPDT 2-position On-On2. DPDT 3-position On-Off-On3. DPDT 3-position (Momentary On)-Off-(Momentary On) -- sometimes abbreviated as "(On)-Off-(On)".

The downside to the first two options is if one of the limit switches isn't working or adjusted properly, the motor can reach the end of its range of motion and still have power applied -- eventually burning up the motor or damaging the mechanism.

With option 3, power is only applied for as long as you press the switch which provides a secondary level of protection in addition to the limit switches.

The DPDT switch tabs and attached wires will probably be physically arranged like this.

When in doubt, use your ohmmeter to verify which tabs are/are not connected when the switch is in each position.

You can place a microswitch that makes when the monitor has reached its travel limit. (Limit switches)You will need two switches, one for vertical and one for horizontal.Place the switch in the line going to the NO contact on the switches you have already using.use the NC and Comm contacts on the limit switches.

Using your original png file, see where I have broken the wires. Insert the limit switches in these two places.

Yeah, its a cheesy pic.Just connect the limit switches where the X's are.Common and NC.When the limit switch is made (or actuated), the NC contact opens, shutting off the power to the motor in that direction only.I can draw you a better pic if you need it.