I need to switch an Arduino input pin (0-5 V, max current is 40 mA) from an EL2008 Beckhoff digital output module (+24 V HIGH, 0V LOW, max output current of 0.5 A) using the circuit depicted below. I have not tested the circuit outside of simulations.
Would it work as desired?
That is, if I connect the source to the Arduino's pin would it
- Switch the pin
- Not damage the Arduino
- Will the resistors burn up from the power being dissipated?
Please note: I am using Vcc from the Arduino as the drain-to-source voltage. Additionally, I've used a battery of 24 V and 48 ohm internal resistance to mimic the HIGH state (@ 0.5 A) of the EL2008 Beckhoff module.
- N-Channel MOSFET: IRL520N
- Resistors: 1.5K Ohm and 390 Ohm (both 1/4 W)
P23
is always connected toGND
. If you use the nMOSFET you need to changeD1
into a resistor and connect thedrain
toP23
. Or use a pMOSFET, get rid of the diode and connect a resistor betweensource
andGND
. ConnectP23
to the source. \$\endgroup\$ – Swedgin Feb 19 at 10:00P = UI = U * U / R
so that's0.3W
. I'd use resistors of an order x1000 bigger. \$\endgroup\$ – Swedgin Feb 19 at 10:04