piclist 1998\10\03\035153a >
Thread: 12C509 to MOSFET H-Bridge ... how to avoid shorts?
www.piclist.com/techref/io/motors.htm?key=h%2Dbridge
flavicon
face BY : Mark Willis email (remove spam text)



Rusty on MOSFET control stuff (Seattle Robotics would be a good
resource here again, http://www.seattlerobotics.org/ and look at links,
those folks love H-bridges <G>)  One post in their mailing list
suggested the Zetex ZHB6718 H-Bridge (it's a PNP/NPN bridge, however.)
I need more info (Might be a good way to do one project.)  One quote
from there mentions making sure you diode protect MOSFETs more than
bi-polar transistors, as back EMF can peak pretty high (>>2x supply
voltage.)  Also suggested: .1 uF caps across the motors to damp
transients (or even 3, 1 Hot-neutral, 1 hot-motor's case, 1
neutral-motor's case, to further reduce RF noise.)

 You might look at the SGS-Thompson L298.

 The "Mobile Robot" book is well-recommended, I need to buy one myself
<G>

 On protection from shorts, it's hard (from what I've seen of Sumo
robots at least, where the startup currents "resemble" short circuit
currents;  You could do thermal limiting I suppose?  Others here are
better at this than I <G>  I'll suggest one trick in your code:  I'd
think about having a "velocity" number in the code, i.e. you have One
and only One place you look to see what the desired speed of the train
is;  You need a second number for what the current speed setting is, as
well.  (Two 8-bit numbers should do.)  If you get a "Go Forward", set
the Desired speed to Full Speed Ahead, and increment the Current
velocity every quarter second or so until they match; if a "Go
Backwards", set Desired Speed to slower or to Stop, and slowly decrement
the Current Velocity.  (Maybe one Go Forward means speed up until you
reach full speed, the first Go Back means slow down to a stop, a second
Go Back would mean reverse once you've stopped.)  And only enable one
pair of MOSFETs if the -current velocity- number's "positive", or the
other if it's "negative".  And energize the MOSFETs to a proportional
time to your "current velocity" number.  Pretty simple then to not short
circuit, if you debug the code somewhat, you initialize that number on
startup/watchdog, and you only increment/decrement the "Current" number
every 1/4 second or so (and watch it more often to control the PWM)  You
get inertia as a side benefit <G>

 Happy to help if you want more, or to quiet down if I'm confusing <G>

 Mark

James Cameron wrote:
{Quote hidden}

<3615D708.5E2B702F@nwlink.com> 7bit

See also: www.piclist.com/techref/io/motors.htm?key=h%2Dbridge
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) 12C509 to MOSFET H-Bridge ... how to avoid shorts?

month overview.

new search...