<div dir="ltr"><div><div><div>Give me a week or so to get past Easter and the RARSfest,
 but I'll dig up an article in Elektor Magazine or Circuit Cellar 
magazine from about a year or more ago precisely about this.<br><br></div>The
 author shows how to fab up your own (or you can order PC boards from 
him -- all open source) a circuit that totally galvanically isolates 
GPIO from the R-Pi and external devices.  It contains its own power 
management, is 5V compatible, and uses optoisolators.  He also shows how
 to specifically interface to a motor (and motor driver) and avoid any 
current kickback even to the new circuit.<br><br></div>The motivation 
for the author at the time was that the original R-Pi's did not have 
much GPIO (no analog at all), that what was there was 3.3V interface 
only, and that the current sourcing and sinking capability was minimal. 
 And that the Gertboard Motor Controller (<a href="http://www.newark.com/gertboard/gertbot/add-on-board-motor-power-control/dp/93X7452" target="_blank">Gertboard Addon Motor Power Control</a>) was both overkill in some respects, and not sufficient for some general I/O projects in other respects.<br><br></div><div>P.S.  The open-source circuit from the article might also gleam you some insight as to how to modify your own circuit.<br></div><div><br></div>- sgh<br><div class="gmail_extra"><br><span class="">On Mon, Mar 30, 2015 at 2:06 PM, Grawburg <span dir="ltr"><<a href="mailto:grawburg@myglnc.com" target="_blank">grawburg@myglnc.com</a>></span> wrote:<br></span>> I
 will never attach anything that even looks or smells like it could send
 current back to the RPi by connecting directly to the GPIO. I just 
crapped out a Pi while working with a stepper motor, and I'm not really 
sure how.  I was trying to set up a transistor to switch the power 
on/off to the control board (the Enable option still allows current to 
the motor) and something happened that fried the Pi.<br>
> <br>> If I can't fully isolate the Pi with a logic level shifter or I/O port 
expander I don't think I'll try to hook up a project. And I'm sure not 
going to use a transistor without a shifter.<br>
> <br>
> <br>> Brian Grawburg<br>
> <br><br>-- <br><div class="gmail_signature">Scott G. Hall<br>Raleigh, NC, USA<br><a href="mailto:scottghall1@gmail.com" target="_blank">scottghall1@gmail.com</a></div>
</div></div>