This is a Digital Design for my class.
I am trying to make a digital fan controller using discrete logic, starting with a JK FF to supply 2-bit states that start with the fan off (00) and steps to high (11) and then starts back at (00). The two bit logic is then gated to their select optocouplers that ground 1 of 3 voltages from the fan, from a separate power supply (12v).
I found what I thought was a really simple debounce circuit using 2 NOR gates, but I think it will only supply a spike that doesn't have much in the way of hold time. The problem I am having is the 7-seg display from the timer will not step through the states reliably. When I turn it on, sometimes it will cycle through once or twice, but after that it will skip state (01), usually going (0,2,3,0,2,3,0...) and doesn't even do it in that order sometimes. The included schematic shows the connections.
The spike on the CLK input to the JK FF should be enough for a negative going transition to increment the counter, and it does count reliably when I check just the button and the counter on an o-scope, but when I connect the rest of the circuit (display/driver and other logic gates) unreliability occurs as evidenced in the display.
Some one told me there is something called a Miller Effect, but looking that up got me no clue.
Would a small capacitor between the Vcc and GND on the gates help?
Is there some modification I need to do to the pushbutton to produce a square wave rather than a spike (output goes from 0 to 4.5v). I noticed holding the pushbutton down rather than a quick press gives a bigger spike, but not much of a longer duration.
I am trying to make a digital fan controller using discrete logic, starting with a JK FF to supply 2-bit states that start with the fan off (00) and steps to high (11) and then starts back at (00). The two bit logic is then gated to their select optocouplers that ground 1 of 3 voltages from the fan, from a separate power supply (12v).
I found what I thought was a really simple debounce circuit using 2 NOR gates, but I think it will only supply a spike that doesn't have much in the way of hold time. The problem I am having is the 7-seg display from the timer will not step through the states reliably. When I turn it on, sometimes it will cycle through once or twice, but after that it will skip state (01), usually going (0,2,3,0,2,3,0...) and doesn't even do it in that order sometimes. The included schematic shows the connections.
The spike on the CLK input to the JK FF should be enough for a negative going transition to increment the counter, and it does count reliably when I check just the button and the counter on an o-scope, but when I connect the rest of the circuit (display/driver and other logic gates) unreliability occurs as evidenced in the display.
Some one told me there is something called a Miller Effect, but looking that up got me no clue.
Would a small capacitor between the Vcc and GND on the gates help?
Is there some modification I need to do to the pushbutton to produce a square wave rather than a spike (output goes from 0 to 4.5v). I noticed holding the pushbutton down rather than a quick press gives a bigger spike, but not much of a longer duration.
Attachments
-
135.4 KB Views: 27