I am working on a project where I need to control this water pump using a Raspberry Pi 3B+.
Currently, I've chosen the IRLD014PBF 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 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 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).