Ask Hackaday: Dude, Where’s My MOSFET?

Originalartikel

Backup

<html> <p>(Bipolar Junction) Transistors versus MOSFETs: both have their obvious niches. FETs are great for relatively high power applications because they have such a low on-resistance, but transistors are often easier to drive from low voltage microcontrollers because all they require is a current. It&#8217;s uncanny, though, how often we find ourselves in the middle between these extremes. What we&#8217;d really love is a part that has the virtues of both.</p> <p>The ask in today&#8217;s <em>Ask Hackaday</em> is for your favorite part that fills a particular gap: a MOSFET device that&#8217;s able to move a handful of amps of low-voltage current without losing too much to heat, that is still drivable from a 3.3 V microcontroller, with bonus points for PWM ability at a frequency above human hearing. Imagine driving a moderately robust small DC robot motor forwards with a microcontroller, all running on a LiPo &#8212; a simple application that doesn&#8217;t need a full motor driver IC, but requires a high-efficiency, moderate current, and low-voltage-logic compatible transistor. If you&#8217;ve been here and done that, what did you use?</p> <p/> <h2 id=„bipolars“>Bipolars</h2> <p>Years ago, the obvious answer to this dilemma would be <a href=„http://hackaday.com/2015/08/17/you-can-have-my-tips-when-you-pry-them-from-my-cold-dead-hands/“>TIP120 or similar</a> bipolar junction transistor (BJT) &#8212; and a lot more batteries. The beauty of old-school <a href=„https://en.wikipedia.org/wiki/Darlington_transistor“ target=„_blank“>Darlington transistors</a> in low-voltage circuits is that the microcontroller only needs to produce a small <em>current</em> to push relatively large currents on the business end. With BJTs, as long as you can get over the base-emitter junction voltage (typically under one or two volts) you just pick the right base resistor and you&#8217;re set. This is in contrast to FETs of the day which require a given <em>voltage</em> to pass a current through them. Gate voltages for the big FETs are optimized for the 4-5 V range which is lousy if you all you have is a LiPo battery.</p> <figure id=„attachment_233246“ style=„width: 260px“ class=„wp-caption alignright“><a href=„https://hackadaycom.files.wordpress.com/2016/11/dscf9050_bright.png“ target=„_blank“><img data-attachment-id=„233246“ data-permalink=„http://hackaday.com/2016/12/13/ask-hackaday-dude-wheres-my-mosfet/dscf9050_bright/“ data-orig-file=„https://hackadaycom.files.wordpress.com/2016/11/dscf9050_bright.png“ data-orig-size=„2848,2136“ data-comments-opened=„1“ data-image-meta=„{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}“ data-image-title=„dscf9050_bright“ data-image-description=„“ data-medium-file=„https://hackadaycom.files.wordpress.com/2016/11/dscf9050_bright.png?w=400“ data-large-file=„https://hackadaycom.files.wordpress.com/2016/11/dscf9050_bright.png?w=800“ class=„size-thumbnail wp-image-233246“ src=„https://hackadaycom.files.wordpress.com/2016/11/dscf9050_bright.png?w=250&amp;h=188“ alt=„TIP122/127 H-Bridge: Easy to Build, but a Battery Hog“ width=„250“ height=„188“ srcset=„https://hackadaycom.files.wordpress.com/2016/11/dscf9050_bright.png?w=250&amp;h=188 250w, https://hackadaycom.files.wordpress.com/2016/11/dscf9050_bright.png?w=500&amp;h=376 500w, https://hackadaycom.files.wordpress.com/2016/11/dscf9050_bright.png?w=400&amp;h=300 400w“ sizes=„(max-width: 250px) 100vw, 250px“/></a><figcaption class=„wp-caption-text“>TIP122/127 H-Bridge: Easy to Build, Battery Hog</figcaption></figure><p>While the power Darlington is easy to drive, it has a few drawbacks. First is the voltage drop through the device when it&#8217;s conducting. Drop one or two volts on the transistor and you&#8217;ve pretty quickly got a few watts of power going to waste and a hot chip. And that&#8217;s assuming that you&#8217;ve got the voltage drop to spare &#8212; a volt or two off of the 3.6 V on a LiPo battery pack is a serious loss.</p> <p>With apologies to [Adam Fabio], the BJT is off the list here. It&#8217;s easy to drive at low voltages, so it <em>would</em> work, but it won&#8217;t work well because of stupid quantum mechanics.</p> <h2 id=„fets“ style=„clear:none;“>FETs</h2> <p>MOSFETs should be great for driving small motors, on paper. They have incredibly low on-resistances, easily in the milliohms, and they can turn on and off fast enough that the PWM will be efficient and noiseless. The flaw is that garden-variety power MOSFETS, for driving big loads, tend to have similarly large gate threshold voltages, which is a showstopper for low-voltage circuits. What can we do?</p> <p><a href=„https://hackadaycom.files.wordpress.com/2016/11/mosfet-sch2.png“ target=„_blank“><img data-attachment-id=„233292“ data-permalink=„http://hackaday.com/mosfet-sch-3/“ data-orig-file=„https://hackadaycom.files.wordpress.com/2016/11/mosfet-sch2.png“ data-orig-size=„2128,1613“ data-comments-opened=„1“ data-image-meta=„{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}“ data-image-title=„mosfet-sch“ data-image-description=„“ data-medium-file=„https://hackadaycom.files.wordpress.com/2016/11/mosfet-sch2.png?w=400“ data-large-file=„https://hackadaycom.files.wordpress.com/2016/11/mosfet-sch2.png?w=800“ class=„wp-image-233292 size-thumbnail alignleft“ src=„https://hackadaycom.files.wordpress.com/2016/11/mosfet-sch2.png?w=250&amp;h=189“ width=„250“ height=„189“ srcset=„https://hackadaycom.files.wordpress.com/2016/11/mosfet-sch2.png?w=250&amp;h=189 250w, https://hackadaycom.files.wordpress.com/2016/11/mosfet-sch2.png?w=500&amp;h=378 500w, https://hackadaycom.files.wordpress.com/2016/11/mosfet-sch2.png?w=400&amp;h=303 400w“ sizes=„(max-width: 250px) 100vw, 250px“/></a>If the motor were being driven by a higher-voltage source, and you were switching the MOSFET on the low side, then you can use the motor&#8217;s power supply to drive the MOSFET, switching it on and off with whatever is handy &#8212; a small-signal BJT is just about perfect here. That&#8217;s the classic solution, illustrated here. As long as the motor voltage is high enough to fully open&#160;the MOSFET, you can just use that for the switching voltage.</p> <p>In the actual application that spurred this column, I wanted to use a LiPo cell for the motor <em>and</em> the logic, but I ended up doing something ridiculous. I started off with a go-to MOSFET from my 5 V logic days, the IRF530, but it barely turns on at 3.3 V. So I cobbled on a 9 V battery to provide the switching voltage &#8212; purely to drive the MOSFET into full conduction. This 9 V &#8220;high&#8221; voltage is switched by a 2N2222 small-signal BJT and seems to do the job just fine. It works, but it&#8217;s a horrible hack; I wanted to drive everything off the LiPo, and failed.</p> <h3 id=„other-options“>Other Options?</h3> <p>Big power MOSFETs, in addition to having a higher gate voltage, also have some capacitance that needs to be overcome to turn them on and off. Between the fully-on and fully-off states, they get hot, so it&#8217;s important to push enough current into the gate fast enough that they transition quickly. Thus, big power MOSFET circuits use a gate driver circuit to drive them. A low-voltage gate driver, paired with my IRF530, would certainly be an option here. But all this just for a medium-sized DC motor? Seems like overkill.</p> <p><a href=„https://hackadaycom.files.wordpress.com/2016/11/7307.png“ target=„_blank“><img data-attachment-id=„233253“ data-permalink=„http://hackaday.com/2016/12/13/ask-hackaday-dude-wheres-my-mosfet/attachment/7307/“ data-orig-file=„https://hackadaycom.files.wordpress.com/2016/11/7307.png“ data-orig-size=„469,448“ data-comments-opened=„1“ data-image-meta=„{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}“ data-image-title=„7307“ data-image-description=„“ data-medium-file=„https://hackadaycom.files.wordpress.com/2016/11/7307.png?w=400“ data-large-file=„https://hackadaycom.files.wordpress.com/2016/11/7307.png?w=469“ class=„alignright size-thumbnail wp-image-233253“ src=„https://hackadaycom.files.wordpress.com/2016/11/7307.png?w=250&amp;h=239“ alt=„7307“ width=„250“ height=„239“ srcset=„https://hackadaycom.files.wordpress.com/2016/11/7307.png?w=250&amp;h=239 250w, https://hackadaycom.files.wordpress.com/2016/11/7307.png?w=400&amp;h=382 400w, https://hackadaycom.files.wordpress.com/2016/11/7307.png 469w“ sizes=„(max-width: 250px) 100vw, 250px“/></a>Once we embrace complexity, there are small H-bridge and push-pull driver ICs that might fit the bill, and they&#8217;ve naturally got MOSFETs inside. Now that I think about it, I&#8217;ve built small-motor H-bridges from N/P complementary pair MOSFET chips in the past, and they work for low voltages. Somewhere in my pile I have some IRF7307s that will just barely do the job. I&#8217;d be ignoring one of the two paired FETs, but who cares?</p> <p>Taking the next step in IC complexity, the various stepper-motor driver ICs can usually push and pull an amp or two, and operate on low voltages. You could conceivably drive a DC motor off of one phase of a stepper controller, but that just seems wasteful. But something like (half of) a TB6612 would work.</p> <p>On the other hand, the fact that these various gate-driver, H-bridge, and stepper controller ICs can handle the currents I want with low logic voltage thresholds suggests that there should be at least a few monolithic, and cheaper, MOSFETs that can switch a few amps around on low voltages. Where are they hiding?</p> <h2 id=„the-ask“>The Ask</h2> <p>So what would you do when you need to push up to two amps DC in one direction at LiPo battery voltages, with low loss, driven (potentially by PWM) from a 3.3 V microcontroller? Feel free to take this as a guideline, and deviate wherever you&#8217;d like from the spec if it brings up an interesting solution.</p> <p>Whatever you do, don&#8217;t give me current figures out of a datasheet headline that are based on microsecond pulses, only to find out that it&#8217;s outside of the part&#8217;s DC safe operating area. I&#8217;ve been down that road before! It never ceases to amaze me how they design parts that are rated for 100 A at 10 microseconds that can only handle 300 mA steady state.</p> <p>This <em>has</em> to be a common hacker use case. Does anyone have the MOSFET I&#8217;m looking for? Or do you all just use motor driver ICs or tack random 9 V batteries into your projects? (Ugh!)</p> <p>[MOSFET tattoo image from <a href=„https://goo.gl/images/0Q3kVY“ target=„_blank“>Google image search</a>; <a href=„http://makeyrmomsad.tumblr.com/post/86227822199/diagram-of-a-mosfet-on-ian-from-mosfett“ target=„_blank“>Make Yr Mom Sad on Tumblr</a> (dead link)]</p> </html>