Thanks for the fast responses. So with A flyback diode the mosfet should survive?
Yes, What kills the mosfet is avalanche current caused by the the inductive back EMF from the inductive load exceeding the rated voltage of the mosfet. The mosfet can tolerate a small amount of avalanche energy, but your DC motor is likely to generate more than that.
Hello Tony, Thanks for your reponse. Any idea how the firmware would react to very high values like displaying pressure in pascal (1bar is 100000 pascal) or Kpascal. If i use absolute pressures the values that i need should be in the range of 50 to 150 kpascal. I assume that this should be fine for the firmware?