Hi
This is my first attempt at using transistors in a circuit, so confidence is not high. The circuit is powered by 24vDC, regulated down to 5v for the debounce and logic but has to switch the 24v via a PNP (not an NPN).
The mechanical switch SW1 is normally closed (so the debounce is 'tuned'...