Here is schematic that provides polarity inversion and switch off motor if it reaches one of its two end positions:
SW1 is On-Off-On DPDT switch with the center position Off. SW 2 and SW 3 are limit switches. Motor voltage is 12V and it will consume max. 2A. I will build power supply for it consisting of transformer and rectifier bridge. Should I add back EMF protection and, if yes, how can I implement it in my case? Here is one schematic:
I can't do this in my case because of polarity inversion ability (first schematic), right ?