<div><div>This has been a fantastic discussion about motors, power, dangers and protection, boards, hardware, etc. for those of us lower on the learning curve. As a relative newcomer to the intricacies of Raspi and Arduino motor control, it answered I number of question I have and several I didn't even know I have. </div><div><br></div><div>Suggestion: revisit this topic and the points brought up in this e-mail thread at the next meeting with the hardware - boards, MOSFETs, diodes, opto-isolators, etc. - on hand for a more visual experience with what these items actually are, how/when/where you connect them, and Q&A around their use. </div><div><br></div><div>Just my 2ยข worth. </div><div><br></div><div>John Rock<br><br><div class="acompli_signature">Sent from <a href="http://taps.io/outlookmobile">Outlook</a></div><br></div></div>
    <div class="gmail_quote">_____________________________<br>From: Terry King via TriEmbed <<a href="mailto:triembed@triembed.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="0">triembed@triembed.org</a>><br>Sent: Tuesday, June 16, 2015 21:58<br>Subject: Re: [TriEmbed] Power FETs   Vol 25, Issue 27<br>To:  <<a href="mailto:triembed@triembed.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="2">triembed@triembed.org</a>><br><br><br>Hi,<br><br>I also picked that Power FET here:<br><a href="http://yourduino.com/sunshop2/index.php?l=product_detail&p=412" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="3">http://yourduino.com/sunshop2/index.php?l=product_detail&p=412</a><br><br>I use that in several kits for school systems and Universities. One nice thing is that the gate<br>has good ESD protection (not all FETS do) which is important when students are handling the FETs<br>and plugging them into breadboards etc.<br><br>And Arduino turns them on hard with close to +5V on the gate.<br><br><br>DISCLAIMER: Mentioned stuff from my own shop...<br><br>Regards, Terry King<br>...In the Woods in Vermont USA<br><a href="mailto:terry@terryking.us" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="4">terry@terryking.us</a><br><br>-The One who Dies with the most Parts LOSES. What do you need??<br><br>Send TriEmbed mailing list submissions to<br>   <a href="mailto:triembed@triembed.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="5">triembed@triembed.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>  <a href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="6">http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</a><br>or, via email, send a message with subject or body 'help' to<br>    <a href="mailto:triembed-request@triembed.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="7">triembed-request@triembed.org</a><br><br>You can reach the person managing the list at<br>      <a href="mailto:triembed-owner@triembed.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="8">triembed-owner@triembed.org</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of TriEmbed digest..."<br><br><br>Today's Topics:<br><br>   1. Re: Transistor as switch (Shane Trent)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Tue, 16 Jun 2015 12:20:13 -0400<br>From: Shane Trent <<a href="mailto:shanedtrent@gmail.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="11">shanedtrent@gmail.com</a>><br>To: Grawburg <<a href="mailto:grawburg@myglnc.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="12">grawburg@myglnc.com</a>><br>Cc: TriEmbed Discussion <<a href="mailto:triembed@triembed.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="13">triembed@triembed.org</a>><br>Subject: Re: [TriEmbed] Transistor as switch<br>Message-ID:<br>     <<a href="mailto:CAAFjd3qaMbLSZnjKjBzhMUjoV1g_f1QRWX85J4L-2XkWE2+fFA@mail.gmail.com" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="14">CAAFjd3qaMbLSZnjKjBzhMUjoV1g_f1QRWX85J4L-2XkWE2+fFA@mail.gmail.com</a>><br>Content-Type: text/plain; charset="utf-8"<br><br>Brian,<br><br>It looks like you picked a good FET for your application. On the datasheet<br>it appears the FET will be turning on strongly by Vgs = 3V and should be<br>good for a couple of amps. I am not sure why your FET circuit did not work<br>with the 3.3k  gate resistor. The 3.3k would slow down the switching a<br>little but should not keep it from working.<br><br>You should never need a BJT between the Pi and FET unless you need to<br>switch a higher voltage (non-logic level FET) or you want faster switching<br>speed. The image below shows a kind of standard configuration for driving a<br>low-side (switching the load's connection to ground). The diode should be<br>across the motor leads if possible. The R1 pull-down resistor is only<br>needed if you are not actively pulling-down the gate to turn off the FET.<br>Note that if you do use a pull-down to turn off the FET then the value of<br>any resistor between the GPIO pin and the gate becomes much more important<br>because it becomes a voltage divider between the output pin and the gate.<br>Your 33 ohms would work well with a 10k pull-down resistor.<br><br><br><br>Shane<br><br>On Tue, Jun 16, 2015 at 11:58 AM, Grawburg via TriEmbed <<br><a href="mailto:triembed@triembed.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="16">triembed@triembed.org</a>> wrote:<br><br>> After bouncing it back and forth during the night I decided to use a<br>> MOSFET afterall.<br>> I had some FQP30N06L N-channels and wired it up this morning. Works<br>> perfectly.<br>> I did have to lower the resistor between the Pi's GPIO pin and the base to<br>> 33 ohm from 3.3 k.<br>> If this was a real project, say with a 24VDC pump, I would use a BJT<br>> between the Pi and the MOSFET.<br>> I will address this in the class and in the project manual the students<br>> get.<br>> I'll show them the relay set-up so they are at least familiar with the<br>> concept.<br>><br>><br>> Brian<br>><br>><br>><br>><br>><br>><br>><br>><br>> _______________________________________________<br>> Triangle, NC Embedded Computing mailing list<br>> <a href="mailto:TriEmbed@triembed.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="18">TriEmbed@triembed.org</a><br>> <a href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="19">http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</a><br>> TriEmbed web site: <a href="http://TriEmbed.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="20">http://TriEmbed.org</a><br>><br><br><br><br>--<br>A blog about some of my projects.  <a href="http://fettricks.blogspot.com/" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="21">http://fettricks.blogspot.com/</a><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL:<br><<a href="http://mail.triembed.org/pipermail/triembed_triembed.org/attachments/20150616/2374ad44/attachment-0001.html" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="22">http://mail.triembed.org/pipermail/triembed_triembed.org/attachments/20150616/2374ad44/attachment-0001.html</a>><br><br>------------------------------<br><br>Subject: Digest Footer<br><br>_______________________________________________<br>TriEmbed mailing list<br><a href="mailto:TriEmbed@triembed.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="23">TriEmbed@triembed.org</a><br><a href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="24">http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</a><br><br><br>------------------------------<br><br>End of TriEmbed Digest, Vol 25, Issue 27<br>****************************************<br><br><br><br><br>_______________________________________________<br>Triangle, NC Embedded Computing mailing list<br><a href="mailto:TriEmbed@triembed.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="25">TriEmbed@triembed.org</a><br><a href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="26">http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</a><br>TriEmbed web site: <a href="http://TriEmbed.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="27">http://TriEmbed.org</a><br><br><br></div>