I have a vibration sensor switch and a LED circuit shoved inside a rubber duck. I want to slap the rubber duck and toggle it on, then slap it again to turn it off. This seems like it should be pretty simple, but when I started researching how to toggle I found D/T/JK flip flops.
The T flip-flop seemed perfect, you send it a signal from the vibration sensor and it would toggle the led on or off. Unfortunately, I couldn't find any for sale on E-bay, so I bought a bunch of D-Type flip flips.
Now I'm wondering how to wire up my D-Type flip-flop to turn my duck on and off based on jiggling my vibration sensor.
The D Flip Flop has 5 connections.
Vcc ( For incoming voltage ) check
CLK ( For my vibration sensor ) check
GND ( For ground ) check
Q ( Output toggle to LED ) check
D ( Data input ? ) --- What do i attach here so that Q will toggle? Do I wire directly to VCC ?
Do I need to throw my D-Type's away and hunt harder for a T-type flip flop ic?
Thanks !
The T flip-flop seemed perfect, you send it a signal from the vibration sensor and it would toggle the led on or off. Unfortunately, I couldn't find any for sale on E-bay, so I bought a bunch of D-Type flip flips.
Now I'm wondering how to wire up my D-Type flip-flop to turn my duck on and off based on jiggling my vibration sensor.
The D Flip Flop has 5 connections.
Vcc ( For incoming voltage ) check
CLK ( For my vibration sensor ) check
GND ( For ground ) check
Q ( Output toggle to LED ) check
D ( Data input ? ) --- What do i attach here so that Q will toggle? Do I wire directly to VCC ?
Do I need to throw my D-Type's away and hunt harder for a T-type flip flop ic?
Thanks !