You might be better off with the following circuit.
(or skip all of this, and just use a 12v switching regulator or a 12v switching power supply. You can find LM2596HV based regulators for a few bucks that will work up to 60v, and most 12v switching power supplies will work with a 48v nominal battery.)
This circuit will provide a more stable output voltage that is less dependent on either the input voltage or the output current draw (compared to a drop resistor). It can also in many cases be cheaper than a large power resistor. The heat is dissipated through the mosfet (instead of a resistor) which makes it easy to throw a heatsink on (instead of buying a larger resistor).
Here is the way this works:
1. The resistor R1 lets some current through the zener diode D1 so that voltage at the gate of the n-channel mosfet is the zener diode's breakdown voltage.
2. Once the mosfet's gate-to-source voltage (Vgs) reaches it's transfer threshold, the mosfet will act as a variable resistor and drop just enough voltage from it's drain-to-source to keep the gate-to-source voltage drop at the mosfet's transfer threshold.
3. The mosfet's source is the output. This means we can fairly precisely control the output voltage with the following equation: Vout = V(D1) - Vgs(M1)
4. The 100nF ceramic capacitors C1 and C2 are only there to help smooth and stabilize the circuit. It's possible they aren't actually needed in practice.
5. The load resistor R_LOAD is only there to enable simulation of different current draws. In your case, it is a fan instead of a resistor.
To see how this circuit works, click on the image above and run it through some simulations.
Here is how to calculate the components:
Note: I am calculating Vin using an assumed 16 cell lifepo4 battery. Charged to 3.6v per cell this will have a 57.6 maximum voltage. Discharged to 3v per cell this will have a 48v minimum voltage. Please revise the numbers based on your specific battery configuration and charge/discharge voltages.
1. Pick the n-channel mosfet (M1). The important criteria to look for are (check the datasheet if needed):
- Maximum Vds (voltage drain-source): Pick one that is more than the maximum input voltage.
- Maximum Vgs (voltage gate-source): Pick one that is more than the intended output voltage.
- Vgs(th) (gate-source threshold voltage): This will help determine what value zener diode to use to get your intended output voltage. Vout = Vgs(th) + V(diode). Note: This value may have a range in the datasheet. Worst case your output voltage will be slightly lower or higher than your intended voltage, but probably not by enough to matter to a fan.
2. Pick the zener diode (D1):
- Breakdown voltage: Pick one based on the equation: V = Vgs(th) + Vout. In this case, V = 16, (4 + 12)
- Power: You want to run about 5mA through the zener to make sure it performs it's job properly. We can calculate the power through the resistor with the equation: P = I * V. In this case, P = 80 mW, (5mA * 16v) and a standard 1/2 W zener would work fine.
3. Pick the zener resistor (R1):
- resistance (ohms): You want to run about 5mA through the resistor (so that about 5mA is running through the zener), so pick one based on the equation: R = V / I. The resistor will drop Vin - V(D1), so, V = 32v to 41.6v, (48v - 16v to 57.6v - 16v). So, R = 6.4k to 8.32k, (32v / 5mA to 41.6v / 5mA. In this case I just rounded up to 10k. This means we will be running a little less than 5mA through the resistor and zener, but it should still be close enough to work (3.2mA to 4.16mA) properly.
- Power: We can calculate the power through the resistor with the equation: P = I * V. In this case, P = 102.4 mW to 173 mW (3.2mA * 32v to 4.16mA * 41.6v) and a standard 1/4 W or 1/2 W resistor should work fine.
4. Capacitors C1 and C2 are just basic 100nF ceramic capacitors. No need to even think about them much. In practice, they might not even be needed.
5. Pick the heatsink: A fairly standard TO-220 mosfet can usually dissipate about 1 watt without a heatsink. You can calculate how much power the mosfet will need to dissipate using the equation: P = (Vin - Vout) * I where 'I' is the output current. So if the maximum input voltage is 57.6v (48v nominal), and the load (fan) is 12v @ 100mA the mosfet would dissipate about (57.6 - 12) * 0.1 = 4.56 watts at the worst case. You would definitely need to add a heatsink in this case. Calculating a heatsink can be tricky, but you would probably be ok with something about the size of the heatsink on a motherboard chipset.