<div dir="ltr">Brian,<div><br></div><div>The max collector current on the 2N3904 is 200 ma, so to be safe you would need to keep the current real low. If you motors can peak higher than 200 ma you may eventually burn out the transistor, so you will also need to put a 0.1 uf cap from each lead of the motor to ground (assuming that neither of the leads are ground).</div><div><br></div><div>This is not the best solution for a motor, because motors are inductive and will cause reverse pulses and do a lot of spiking. In a pinch it may work however, but don't design this into a permanent project. If you hook this up to a microcontroller or your RPi think about having extra cash around to buy a new one when the motor sends a big spike back through the circuit.</div><div><br></div><div>In other words without seeing the motor and it's specs. it's hard to guess what would happen.</div><div><br></div><div>Carl</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 15, 2015 at 5:37 PM, Grawburg via TriEmbed <span dir="ltr"><<a href="mailto:triembed@triembed.org" target="_blank">triembed@triembed.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Shouldn't a 2N3904 transistor be able to switch a 5VDC motor?<br>
My circuit is correct since I tested it first with an LED, then replaced the LED with a cheap little DC motor. (I did use a diode to protect the circuit).  I'm using the Pi for the necessary voltage on the transistor base.  Yes, I did check to see if the motor worked with 5V.<br>
<br>
<br>
Brian Grawburg<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Triangle, NC Embedded Computing mailing list<br>
<a href="mailto:TriEmbed@triembed.org">TriEmbed@triembed.org</a><br>
<a href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org" rel="noreferrer" target="_blank">http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</a><br>
TriEmbed web site: <a href="http://TriEmbed.org" rel="noreferrer" target="_blank">http://TriEmbed.org</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">-------------------------------------------------------------------------------<br>Carl J. Nobile (Software Engineer)<br><a href="mailto:carl.nobile@gmail.com" target="_blank">carl.nobile@gmail.com</a><br>-------------------------------------------------------------------------------</div>
</div>