Go Down

Topic: How to run motor in both directions, using just 2 output pins (Read 1 time) previous topic - next topic

CrossRoads

DPDT relay and transistor will work.

+V   C    -V
       M+
       M-
-V    C    +V

Use transistor to control application of voltage
When relay is connected to the left pins, current flows from top to bottom
When relay is connected to the right pins, current flows from bottom to top
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

CrossRoads

Okay TIP122, use that to connect V- to Gnd (sink current).
Don't forget a 1N4001 type diode across the relay +/- pairs (in parallel with the motor) with cathode on V+ and anod on V-
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

zoomkat


I want to run a dc motor, using just two output pins .

(I cant use a dpdt realy, and an h-bridge requires 4 pins)
{I just have tip 122, and I cant get any PNP transistors. }


You could modify a servo for continous rotation and control direction and speed just using one control line.
Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   8)


Go Up