What Electrical Component Can Reverse the Polarity of a Circuit

I want to reverse the polarity of a circuit with some type of electrical component, that doesn't require a human to do a task to change the polarity of the circuit every time (such as a switch, that wont do). What component is capable of doing this ?

Some context would be great here. Do we want to reverse polarity on an LED, or on a 5hp motor?

On a 3V motor.

There is a circuit called an H-Bridge for this purpose. If this is a relatively modest motor that requires maybe a hundred mA or two, then one could be cobbled together with a few transistors, probably either bipolar or MOSFET. For something bigger or to avoid rolling your own, there are ICs and driver boards available. GIYF.

I had to deal with H-bridges a while back, they are terrible, plain terrible. I don't want to use those things ever again, is there anything else that JUST changes polarity ? becasue i already have two transistors for on/off control

spookyjack:
I had to deal with H-bridges a while back, they are terrible, plain terrible. I don't want to use those things ever again, is there anything else that JUST changes polarity ? becasue i already have two transistors for on/off control

Really? How so?

Consider what it takes to "just" change polarity: The two connections to the motor need to be connected to one supply rail or the other. That means two switches on each motor lead. Whatever the motor leads are connected to need to be able to both source and sink current. Maybe I have mental block, but that will take four "switches", be they relays, solid state, or just a dumb cross-connected DPDT switch, which requires manual input that you don't want.

spookyjack:
I want to reverse the polarity of a circuit with some type of electrical component, that doesn't require a human to do a task to change the polarity of the circuit every time (such as a switch, that wont do). What component is capable of doing this ?

A single relay with DPDT contacts can reverse the polarity of voltage wired to a load if wired correctly.

Lefty

How do i wire it correctly ? what is your advice ?

spookyjack:
How do i wire it correctly ? what is your advice ?

OK, a DPDT relay contact has six contact pins, 2 normally closed, 2 normally open and 2 common. Wire the load (motor) between the 2 common contacts. Wire a jumper from one normally open to opposite normally closed contact. Wire another jumper wire between the other normally open contact and the other opposite normally closed contact (the two wire jumpers will look like an X ) . Now wire your source voltage between the two normally open contacts.

The relay coil will most likely have to be controlled by a transistor switch if the coil current is higher then a arduino output pin can supply but their are plenty of example circuits on how to control relay coils from an arduino.

That make sense?
Lefty

spookyjack:
I had to deal with H-bridges a while back, they are terrible, plain terrible. I don't want to use those things ever again, is there anything else that JUST changes polarity ? becasue i already have two transistors for on/off control

I'm just curious, what was terrible about working with H-bridges. In my experience they have been extremely easy to use, especially in the 3 volt motor range you are talking about.

growler:

spookyjack:
I had to deal with H-bridges a while back, they are terrible, plain terrible. I don't want to use those things ever again, is there anything else that JUST changes polarity ? becasue i already have two transistors for on/off control

I'm just curious, what was terrible about working with H-bridges. In my experience they have been extremely easy to use, especially in the 3 volt motor range you are talking about.

Well from just a cost point a relay is quite a bit cheaper then a H-drive.

Lefty

retrolefty:

growler:

spookyjack:
I had to deal with H-bridges a while back, they are terrible, plain terrible. I don't want to use those things ever again, is there anything else that JUST changes polarity ? becasue i already have two transistors for on/off control

I'm just curious, what was terrible about working with H-bridges. In my experience they have been extremely easy to use, especially in the 3 volt motor range you are talking about.

Well from just a cost point a relay is quite a bit cheaper then a H-drive.

Lefty

That may be true, but that is a different issue. Besides its not like low power h-bridge IC's are so expensive as to make a huge difference anyway.

That may be true, but that is a different issue. Besides its not like low power h-bridge IC's are so expensive as to make a huge difference anyway.

Relay for $1.40 ( http://www.allelectronics.com/make-a-store/item/RLY-532/5-VDC-DPDT-MINI-SIGNAL-RELAY-2A/1.html ) , H-drive you are suggesting costs?

Lefty

H-Bridge Motor Driver 1A - COM-00315 - SparkFun Electronics, $2.35.

Also, I'm not really suggesting anything. I'm just curious if there are some hidden "gotchas" in H-bridge operation that I have been fortunate enough not to encounter, hence the question as to what was terrible about them in the first place since my experience has been good.

And yes, I'm aware 3V is a little low for the recommended minimum motor input voltage but I've had no problems running at 3V with that chip, and with further searching I would guess something suitable would be findable.

It also occurs to me that you can feed the chip 4.5V and use pwm to limit the voltage seen at the motor to 3V. if you wire the two sides of the chip in parallel, you can get 2 amps out of it if you only need to control one motor.

I'm curious too. H-bridges have been used in this kind of case for decades now and I have never heard them get such bad reviews. I'm interested to hear what happened to sour spookyjack on them.

I should say I've got nothing against relays or switches, but I've usually found electronics like transistors in an H-bridge to be more reliable and easier to use than electromechanical devices like relays and switches. That is, unless human intervention is wanted, as it is not here.

I'm interested to hear what happened to sour spookyjack on them.

As he is not coming on and saying my guess is that he tried to make one out of discrete components and had problems with both the top and bottom switches being on at the same time. This is called 'shoot through' and causes short circuits and overheating. It comes about through not designing the circuit correctly. The easiest way is to use a H-bridge chip then you know it is designed correctly. In the mean time wiring up relays is easy as well see:-
http://www.thebox.myzen.co.uk/Workshop/Motors_1.html

I bet your right, the first H-bridge I used I made out of discretes, then remade it, then did the math, then remade it and then it worked.

Then I started just using IC's and the time to design/build went down significantly as did the size of the final product.

retrolefty:

That may be true, but that is a different issue. Besides its not like low power h-bridge IC's are so expensive as to make a huge difference anyway.

Relay for $1.40 ( http://www.allelectronics.com/make-a-store/item/RLY-532/5-VDC-DPDT-MINI-SIGNAL-RELAY-2A/1.html ) , H-drive you are suggesting costs?

Lefty

L293: http://www.alltronics.com/cgi-bin/item/LIC_L293D_Pulls/search/L293D-Pulls-Linear-IC - $1.00

...then again, it won't handle 2 amps your relay in theory could.

L298: http://www.alltronics.com/cgi-bin/item/LIC_L298N/search/L298N-Linear-IC - $3.90

...more expensive, though closer in spec to the relay - although it would require a heatsink, making it cost even more.

Then again, a single DPDT relay can't allow for switching the motor off, nor can you easily do PWM with it - both of which the L293 and L298 would allow for. To get a relay solution to allow for "off", you need either an extra relay, or you need to use a minimum of two SPDT relays (or four SPST relays - watch out for shoot-thru, though!). You also need to factor in the cost of the driver transistors, flyback diodes, and transistor bias resistors (minor costs, true).

You still wouldn't have PWM control - for that you would need an NPN or n-channel between the low-side and ground to allow PWM switching. At that point, you might as well go for an all-transistor or all-FET based solution (or a dedicated IC). Unless you don't need PWM control, of course...

:slight_smile:

Daanii:
I should say I've got nothing against relays or switches, but I've usually found electronics like transistors in an H-bridge to be more reliable and easier to use than electromechanical devices like relays and switches. That is, unless human intervention is wanted, as it is not here.

At a certain point, it seems - designing an h-bridge to handle high-currents becomes something of an art or an extreme science, or a combination of both. For someone who isn't doing this constantly (and thus building up experience and knowledge), it can quickly become expensive. I'm not sure what that point is, but it is likely somewhere between 5-10 amps; beyond that, unless you have a lot of money and time to burn, it is best to leave it to the "experts", and purchase your h-bridge instead of trying to build one from discrete components. I also recommend the use of h-bridge ICs instead of a discrete component layout for lower power designs, unless cost is a factor (or you have the parts and the time).

Then again - yesterday I found a Roboteq AX2250 for $25.00 (in unknown condition - but it looks OK) - I went to their site for docs and such, and found that new, that controller is anything -but- inexpensive. That might make one consider building their own (then again, its a 120 amp controller). They're local, though - so I am hoping to be able to get some help in finding out whether it still works, or if I simply purchased $25.00 of components (maybe the MOSFETs can be salvaged?).

:slight_smile:

Damn - there I go again - posted "then again" multiple times; I'm so predictable I hate it...gah. :frowning: