Are you suggesting using a logic level power mosfet 50v/10a instead of the n23904?HI: BJT may load the RS232. Best bet is to use a logic level power Mosfet rated at 50 volts and 10 amps. don't forget to provide adequate heat sinking for the mosfet. The logic level mos will switch on fully at 5 volts.
1/4 watt is fine for the resistors and per Analog I would get R2 up around 10K or greater.The resistors? What power rating do you prescribe for the two resistors? Is there a formula to determine that based on their position in the circuit? This is cool stuff. Nice break from endless hacking.
There are formulas as you've just seen. But there is also a useful rule-of thumb. I only worry about the resistor rating when there is power involved, for instance in series with the load. For information-level signals, currents should be low and therefore I^2•R heating is also tiny. You don't even need to bother with the calculations.The resistors? What power rating do you prescribe for the two resistors? Is there a formula to determine that based on their position in the circuit? This is cool stuff. Nice break from endless hacking.
Except when you do.There are formulas as you've just seen. But there is also a useful rule-of thumb. I only worry about the resistor rating when there is power involved, for instance in series with the load. For information-level signals, currents should be low and therefore I^2•R heating is also tiny. You don't even need to bother with the calculations.
Fire away, always looking for ideas to learn from. The power is 12vdc and 8 amps driven by the control leads of a microcontroller' rs232 serial port.Just a thought Why are you fixated on the MOSFET?You could use the BJT by itself as a switch. A good power BJT can also work well. Mosfets do run cooler it is true, just asking the question.Want an idea schematic I do like to draw.?

Not fixated, but his description in post #9 steered me toward recommending a high-side switch.Just a thought Why are you fixated on the MOSFET?
Hi: The Mosfet with it's high input impendence will not load the RS232 output. It requires 5 volts for the Logic Level device to be fully switched on with negligible current. Both devices have their uses however in this situation, the Mosfet makes more sense. Another good device for switching situations it the IGBT (Insulated Gate Bipolar Transistor). This device combines the best of BJT and MOS technology. It uses a Mos gate with a BJT body structure. Hope this helps.Just a thought Why are you fixated on the MOSFET?You could use the BJT by itself as a switch. A good power BJT can also work well. Mosfets do run cooler it is true, just asking the question.Want an idea schematic I do like to draw.?
This ^ is what led to the High Side switch.Not fixated, but his description in post #9 steered me toward recommending a high-side switch.
ak
That's the general consensus but bumping R2 from 1K to 10K or greater.For what it is woth I liske schematic in post# 17
f a tThat is exactly it. R2 can be anything larger; I'd go with 10K. The 3904 is ultra-common in this type of application. For the p-channel FET, it mosly depends on where you ae located and what components you have access to. To go fishing, you want a FET with at least 30 V Vds and 20 A Id. These come from the standard rule of thumb for electronic components - for reliability, double everything. Need to withstand 12 V, use a 30 V part. Need to source 8 A, use a 20 A part.
To determine the heat generated in the FET when it is on, look at the Rds(on) spec. This is the minimum drain-source resistance, usually in milliohms for a power part. Joule's Law is power equals resistance times the square of the current, or p = i^2 x R. That power, plus the package and the ambient air conditions, determines if you need a heatsink. In very round numbers, you do if the device power is 1 W or more. If the size or weight of a heatsink is a problem, you can spend your way out of it. A FET with a higher current rating than you need and lower Rdson spec will cost more, but run cooler.
ak
You might want to consider an opto-isolator. The circuit you're already looking at seems good to me, and I wouldn't generally worry about it being a threat to the microcontroller, but with that kind of money on the line, maybe better safe than sorry. Optos are about as safe as you can get.All,
One thing I neglected, which really shouldn't make any difference, is that the micro-controller that will be controlling the signaling costs about $1800 a peice. So protecting the uController is obviously important. So a design which does as much as possible to negate any "feedback" into the uController's pins is a Big Plus. Duh, right?