Hey Everyone, I hope you're all doing great.
I'm still new to the world of Arduino, Shift Registers and MOSFETs. Hence, your help would be very much appreciated.
I have a project in which I have to control 170 PIN diodes of type SMP1345-079LF according to a certain pattern. Those PIN diodes, according to their datasheet, have a forward voltage of 0.89V. Also, to be properly biased, they need a current of 10 mA flowing through them.
This said, I am using Arduino MEGA along with shift registers and MOSFETs to do the job.

In the diagram above, you can see a sample of how I am planning to do the connections.
When the PIN diode should be turned ON, the Shift Register will give a voltage of 5V to the gate of the MOSFET and, after that, a current Id=10mA should flow into the diode. (I'm pretty sure I need to add a series resistor with the diode here. Again, your help would be extremely appreciated).
I have previously thought about using the NPN transistor 2N3904 instead of the MOSFET, but since its gain (beta) varies between 100 and 300 at Ic = 10 mA. I decided not to opt for it.
Please, can you help me choose the appropriate MOSFET for my circuit?
Also, please do not hesitate to guide me if there is anything wrong with my circuit.
Thank you so much in advance for your time, efforts, and help!
I'm still new to the world of Arduino, Shift Registers and MOSFETs. Hence, your help would be very much appreciated.
I have a project in which I have to control 170 PIN diodes of type SMP1345-079LF according to a certain pattern. Those PIN diodes, according to their datasheet, have a forward voltage of 0.89V. Also, to be properly biased, they need a current of 10 mA flowing through them.
This said, I am using Arduino MEGA along with shift registers and MOSFETs to do the job.

In the diagram above, you can see a sample of how I am planning to do the connections.
When the PIN diode should be turned ON, the Shift Register will give a voltage of 5V to the gate of the MOSFET and, after that, a current Id=10mA should flow into the diode. (I'm pretty sure I need to add a series resistor with the diode here. Again, your help would be extremely appreciated).
I have previously thought about using the NPN transistor 2N3904 instead of the MOSFET, but since its gain (beta) varies between 100 and 300 at Ic = 10 mA. I decided not to opt for it.
Please, can you help me choose the appropriate MOSFET for my circuit?
Also, please do not hesitate to guide me if there is anything wrong with my circuit.
Thank you so much in advance for your time, efforts, and help!