top electronics project using magnetic switch