MisterBill2
- Joined Jan 23, 2018
- 27,874
Most motors draw their stall current at the instant that they are powered, before they start spinning. So that is the current at the first instant power is applied. It is also called "locked rotor current" for induction motors. So you need to be aware of that.Thanks on the username- I admit I was at the first StarWars release.
"peak base current" - if you mean 'base' of transistor that's wrong. The base on the 2N2222 will be a fraction of that- the BJT isn't just a switch, it's a current amplifier. So, to give your circuit everything it could need, let's just shoot for 300mA.
so to recap:
FAN CALCS:
Loaded current (fan spinning): 88mA (R = E/I so: R = 12/.088; R = 136 Ohms : Likewise P=IE so: P = 12*0.088; P = 1.05W)
Stall current (fan prevented from spinning); 120mA (you can do the calcs as above for resistance & power-consumption)
2 fans in parallel, so current peak: ~240mA
A fan is an inductive load- if they don't have a snubber internally, you can use a 1N4002 in parallel with each fan.
2N2222 CALCS:
Ic = beta * (Ib) Collector current = gain * base current; 2N2222 gain is typically 100)
0.300 = (100 * Ib)
0.300 /100 = Ib
0.003 = Ib 3mA on the base will give you 300mA on the collector
Rb = (Vb - Vbe)/Ib (Resistor on Base = voltage on GPIO - what's lost through knee/ what we need on base - R = E/I)
Rb = (3.3-0.7)/0.003
Rb = 866.66 (Closest is 860 Ohms)
That lets your 3.3V GPIO pin control your 12V fans easily.
View attachment 200186
Now, regarding dropping 12V to about 7V for your LM7805, you can use this method:
View attachment 200189
You can reference the original document here:
http://www.idc-online.com/technical_references/pdfs/electronic_engineering/Voltage_regulators.pdf




