I am working on a project where I need to control a water pumpthis (https://www.digikey.be/nl/products/detail/dfrobot/FIT0563/8827828water pump) using a Raspberry Pi 3B+.
Currently, I've chosen an IRLD014PBF N-channel MOSFETthe (https://www.digikey.be/nl/products/detail/vishay-siliconix/IRLD014PBF/812481 N-channel MOSFET) to drive this water pump. For added protection to my RPi GPIO, I've decided to incorporate the TLP620-2X opto-coupler (https://www.digikey.be/nl/products/detail/isocom-components-2004-ltd/TLP620-2X/5037044 opto-coupler) into the circuit.
I have attached the schematic for review and would appreciate feedback on the component selection. Specifically, I am unsure about the chosen components (MOSFETMOSFET and opto-coupler), and the necessity of resistors R1 and R2 (would like to know if they are required, as well as recommendations for their values).