I am working on a project where I need to control a water pump (https://www.digikey.be/nl/products/detail/dfrobot/FIT0563/8827828) using a Raspberry Pi 3B+. Currently, I've chosen an IRLD014PBF N-channel MOSFET (https://www.digikey.be/nl/products/detail/vishay-siliconix/IRLD014PBF/812481) 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) into the circuit. [![RPi MOSFET water pump circuit][1]][1] I have attached the schematic for review and would appreciate feedback on the component selection. Specifically, I am unsure about the chosen components (MOSFET 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). [1]: https://i.sstatic.net/pN8nW.png