I am desiging a relay circuit using MOSFET.The MOSFET is controlled by a microcontroller.Most probably it will be STM32.It's gpio output voltage is 3.3V and can provide 15mA of current.
The relay coil voltage is 12V and coil current is 150mA. Typical circuit is shown below.I know how to design this circuit with BJT.The mosfet I am planning to use is AOSS32334C. The Vgs(th) of this mosfet is 1.8V

GPIO voltage is 3.3V it can provide 15mA maximum.I set Rlimit such that MOSFET will draw current less than 15mA.
I want to draw only 5mA.
Rlimit = 3.3/5mA = 660 Ohm. I will set R1=10times of Rlimit
May I know is this approach correct or not.
The relay coil voltage is 12V and coil current is 150mA. Typical circuit is shown below.I know how to design this circuit with BJT.The mosfet I am planning to use is AOSS32334C. The Vgs(th) of this mosfet is 1.8V

GPIO voltage is 3.3V it can provide 15mA maximum.I set Rlimit such that MOSFET will draw current less than 15mA.
I want to draw only 5mA.
Rlimit = 3.3/5mA = 660 Ohm. I will set R1=10times of Rlimit
May I know is this approach correct or not.