Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: maxheald on May 30, 2010, 10:32:22 AM

Title: which motor controller?
Post by: maxheald on May 30, 2010, 10:32:22 AM
Hello I am building a robot and am using an Arduino to output four pwm signals. Two for forward two for reverse. I am controlling two wheelchair motors and it is tank style steering. The motors run about 7 amps no load. I have my eye on this controller: http://www.electronickits.com/kit/complete/motor/k166.htm (http://www.electronickits.com/kit/complete/motor/k166.htm) I'm just not sure I can interface the Arduino with this controller. The controller goes from full reverse when the pot is 0v to full forward at 5v.

Any suggestions on a motor controller? I'm trying to follow this guy: http://www.rediculouslygoodlooking.com/site/lawnmower.html (http://www.rediculouslygoodlooking.com/site/lawnmower.html)

Thank you!
Title: Re: which motor controller?
Post by: Hawaii00000 on May 30, 2010, 10:53:04 AM
You could try using a servo to turn the pot.
Have you looked at any motor controllers that are controlled by serial? Those would just plug into the arduino with no problem.
Title: Re: which motor controller?
Post by: madsci1016 on May 30, 2010, 01:34:04 PM
You could try using a servo to turn the pot.

WAY Overkill and more parts to fail.

If you are trying to control a device that is controlled by a POT, you can use a digital pot.

And there's an arduino guide for using them.

http://www.arduino.cc/en/Tutorial/SPIDigitalPot (http://www.arduino.cc/en/Tutorial/SPIDigitalPot)

 I never really looked at your links, but this should work by the description in your post.
Title: Re: which motor controller?
Post by: Soeren on May 30, 2010, 07:41:48 PM
Hi,

I am controlling two wheelchair motors and it is tank style steering. The motors run about 7 amps no load. I have my eye on this controller: http://www.electronickits.com/kit/complete/motor/k166.htm (http://www.electronickits.com/kit/complete/motor/k166.htm) I'm just not sure I can interface the Arduino with this controller. The controller goes from full reverse when the pot is 0v to full forward at 5v.
Using K166 you'll have to beef up the current handling of the board and terminals (perhaps mount heavy wire from as close to the MOSFETs as possible and directly to the motors.
You shouldn't take too much notice of the mentioned 6V..32V operating voltage. At 6V it won't allow much current and the MOSFETs will run hot with a light load. t anything beyond 12V, it needs at least a minor mod, to keep the outputs of the LM324 from  going too high and perhaps killing the transistors.
It's an overall bad and slow switching design, made by someone that obviously don't understand MOSFETs, it could be changed here and there to be almost bearable, but why bother when better designs can be had?

Besides that, If the Arduino has got a D/A-C, you could rip out the potentiometer and feed a the S/A-C output to where the wiper connected.
Better yet, rip out the LM324 and control the bridge directly from where pins 8 and 14 used to connect

Question is... Is it worth paying $25 a pop if you're going to just use the bridge and a little "glue"?
(You'd need 2 kits, one for each motor).


Any suggestions on a motor controller? I'm trying to follow this guy: http://www.rediculouslygoodlooking.com/site/lawnmower.html (http://www.rediculouslygoodlooking.com/site/lawnmower.html)
He has got a schematic for a H-bridge on that site. This bridge is flawed as well though, the pull up resistors are of a way too large value and the way he's controlling the N-channel devices are beyond redemption, as the switch on times of the low side transistors will be horribly long, making them white hot. The suggestion of using 25kHz for the PWM makes it get even hotter, than if using a more sensible frequency for DC motors of around 3 kHz tops.

I didn't read through the entire page very carefully, so i don't know how he used the PWM, but you should only PWM the lower side devices, as (when used correctly) N-channel devices in a (more or less) matched pair are faster to switch.

If you are able to follow a schematic and perhaps etching your own PCBs, I could post a more efficient design.
Title: Re: which motor controller?
Post by: BANE on May 30, 2010, 10:06:43 PM
just from my experience with motor controllers, save yourself the trouble and buy a sabertooth from www.dimensionengineering.com (http://www.dimensionengineering.com)
Title: Re: which motor controller?
Post by: maxheald on May 30, 2010, 10:11:16 PM
Soeren: Thanks for the input, I am quite an amateur when it comes to circuit design. As of now I've decided to go with the H-bridge design from the lawnbot. Only because I'm using his code on the Arduino and already have it working lighting up LED's.
So If you have a design that I can use the four PWM signals I would much appreciate it. I have never etched a PCB but am pretty confident I could.

 Thank you!
Title: Re: which motor controller?
Post by: maxheald on May 30, 2010, 10:22:17 PM
Bane: now whats the fun in that?  ;)
Title: Re: which motor controller?
Post by: tmoney68 on May 30, 2010, 11:39:45 PM
I've had nothing but headaches with my saber tooth, to the point where I have almost given up on trying to use it and scrapping my whole project. Something simple as driving two wheelchair motors has turned into a battle of wills between myself and the 2x25. I cannot recommend it.