Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: swabygw on November 19, 2010, 11:32:25 AM

Title: Controller for 4 wheels (2 dual motor drivers / speed controllers)
Post by: swabygw on November 19, 2010, 11:32:25 AM
My bot has 4 wheels/gearmotors (Pololu: 50:1 Metal Gearmotor 37Dx54L mm with 64 CPR Encoder
).  I'm hoping to find a programmable controller that can control forward/reverse/speed of all 4 wheels independently OR controls both left/right.  The best programmable controllers I've seen available have dual motor-drivers and I don't want to have to buy two controllers or do an H-bridge.  Any suggestions for a programmable controller that has either two dual motor-drivers or can drive all 4 motors?  Thanks, in advance.

P.S., If I use a dual motor-driver, is it possible to wire the left wheels to one driver, the right wheels to the other driver, since the wheels on each side will always be working together?
Title: Re: Controller for 4 wheels (2 dual motor drivers / speed controllers)
Post by: waltr on November 19, 2010, 02:25:00 PM
Quote
If I use a dual motor-driver, is it possible to wire the left wheels to one driver, the right wheels to the other driver, since the wheels on each side will always be working together?
Yes, if the maximum current draw for both motors does not exceed what the driver can handle.
Title: Re: Controller for 4 wheels (2 dual motor drivers / speed controllers)
Post by: desirez on November 22, 2011, 04:46:52 AM
Hi all,

 I would like to revive this thread as I have similar wishes. I need to control 4 wheels, in a "tank" like situation. Whereby using skid steering.

Is there a "quad" motor driver or such out there? I have no worries with programming so ideally, the cheapest one/pair going?!

Any help appreciated :D
Title: Re: Controller for 4 wheels (2 dual motor drivers / speed controllers)
Post by: newInRobotics on November 22, 2011, 05:05:27 AM
It depends on how much current motors You are willing to use consume. If they are small motors, then somethng like a pair of L298 (http://www.cse.dmu.ac.uk/~mgongora/Resources/L298N.pdf) should do.
Title: Re: Controller for 4 wheels (2 dual motor drivers / speed controllers)
Post by: desirez on November 22, 2011, 06:44:15 AM
Hi Newinrobotics,

 The motor I would like to use is:

http://docs-europe.electrocomponents.com/webdocs/0bf3/0900766b80bf315d.pdf (http://docs-europe.electrocomponents.com/webdocs/0bf3/0900766b80bf315d.pdf)

No load current 0.9A, Max eff current, 5.5A..
Title: Re: Controller for 4 wheels (2 dual motor drivers / speed controllers)
Post by: desirez on November 22, 2011, 06:54:51 AM
These look like a great solution, however the price is very high. If I need one per motor on a 4wd system then thats £200.. would it be possible to pair sides as mentioned above?!

http://www.dimensionengineering.com/SyRen25.htm (http://www.dimensionengineering.com/SyRen25.htm)
Title: Re: Controller for 4 wheels (2 dual motor drivers / speed controllers)
Post by: newInRobotics on November 22, 2011, 07:40:45 AM
No load current 0.9A, Max eff current, 5.5A..
No then, 5.5A is waaay too much for L298  ;D Something like 2x Sabertooth2x10  (http://dimensionengineering.com/Sabertooth2X10.htm) would do better, although it gets expensive.

You can always attempt to build Your own four channel motor driver made of MOSFETs  ;)
Title: Re: Controller for 4 wheels (2 dual motor drivers / speed controllers)
Post by: newInRobotics on November 22, 2011, 07:48:14 AM
If I need one per motor on a 4wd system then thats £200.. would it be possible to pair sides as mentioned above?!
You can use one Sabertooth dual 25A motor driver (http://dimensionengineering.com/Sabertooth2X25.htm) and run two motors per channel, however, it is not advisable as same side motors will have slightly different speeds causing higher current consumptions and drift.
Title: Re: Controller for 4 wheels (2 dual motor drivers / speed controllers)
Post by: newInRobotics on November 22, 2011, 08:20:36 AM
FYI: With something like 2x IRF 9530 P-CHANNEL MOSFETs (http://www.ebay.co.uk/itm/IRF-9530-P-CHANNEL-MOSFET-POWER-TRANSISTOR-TO-220-PACKAGE-/110764833483?pt=UK_BOI_Electrical_Components_Supplies_ET&hash=item19ca193acb) and 2 x RFP12N10L N-ch MOSFETs (http://www.ebay.co.uk/itm/2-x-RFP12N10L-MOSFET-N-LOGIC-TO-220-50p-each-/390339264276?pt=LH_DefaultDomain_3&hash=item5ae2087f14), few resistors, few diodes, and 2x smaller N-ch MOSFETs You can build 1 H-bridge to drive 1 motor. Circuit would look like the one underneath:

(http://www.societyofrobots.com/robotforum/index.php?action=dlattach;topic=14760.0;attach=5999;image) (http://www.falstad.com/circuit/#%24+1+5.0E-6+10.20027730826997+50+5.0+50%0Af+288+160+336+160+1+1.5%0Af+512+160+464+160+1+1.5%0Af+288+288+336+288+0+1.5%0Af+512+288+464+288+0+1.5%0Aw+464+144+400+144+0%0Aw+400+144+336+144+0%0Aw+464+176+464+224+0%0Aw+464+224+464+272+0%0Aw+336+176+336+224+0%0Aw+336+224+336+272+0%0Ar+352+224+448+224+0+1000.0%0Aw+448+224+464+224+0%0Aw+352+224+336+224+0%0Ad+464+176+464+144+1+0.805904783%0Ad+464+304+464+272+1+0.805904783%0Ad+336+304+336+272+1+0.805904783%0Ad+336+176+336+144+1+0.805904783%0Ar+288+160+288+112+0+10000.0%0Aw+288+112+336+112+0%0Aw+336+112+336+144+0%0Ar+512+160+512+112+0+10000.0%0Aw+512+112+464+112+0%0Aw+464+112+464+144+0%0Ar+512+288+512+336+0+10000.0%0Ar+288+288+288+336+0+10000.0%0Aw+288+336+336+336+0%0Aw+336+336+336+304+0%0Aw+512+336+464+336+0%0Aw+464+336+464+304+0%0Aw+512+288+544+288+0%0Aw+464+336+400+336+0%0Aw+400+336+336+336+0%0Ag+400+336+400+352+0%0AR+400+144+400+112+0+0+40.0+12.0+0.0+0.0+0.5%0Aw+288+288+256+288+0%0AR+128+176+96+176+0+0+40.0+5.0+0.0+0.0+0.5%0Aw+544+288+544+384+0%0Aw+544+384+208+384+0%0Af+560+176+512+176+0+1.5%0Af+240+176+288+176+0+1.5%0Ag+512+224+512+240+0%0Ag+288+224+288+240+0%0Aw+240+176+208+176+0%0Aw+208+176+208+384+0%0As+128+176+208+176+0+1+true%0As+128+128+208+128+0+1+true%0Aw+128+176+128+128+0%0Aw+240+288+256+288+0%0Aw+560+176+560+80+0%0Aw+560+80+240+80+0%0Aw+240+288+224+288+0%0Aw+224+288+224+128+0%0Aw+224+128+208+128+0%0Aw+224+128+224+80+0%0Aw+224+80+240+80+0%0Ar+240+176+240+224+0+10000.0%0Aw+288+192+288+224+0%0Aw+288+224+240+224+0%0Ar+560+176+560+224+0+10000.0%0Aw+560+224+512+224+0%0Aw+512+224+512+192+0%0Ao+10+64+0+291+20.0+0.0125+0+-1%0A)
Click on the image to open simulation
Title: Re: Controller for 4 wheels (2 dual motor drivers / speed controllers)
Post by: rbtying on November 22, 2011, 08:47:53 AM
Since Black Friday is coming up--Pololu has a number of nice motor drivers which are ~50% off--see here: http://www.pololu.com/blackfriday (http://www.pololu.com/blackfriday).
Title: Re: Controller for 4 wheels (2 dual motor drivers / speed controllers)
Post by: desirez on November 22, 2011, 04:08:54 PM
Thanks for all the responses guys. Does the H bridge allow for regenerative power capture? I was under the impression it did not, unless this power can be diverted away from the bridge?

As an aside, are cordless drills using regenerative capture or presumably its a cost to worthwhile for the potential?! (looking through a document that suggests using drill motors/circuitry as an economical alternative).

Appreciate you guys know your stuff, this is still somewhat of a learning experience for me so apologise for my naivety
Title: Re: Controller for 4 wheels (2 dual motor drivers / speed controllers)
Post by: bens on November 22, 2011, 10:23:53 PM
Hello.

I just want to point out that it's pretty much pointless to use four motor drivers in your application since the two motors on each side should always be turning at approximately the same speed (you don't gain anything by having them turn at different speeds or in different directions, especially if they are linked by tank tracks).  I recommend you use one motor driver per side (or a dual motor driver), and connect the two motors on each side in parallel to a single motor channel.  You could use two of our Simple Motor Controllers (http://www.pololu.com/catalog/category/94) for this (they can be easily paired for mixed RC control, or you can chain them together for control with a single serial line), or could use something like our dual VNH5019 motor driver shield (http://www.pololu.com/catalog/product/2502) (with or without an Arduino).  Both are part of Pololu's upcoming Black Friday sale, as are our metal gearmotors.

- Ben
Title: Re: Controller for 4 wheels (2 dual motor drivers / speed controllers)
Post by: bens on November 22, 2011, 10:29:04 PM
Thanks for all the responses guys. Does the H bridge allow for regenerative power capture? I was under the impression it did not, unless this power can be diverted away from the bridge?
The H-bridge circuit in general allows for regenerative braking, but it is hard to do well and it depends on all kinds of variables, many of which are specific to the actual motor you are using, so I'm skeptical that the controllers out there that claim to have regenerative braking actually do all that much.  Ultimately, I think the effect will not be all that significant, and I personally do not think it should should be an especially big consideration when you choose a controller.

- Ben
Title: Re: Controller for 4 wheels (2 dual motor drivers / speed controllers)
Post by: desirez on November 23, 2011, 04:02:22 AM
Thank you for your reply Ben, some thought provoking stuff. Perhaps then, I can do away with regen, in that the extra battery capacity is more of a reliable source for extra power.

For now, I have all my answers :D Thank you once again! Bring on black friday sales!
Title: Re: Controller for 4 wheels (2 dual motor drivers / speed controllers)
Post by: Soeren on November 23, 2011, 06:21:13 PM
Hi,

Regenerative breaking (RB) pops up every now and then, but I have to agree with bens on its lack of importance in hobby robotics.

I would imagine that it would be something very popular and P.C. in current school projects, as they typically are more P.C. and pop than really thought through.

So, if it earns you any points, do go for it :) but don't imagine it's the least bit "green".

First, how large small a percentage of the run-time do you need as fairly hard a breaking as would give any usable amounts of regen. energy?
Second, consider the charge efficiency of around 65% tops of battery cells - and how high low is the efficiency of your homebrew regen. circuitry?
Third, what's the environmental footprint of the components going into the regen circuit?

That's just the main factors, that makes me believe that a hobby robot will actually be less green using RB (and you can quote me on that in your report, whether or not you go with RB ;D).

It's good thinking about the environment, but it's bad jumping in blindfolded, to go with the flow without considering where it takes you.
Title: Re: Controller for 4 wheels (2 dual motor drivers / speed controllers)
Post by: desirez on November 30, 2011, 03:05:47 PM
An interesting angle. I guess for me the idea was that under no applied current to the motors (ie slowing down under force loss) - with the hbridge correctly opened, whatever speed I was slowing down (faster obviously under RB) would only go to top up battery voltage. Perhaps its ignorant of me to assume the Hbridge can be induced to allow current both ways (since it takes very little voltage to switch the mosfets - losses would be at the charge side of around 0.65 as you say).

D.
Title: Re: Controller for 4 wheels (2 dual motor drivers / speed controllers)
Post by: newInRobotics on November 30, 2011, 03:58:17 PM
Hi desirez

To charge battery You need to control voltage and current in a certain manner, it is not wise to just apply increasing voltage in the inductor straight to the battery, You most definitely fry something.
Title: Re: Controller for 4 wheels (2 dual motor drivers / speed controllers)
Post by: Soeren on November 30, 2011, 04:39:01 PM
Hi,

An interesting angle. I guess for me the idea was that under no applied current to the motors (ie slowing down under force loss) - with the hbridge correctly opened, whatever speed I was slowing down (faster obviously under RB) would only go to top up battery voltage. Perhaps its ignorant of me to assume the Hbridge can be induced to allow current both ways (since it takes very little voltage to switch the mosfets - losses would be at the charge side of around 0.65 as you say).
It can be done, but the net gain is extremely marginal - like perhaps 30 seconds on a charger (just guessing, as I have no chance of knowing how often and how long you would be braking,biut the more you brake, the more power you have to spend on acceleration).

The 65% I mentioned is solely the charge (in)efficiency of the battery, mainly due to losses in the chemical process (this is why most battery chemisties heat up during charging). The other losses in the complete system is lowering this quite a bit further.

But, as mentioned, if it's for educational merit, go for it anyway - you can always argue that it isn't very efficient to get extra credit ;D