I need to activate a solenoid using a raspberry Pi, to do that I'm using a TIP121 to drive the current and a 12V power supply to power the solenoid. I also put a clamping diode (1N4001) but I'm not sure if it's the right one.
Here is the schematic, I couldn't change diode's value on the schematic, so ignore this value.
Is the 1N4001 enough or I need another one? It it's not the right one, how do I choose/calculate the right diode (I googled but I didn't find anything useful).