I need to control a 12v relay with an Arduino nano ESP32.
Can somebody check if the circuit I designed is good?
Components list:
- MOSFET: 2N7000 (N-channel);
- Optocoupler: PC817;
- Diode: 1N4007;
- Relay: 40.31.7.012.0000 (coil needs 42mA @ 12V);
- Resistors.
This is the circuit I designed: (Updated version below in comments)
Thank you in advance.
Cheers, Paolo :)
Thank you guys! Here an update of the schematics:
Cheers, Paolo