Active Cooling 5v brushless fan with Motor Speed Controller soft PWM
#14
(02-04-2017, 07:35 PM)psychedup Wrote: Pardon my ignorance regarding electronics, but why do you need a transistor? Is it because the fan needs 5V but the GPIO is only 3.3? Also why is a resistor required?

Please Read through this Link:

hi Chris, the transistor is needed as a current switch. The GPIO being used as a pwm pin is 3v3 on|off with a duty cycle to control the fan motor speed.  The fan brushless motor requires 5v period.  So, we are using a transistor (controlled by a 3v3 pwm signal) to switch on|off a 5v 400ma current with a duty cycle which slows the motor speed.

The 3v3 pwm signal on the base of the transistor switches on|off the motor current which has an EMF of 5v, and is being limited (collector emitter) somewhere between 200ma and 300ma. The current limiting resistor (ballast resistor) keeps the 3v3 pwm signal current (at the base) quite low just a few milli amps. Failing to put the base-emitter limiting resistor in the circuit has the same bad consequence for the transistor that trying to drive an LED without a ballast resistor has--- blown transistor.  Consequently the GPIO current is very low.  The motor current is relatively high at 5v,  and the GPIO signal voltage is 3v3 (its limit) with a relatively small current.  

The transistor-resistor combination is the simplest of the "driver" circuits (or switches) for controlling a relatively high load with a relatively low signal source.



Please Read through this Link:

The explanation in the link is pretty clear ; with diagrams, for the theory behind transistor switching.
marcushh777    Cool

please join us for a chat @  irc.pine64.xyz:6667   or ssl  irc.pine64.xyz:6697

( I regret that I am not able to respond to personal messages;  let's meet on irc! )
  Reply


Messages In This Thread
RE: Active Cooling 5v brushless fan with Motor Speed Controller soft PWM - by MarkHaysHarris777 - 02-05-2017, 11:09 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Controlling a Servo Motor casmiguefl 3 6,704 07-13-2017, 11:14 PM
Last Post: MarkHaysHarris777
  Active Cooling soft PWM follow-on fan motor speed controller driver MarkHaysHarris777 3 7,310 09-02-2016, 11:46 PM
Last Post: MarkHaysHarris777
  High-speed GPIOs dsnyder 3 5,501 05-05-2016, 09:07 PM
Last Post: martinayotte

Forum Jump:


Users browsing this thread: 2 Guest(s)