I have couple of questions regarding the location of flyback diode and sizing and locating the Zener and TVS diodes. For example below at the far end there is a magnetic relay which is controlled by a MOSFET. Power supply is also close to the MOSFET.
To make it clear I divide the question into two separate ones:
1-) Should the TVS be placed on the power supply side or at the relay side(between the relay terminal? Or TVS at both? And if the power supply is lets say 24V what should be the rating for the TVS?
2-) This is very confusing because sometimes they use flyback on the top of the MOSFET and sometimes a Zener which is across the source and the drain. I put both in my figure above. I also found out using only Zener is creating faster falling edge proportional to its rating
About the diode: Should the flyback diode be close to the MOSGET as in my figure or should it be across the relay terminals but in the vicinity of the relay at far end?
About the Zener: If the Zener is used how is its rating determined? Becuase if its max voltage is given as 100V and I choose a 36V Zener this kind if scares me.