I am trying to toggle a small motor on and off with a single push button.
Button press = motor ON, next button press = motor OFF.
So essentially I need a signal to change from high to low with each button press - a change of state.
A friend told me you can make a latch from a positive edge triggered D flip flop by connecting the NOT Q output to the D input and using the clock input as the input from the button's pull up resistor.
Has anyone ever seen this done before? It looks odd to me because you are connecting the NOT Q output to the D input.
Thanks in advance on any opinions on if this is a good and reliable design idea.