I have a question about a transistor connection. I have a heating element of 50W, 12V. I realized that in order to operate it I needed a transistor to provide a sufficiently high current. Can someone please help me how I do it exactly
If you apply ohms law to your heating element, you are going to have a little over 4.1A into that heater. It's not that it is huge by any means, unless you pick the wrong components to deal with it and they simply go up in a little stinky smoke cloud. Watch the heat dissipation.
Okay, I already realized that I needed to use a MOSFET transistor. If I use five heating elements I have to put a transistor in front of each one? How do I know how much current a transistor is going to provide me? And if I do not want to reach temperatures are too high, let's say 50 degrees? Am I using the resistor? And if so, where in the electric circuit do I place it? ... If I understand correctly, i don't need to change my code, I just do a high / low with digitalwrite?
Never use resistors for controlling power, that's just waste. PWM is used for controlling power. The duty
cycle sets the average power without having any unnecessary waste heat to git rid of.
Firstly to control a MOSFET directly from an Arduino requires a logic-level MOSFET, this is mandatory unless
you want to level-shift to 12V.
MOSFETs are picked by max voltage and on-resistance. The on-resistance determines the dissipation
for a given current load.
You can switch 5 heating elements in parallel if you want, that's simpler. Is each one 50W, or the total 50W?
What is the resistance of each heating element? (ie have you calculated that 50W correctly)
MarkT:
Never use resistors for controlling power, that's just waste. PWM is used for controlling power. The duty
cycle sets the average power without having any unnecessary waste heat to git rid of.
Firstly to control a MOSFET directly from an Arduino requires a logic-level MOSFET, this is mandatory unless
you want to level-shift to 12V.
MOSFETs are picked by max voltage and on-resistance. The on-resistance determines the dissipation
for a given current load.
You can switch 5 heating elements in parallel if you want, that's simpler. Is each one 50W, or the total 50W?
What is the resistance of each heating element? (ie have you calculated that 50W correctly)
So you want individual control, ie 4A for each MOSFET, those Sparkfun ones are OK, but overkill on
the 60V rating, 30V MOSFETs have lower on-resistance.
0.05ohm x 4^2 = 0.8W per MOSFET, so a small heatsink is indicated. Get some 10 milliohm 30V
MOSFETs and no heatsinking needed.
To switch all of them together is 20A which is beyond those MOSFETs as I said earlier, <=5 milliohm is
a good figure for that, a bit harder to find as logic-level, but they exist down to about 2 milliohm last
time I checked.