I got my electric gate project running. Runs forward, reverses, closes. I designed and built an autostop circuit using the normally open (closes at gate position full open or full closed) contacts in the (gate ram) microswitches. One for full open, one for closed. The gate is now under manual control via the hand held transmitter buttons. Push-run, release-stop. Two buttons, open and close. The autostop circuits I built worked fine but I don't like them. They used accessory relays and added another layer of complexity and potential breakdowns. Since the contacts on the microswitches close upon full open or closed that is the natural signaling method to use. I'd like to put those switches in parallel with one leg of the DC circuit and have the current to the motor shunted away so the motor will stop and the users can't continue to drive the motor after the gate is fully open or closed. I was thinking maybe a large capacitor across the positive lead and ground that would discharge across a diode as soon as the ram started reversing from it's previous position and the micro contacts open again. The motor is tiny and only works because it is WAY geared down. Anyone have a better idea? It's 12 volt DC, max 15 amp.