Will this raspberry pi circuit work

dc motorraspberry pi

schematic

simulate this circuit – Schematic created using CircuitLab

Will this circuit work with the raspberry pi and will the rpi be safe? I want the motor to turn on when GPIO_2 is set high. It is a DC motor and the transistor is a BC635 (I couldn't change the parameters on the diagram).

Best Answer

Your motor needs to be current limited to 1A or you are likely to damage the BC635. I also think there may be a chance that your GPIO current may not be sufficient to drive the transistor to get ~1A into the motor: -

enter image description here

What this part of the data sheet tells you is the to get 500 mA into the motor requires a base current that is only 25 times smaller at 20 mA - you need to verify that your GPIO can supply this current without risk to the RaPi.

Note also that if you need to activate your motor to close to 9V under mechanical heavy (ish) loads you might even have to push 50 mA into the base of the transistor.

And of course, you always need a base resistor because the GPIO pin may be able to supply more than 50 mA i.e. the base resistor is there to protect the transistor and the GPIO pin.


RaPi current appears to be about 16mA maximum according to this document below: -

enter image description here

See also this Q&A on SE.RaPi