Shop OBEX P1 Docs P2 Docs Learn Events
Connecting l293d h bridges in parallel? — Parallax Forums

Connecting l293d h bridges in parallel?

rwgast_logicdesignrwgast_logicdesign Posts: 1,464
edited 2012-10-16 14:44 in General Discussion
Ok I screwed up big time, Id like to use the chips I have but if not I really need the cheapest H-bridge solution..

I have two motors and like an idiot i tested them without a load, at no load they draw around .1 amps each, so I went ahead and ordered 3 293d chips thinking one would drive both motors...

Well I just tested my bot out with a meter and it looks like the motors are drawing just about .6 amps rolling on the ground with no obstructions, and soon as the wheels lock up the thing can draw up to 1.4 amps or so.... the chip says its max is 600 mA which is what I draw just crusing

Can I connect all three of my chips in parallel to get a working motor controller? At the moment I have no way to get more components, but when I do what would be a better options mosfets? I originally looked at the ST 298 chip but it doesnt have a very proto board friendly package. Im really hoping I can just hook up all 3 l293 chips to make one big motor driver at least for now :/.

Also totally off topic but is wd40 bad for nylon gears? I noticed my pinion gears are cracking and I have no idea why I may have to replace my gears and would rather not have them crack again,
«1

Comments

  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2012-10-15 03:48
    The rule of thumb is that BJT (conventional transistors) cannot be connected in parallel; but MOSfets have not problem doing so. This is all about a thermal runaway that occurs in BJTs and the fact that it is next to impossible to match transistors. So one takes all the load and burns up, then the next one goes....

    And H-bridge configuration just makes the whole idea of parallel a bit more complex. If you really need a powerful h-bridge, I've had good luck with Bob Blick's design and using darlingtons that are less than $1usd each.

    http://www.bobblick.com/techref/projects/hbridge/hbridge.html

    But there are even better MOSfet designs these day. I suspect the easiest way to drive the power MOSfets are with small transistors as MOSfet drivers are in SMT packages and both expensive and hard to get.

    You might just be able to use the big brother of the L293, an L298. There are several limits involved in h-bridges. One that is important and least documented is the voltage drop of the h-bridge itself.

    With TIP120/TIP125 Darlingtons that Bob Blick uses, the h-bridge voltage drop can be between 4 and 8 volts at saturation, so a 12 volt motor might require a 16-20 volt supply. Then there are 3 limits of stress to the h-bridge - maximum amps, maximum volts, and maximum watts.

    With power MOSfets, those voltage drops tend to go way down. But since there are so many MOSfets, I can't give you an exact figure.

    Having said all that, I don't really have a good reference for a MOSfet h-bridge that is completely proven for DIY.
  • rwgast_logicdesignrwgast_logicdesign Posts: 1,464
    edited 2012-10-15 04:16
    well this is kinda why i asked aboit paralleling this chip up ive read some people saying it can be done but not a whole lot. the data sheet doesnt say if its a bjt or fet design. ill probably just breadboard it out and see what happens tmrw.

    two of these in parallel will pull 1.2 amps continous and 2.4 peak wich is almost double what im using the problem is im right over the max specs of 1 chip.

    i also couldnt find a peak current time how long is it safe to peak, what if my bot is stuck on a wall for a few minutes? and what happens if u exceed peek rating for a few seconds, will the chip just smoke
  • idbruceidbruce Posts: 6,197
    edited 2012-10-15 05:24
    rwgast_logicdesign

    I wish you luck with your current endeavor, but if that does not work out for you, the L6205 IC might be just the ticket for you. See the datasheet below. Parallax used this chip in a motor controller board a while back, but have since discontinued it.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2012-10-15 06:16
    IDBruce has provided us with a very nice chip that will sanely solve your problem. If only it were easy to buy in Taiwan, I would be quite happy. You may be able to get one wherever you are without huge shipping cost.
  • idbruceidbruce Posts: 6,197
    edited 2012-10-15 06:21
    Loopy

    STMicro offers free samples for three different forms. I believe they will allow you to get three samples at the most. Please refer to the following link:
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2012-10-15 09:15
    Why would they ship to Taiwan? I suspect they would just tell me to contact a local sales representative. And in this culture, the local sales representative would just ignore me unless I demonstrated that I was either with a university or a real business.

    In any event, I have occasionally gotten free sample, but don't really care to abuse it due to the problem of international shipping costs.
  • RobotWorkshopRobotWorkshop Posts: 2,307
    edited 2012-10-15 10:47
    If you have a circuit setup for the DIP version of the L293D then you could also look at using the TI SN754410 H-Bridge chip instead. It is rated a bit higher (1A) and you can use them in parallel if you need a little more current capacity. I am using a pair of these chips stacked and added a heatsink. You can see the picture of them part way down in the thread below:

    http://forums.parallax.com/showthread.php?130758-Need-Help!-Can-SN754410-handle-40RPM-12V-22-oz-in-Torque-160mA-DC-Gearmotor&highlight=sn754410

    I usually use one (or two) of these TI SN754410 chips for smaller motors, the next step up I use is the L298 chip and beyond that I really like the LMD18200 which works well for larger motors and higher voltages. Beyond that the next step is a custom H-bridge or an OSMC board.

    Robert
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2012-10-15 11:03
    I realize the whole world has gone over to integrated circuits, but the thermal reality is that four individual power MOSfets are going to run cooler.

    Besides, if you really want to run a motor over about 40 watts, you are going to need something that is not in a chip. 1/10th of a horsepower is 74 or so watts.

    I've pretty much finished with L293 and L298 devices - too small.
  • RobotWorkshopRobotWorkshop Posts: 2,307
    edited 2012-10-15 11:20
    I realize the whole world has gone over to integrated circuits, but the thermal reality is that four individual power MOSfets are going to run cooler.

    Besides, if you really want to run a motor over about 40 watts, you are going to need something that is not in a chip. 1/10th of a horsepower is 74 or so watts.

    I've pretty much finished with L293 and L298 devices - too small.

    It all depends on the current and voltage requirements of the motors you are using. For smaller motors with little load the L293/SN754410 and L298 chips work well. For larger devices the LMD18200 is fine. Beyond that then H-Bridges made from MOSFETS may be the best option. That is what the OSMC motor controllers use. You can install up to 4 MOSFETS per leg.

    Using the ready built H-bridge chips can be easier to use and wire up. The LMD18200 also has some built-in protection and when used properly is a pretty robust chip. If you decide to roll-you own H-bridge with individual MOSFETs in many cases you also need to provide another voltage source higher than your motor voltage in order to fully turn-on the high side MOSFETs. You could use something like a HIP4081 driver chip or use a small DC/DC converter to generate the higher voltage. If you aren't using a dedicated driver chip like the HIP4081 then you may also need to add some additional drivers so the microcontroller can switch the larger voltages to the MOSFET's. It is an interesting area to explore but unless motor control is an area that the person wants to get into it may be better to get an off the shelf H-bridge module when the need for larger motors comes up.

    Robert
  • rwgast_logicdesignrwgast_logicdesign Posts: 1,464
    edited 2012-10-15 12:23
    Hmmm ok well looking at the options presented here and i am fairly impressed with bruce's l6205 as I it has a dip package and can be sampled. The LMD1820 is also a good chip but it has that 8 pin to package which isnt protoboard friendly.

    I have a question though my motor are 3-6v this chip says it needs a supply 8-52v, Does that mean its going to take my pwm signal and output it at 8v minimal??
  • zappmanzappman Posts: 418
    edited 2012-10-15 12:44
    You could try using the Seeed Motor Shield from Radioshack for $19.99 it is based on the H-bridge driver chip L298N motor driver integrated circuit and has a heat sink.

    pRS1-13667781_rshalt1_dt.jpg

    Or you can order it directly from Seeed Studio

    For more info look at this wiki page.
    395 x 395 - 23K
  • RobotWorkshopRobotWorkshop Posts: 2,307
    edited 2012-10-15 12:52
    I have a question though my motor are 3-6v this chip says it needs a supply 8-52v, Does that mean its going to take my pwm signal and output it at 8v minimal??

    No, it means that the second power source is supposed to be in the range of 8V to 52V (max). You'll probably need a separate higher voltage battery pack for your motors. Or just use a larger pack overall with the direct battery power connected to the motor power.

    Most of the H-bridge chips have logic level inputs but many of them are setup to use a separate voltage source for the motor outputs that is a higher voltage than the logic side. Some specify that the motor supply needs to be a couple volts higher. You'll need to look at the datasheets carefully to see if this is the case with the H-bridge chip you want to use. Most people don't run into this since they are usually controlling motors that are 7.2V, 9.6V, 12V, or even 24V so they are higher than the logic signals. If you are running the motors at a lover voltage or the same voltage as your logic then it can be a concern. I ran into this exact issue since I had a large motor that ran from a large 5V supply. The current requirements fit well within a pair of SN754410 chips stacked and since those run fine with a 5V supply for the motors that was the best choice.

    Robert
  • idbruceidbruce Posts: 6,197
    edited 2012-10-15 12:57
    @rwgast_logicdesign
    I have a question though my motor are 3-6v this chip says it needs a supply 8-52v, Does that mean its going to take my pwm signal and output it at 8v minimal??

    Yes, the current would be controlled through PWM.

    EDIT: Your power supply must output 8VDC minimum

    If you should decide to use the L6205, I have attached the AN1762 (Application Note) for further reference information.

    EDIT: For further information, click the "Design Support" tab resulting at the following link:
    http://www.st.com/internet/analog/product/63232.jsp

    Please note that according to the datasheet, the outputs of the L6205 can be paralleled for higher current.

    @Loopy Byteloose
    Why would they ship to Taiwan? I suspect they would just tell me to contact a local sales representative.

    Have you tried to order samples? It sounds as though you did not even try. I would imagine they want these chips to be used everywhere in the world, but you may be right. I would at least give it a try and see what happens.
  • RobotWorkshopRobotWorkshop Posts: 2,307
    edited 2012-10-15 13:03
    I don't think the L6205 is the ideal chip for this application. According to the datasheet it should have at least an 8V supply. If the supply drops below 6V it is supposed to shutdown and isn't supposed to turn back on unless the supply reaches at least 7V.

    If your motors are running as 9.6V, 12V or more then this should work fine. With the 6V supply this chip really isn't going to work.

    Robert
  • rwgast_logicdesignrwgast_logicdesign Posts: 1,464
    edited 2012-10-15 13:06
    Ok cool thank you bruce. Im trying to get a few 6205s, and there l293e which is a 1 to 2 amp version of mi TI chip, ive also thrown in a l6506 have you used this chip? They put it on there 6205 eval boards for continous current control.

    I really want to use the 6205, but right now im using a 9.6 nicad power supply, that doesnt leave much room to power the chip once the battery starts dying, and to boot your suppose to drain a ni cad all the way
  • idbruceidbruce Posts: 6,197
    edited 2012-10-15 13:10
    @rwgast_logicdesign

    I have several sample chips, but at this point I have not used them yet. If you intend to use these chips, I would definitely upgrade my power supply.

    Bruce
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2012-10-15 13:15
    @idBruce
    Sorry, I did not try. Let's just say that it is personal choice as I don't require these in order to enjoy learning about microcontrollers. Many will ship the free samples, but want shipping. I have to pay via credit card and they may or may not accept credit cards. Often they want to ship their choice and I have different problems with different modes of shipping here.

    I am simply a hobbyist. And at 64 years of age, I am not going to suddenly build a new business in electronics.

    Having said all that, they seem fine to me, but others think the 8 volt minimum is a problem. Often, motors are operated at rather high DC voltages just to get the benefit of added power. Most of the world is not running on batteries. I see the PDF discusses operation at 48V supply. The higher voltage makes the h-bridge less wasteful in comparison to the voltage driving the motor.

    I have noticed that an awful lot of users don't take into account that H-bridges require a voltage higher than the rating of motor. Even with MOSfets, there is some of this. You cannot just take a 6 volt supply and attach it to an h-bridge attached to a 6 volt motor and expect to get optimum power. Read the PDF carefully and accept the fact that you have to provide higher voltages to get a motor to run right.
  • idbruceidbruce Posts: 6,197
    edited 2012-10-15 13:18
    to boot your suppose to drain a ni cad all the way

    Supposing that you upgrade the power supply, there are other ways to fully drain your batteries, such as another load. Just utilize the bateries until they no longer power the robot, switch batteries, and drain existing voltage with another load.
  • idbruceidbruce Posts: 6,197
    edited 2012-10-15 13:22
    Having said all that, they seem fine to me, but other think the 8 volt minimum is a problem. I have noticed that an awful lot of users don't take into account that H-bridges require a voltage higher than the rating of motor. Even with MOSfets, there is some of this. You cannot just take a 6 volt supply and attach it to an h-bridge attached to a 6 volt motor and expect to get optimum power. Read the PDF carefully and accept the fact that you have to provide higher voltages to get a motor to run right.

    I agree completely. All of my stepper motors are rated for under 5V, but I run a 48VDC power supply to my drivers. My motors run great, much better than being supplied with a lower voltage.
  • rwgast_logicdesignrwgast_logicdesign Posts: 1,464
    edited 2012-10-15 13:51
    Ok so somehow when I posted last there were a few threads missing inbetween. Let me give some more details, becuase I think Im a but confused here as far as problems with logic levels.

    So far the plan is to use 9.6v 2200ma/H nicad drill battery to run my whole system, which is 2 motors one parallax standard servo and a custom prop PCB with a switching regulation unit. I may be adding a stepper into the mix which needs 12 volts but that will be later.

    These motors run ideally with a steady 6-7 volt power supply, they will run all the way down to 1.5v but thats just not enough power, 3vs is minimum. If I were to run the 6205, your saying I should definately upgrade my battery supply? 2200maH is a decent figure for motors using about .5amps if its not enough I can upgrade maybe for now i can just use 12 volt alkaline supply with 8 AA batterys.

    As far as logic levels I need the 6205 to read 3.3vs and 5vs as Hi, so I can use prop/arduino/bs2. Now i have an extra 74lvc244 I can use for shifting logic from micros to the motor controller if thats the issue, but from what im reading its not. Somehow the logic level being higher than my lowest motor voltage is an issue?? The motor does fine at 6vs so I dont see why a 5v pwm signal would cause an issue?

    Im pretty set as of now on the 6205, It seems to me like my system could handel it as is but would be better off with a 12v upgrade, correct?
  • RobotWorkshopRobotWorkshop Posts: 2,307
    edited 2012-10-15 14:04
    There are two different voltages that you usually deal with when working with these chips. Typically you need to supply both of them. On the control (input) side you usually deal with logic level inputs 3.3V or 5V supply. The other is the supply voltage to the H-bridge chip itself. The datasheet for the chip you are looking at states that the minimum voltage for that supply is 8V. So you motor supply needs to be more than that. If your motors are only rated at 6V then you'll be running them at a higher voltage then they are rated for. Some motors may be fine with this and others not.

    You may just be better off getting something like this: http://www.pololu.com/catalog/product/1212
  • idbruceidbruce Posts: 6,197
    edited 2012-10-15 15:02
    Im pretty set as of now on the 6205, It seems to me like my system could handel it as is but would be better off with a 12v upgrade, correct?

    I don't mess around with standard DC motors that much, so I don't know what your motors can reasonably handle, but motors are often run much higher than their rated voltage. For instance, your motor might work perfect with a 24V niCad upgrade in combination with the L6205, but with the 9.6V, you are basically at the minimum.

    As mentioned by RobotWorkshop, logic supply and motor supply are usually obtained from two different power supplies, but lower level voltages can be obtained from a higher voltage supply by using a switching regulator. For the sake of discussion, let's say that you upgrade to a 24VDC NiCad to power your motors, and you want to obtain a decent voltage for your control board, then you could use a premade module like this one (http://www.dimensionengineering.com/products/swadjhv), as suggested by Mike Green in this thread (http://forums.parallax.com/showthread.php?133037-Dear-Mr.-Parallax-High-Voltage-Propeller-Proto-Board), or you could create your own. My own preference is two voltage levels created from one power supply.

    EDIT: I think you can also obtain a module from Peter Jakacki, as mentioned in the thread that you started, but I am not really sure if he sells them:
  • rwgast_logicdesignrwgast_logicdesign Posts: 1,464
    edited 2012-10-16 02:41
    :/ the forum messed up my post now I get to re type the thing....

    Ok I dont need to order a motor control module :). Im only confused on 2 things and im not sure im all that confused on one, you guys are just making me think I am!

    So if I use a 6205 it would work like this correct..

    I supply it with a pwm signal from a micro or 555 or whatever I want to the 6205's input pin
    I then connect the 6205 to an 8 volt supply on its Vin pin
    Now the 6205 will output 8 volts to my motor right assuming my Input pin recives a 100% duty cycle and the 6205 is perfect with no Vdrop, and if I set my PWM to 50% id have 4 volts to the motor (If this is wrong im sorry I really need some time to read the data sheet carefully, i just guessed this is how the chip would function seems logical)

    My real confusion though is something robot workshop said. How does my motor voltage and logic level tie into each other, if the h-bridge is using its supply voltage to power the motor why would it matter to my motor what voltage my micro inputs to the h-bridge?

    Now totally off topic but hopefully theres some insight here, I looked around wal mart today trying to find a light way to give my bot 12 volts, and decent amp hours I found these, bought two but plan to get 6 if it works out
    RL2CR51A.jpg


    6 of these babies in a parallel/series combo will give me 3.6 amp hours at 12volts, and there light as a feather!!! My question is can they be recharged a friend told me all lithium's are rechargeable and that these go in a camera that would usually recharge them, but idk if he was blowing smoke up my a**, thats why I only got two for now! I figue if he wasnt full of bs ill get four more anf find some kind of lithium charging IC at maxim or something. These babies are seriously the best power source ive ever seen 1.4 AMP hours and 6v a piece!!!! I looked at NiCADs and the 10 id need to make 12 volts is only 1.75 or 1.25 amp hours cant remember which, so im really hopping these lithiums work as there easily obtainable
    600 x 600 - 115K
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2012-10-16 03:29
    8 volts PWM 50% duty cycle has the energy equivalent of +4V at 100% duty cycle. but the motor still sees 8 Volt spikes, unless some sort of output filtering is done. Often this is not an issue as tiny motors usually have brushes and insulation that will endure much higher voltages than they are rated at.

    The problem with too high a voltage to a motor is in the coil resistance as the combination of too much voltage and too many amps will overheat the coils and damage something. (But with the PWM, you are actually limiting that to a safe zone).

    BTW, becaue they are MOSfet outputs, the L6205 can actually be used in parallel. Since one chip has two h-bridges, the logic and the outputs can be tied together to double the amps rating of the output.

    Cool?

    If I read the PDF correctly, the L6205 IC has internal voltage regulation that feeds the input logic the right levels for TTL control, and the final stage (the actual h-bridge) takes the higher voltage directly to the motor. This is NOT the case in other h-bridge designs. In those other h-bridges, one has to consider the i/o is right to get the final stage to perform correctly.
  • idbruceidbruce Posts: 6,197
    edited 2012-10-16 06:47
    rwgast_logicdesign

    As previously mentioned, I am not an expert with standard DC motors, nor am I an expert on batteries. I initially mentioned the L6205, because I was attempting to solve an amperage problem, not a power supply problem. Additionally, I have no idea what kind of voltage your motors can handle and operate with in conjuction with PWM. However as I also previosly mentioned, many motors are powered with voltages much higher than their rating. The L6205 allows this to happen because it has current sensing resistors which set the maximum amount of current that ever reach the motor coils. Higher voltage power supplies are used to increase the speed to which maximum current is obtained.
    My real confusion though is something robot workshop said. How does my motor voltage and logic level tie into each other, if the h-bridge is using its supply voltage to power the motor why would it matter to my motor what voltage my micro inputs to the h-bridge?

    One has nothing to do with the other.
  • idbruceidbruce Posts: 6,197
    edited 2012-10-16 06:55
    rwgast_logicdesign

    I would recommend building a L6205 board, and test your motors with a variable power supply to see how it operates with different voltages. As long as you don't go hog wild with the voltage, I would imagine that you would have a wide range of acceptable voltage to power your motors.

    What kind of motors are they? Do you have stats, datasheets, pictures, link to where they can be seen online?
  • RobotWorkshopRobotWorkshop Posts: 2,307
    edited 2012-10-16 07:05
    My real confusion though is something robot workshop said. How does my motor voltage and logic level tie into each other, if the h-bridge is using its supply voltage to power the motor why would it matter to my motor what voltage my micro inputs to the h-bridge?

    It all depends on the context and the type of H-Bridge. For most of the ready made H-bridge chips those are two separate supplies and the motor voltage has nothing to do with the voltage on the logic side.

    However, someone brought up building an H-bridge from scratch using MOSFET's and if you do that then it does matter what voltage you use on the logic side to control them. The normal logic levels (3.3v or 5V) won't be high enough to turn on the all the MOSFET's as needed. To turn on the high side MOSFET's you need to use a logic supply higher than the motor supply. Since your micro controller won't do this then you need an extra layer between them. This can be a special driver chip like the HIP4081 or you can build your own interfacing logic. By using an off the shelf H-bridge chip you avoid all the extra work since it is dealt with in the chip.

    Robert
  • rwgast_logicdesignrwgast_logicdesign Posts: 1,464
    edited 2012-10-16 12:32
    I am acually using the DC motors that came in my erector sets from when I was a kid, I cant find any specs on them they can be bought here http://meccanoman.co.uk/catalog/product_info.php?cPath=83_84&products_id=2197 apparently there called MO Mk2 Motor's. If anyone can find or has any data on them that would be awesome. The 3-6vdc is on the case is all I have to go from. I have ran them at 9 volts and other than being loud I haven't had an issue they don't seem to get warm or anything, but I had a 3v motor die after supplying 6v to it for a few minutes and it never got warm or anything. Im just using these motor becuase there on hand erector is easy and I have alot of gears that fit them. Here are some pictures of the motor set up

    a.jpg
    a (1).jpg


    Id really like to try feeding them 12 volts but im kind of scared to do that, since I dont have any specs Im not sure what I would want to limit the current too if I feed them alot more voltage. The only specs I have currently are taken with my meter which is 2.5amp when motor i shaft is stuf and anywhere between .4 to 1.2ish amps while driving @ 6v.
    1024 x 768 - 76K
    1024 x 1365 - 157K
    a.jpg 75.6K
  • RDL2004RDL2004 Posts: 2,554
    edited 2012-10-16 14:22
    I don't think that particular type of lithium battery is actually rechargeable. I know there are lithium-ion cells made in the same form-factor that are intended as a replacement for them though. They require very specialized chargers.
  • idbruceidbruce Posts: 6,197
    edited 2012-10-16 14:44
    rwgast_logicdesign

    If you are unaware of the amperage rating, it is better to error on the side of caution. Perhaps the L6205 is not the correct solution, or perhaps it might be. Either way, I certainly don't want you to blame me for release of magic smoke :)
Sign In or Register to comment.