First appologies if my title sounds ambiguous, im fairly new to electronics, and some of the things I learned in school all those years back have escaped me.
I have a circuit that consists of a lipo battery, a magnetic switch and an electromagnet.
The electromagnet turns on when the magnetic switch is turned on by a nearby magnet. However what I need is for it to turn on every OTHER time it detects a magnet.
I vaguely remember something about using flipflops for doing this. Am I right to assume this is the best way to approach this? Or am I going to run into problems? I want the simplest circuit possible. (ive previously used an arduino to do all this and increment a counter, but I feel this is a bit overkill).