You shouldn't leave the inputs of the HC14 floating... the outputs will be unknown.
Also, an ST gate really won't debounce anything if that's what you're trying to do.
You shouldn't leave the inputs of the HC14 floating... the outputs will be unknown.
Also, an ST gate really won't debounce anything if that's what you're trying to do.
Yes, inputs should not be in the air.
Also despite being ST inputs, the resistor and a cap should still be added. Tubleweed is very right about that.
Ioannis
I wish I had seen that before sending that order to JLCPCB. I'm gonna have a resistor jumper on my brand spanking new circuit (only printed 5 to test).
I'm trying to get a cleaner signal like he explains here at "Hysteresis: The Full Fix".
Are you saying this doesn't work as he explained?
https://hackaday.com/2015/12/09/embe...uttons-part-i/
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
It will work if you included the RC network also. But NOT as in your post #69, where switch go directly to the HC14 input.
Ioannis
I really shouldn't work until the wee hours in the morning. That rotary switch circuit was totally not finished.
I've updated my pushbutton circuit.
And my rotary switch circuit. (CORRECTED VERSION IN NEXT POST)
1. Do you see any other mistakes?
2. Do I still need a cap at the MCU pin when it's a signal from a 74HC14?
EDIT: Hmmm, just noticed my pull-ups on the rotary switch are between the 10K and 74HC14. Gonna go change that.
Thanks!
Last edited by Demon; - 13th January 2024 at 23:19.
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Here's my corrected rotary switch with corrected pull-ups.
![]()
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Well, better but not perfect I suspect.
The HC14 inputs are at High (~5V) level when not triggerd by the switch/encoder.
When the switch is at ground, the HC14 sees the voltage divider of two 10K resistors, so the voltage is at 2.5Volts.
According to the datasheet, this will lead to not clearly defined state of low or high. Will depend on the HC14 type, brand and temperature.
I would strongly recommend to increase the 10K pull up to 100K.
Ioannis
Couldn't you knock out all the stuff, Schmitt ic, r's, c's ...... and just use 1pause for say 2 milliseconds when check switch....... check sw-if change or if zero- pause 2 ( or 3 or 5 milliseconds) check again..... very simple routine ?
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
I can't do math since I can't remember squat. It's faster for me to pull out the breadboard and test it out. This is what I got:
(corrected cause I'm senile)
And this is the specs for the 74HC14 that I'm using:
It looks like I'm better off using 100K-1K-100K or 10K-1K-10K to be sure to be in 2.5V range. I didn't check current consumption.
I suppose the dude on that link used the 74HCT14 (at the bottom of specs). The positive-going threshold is about 1.5V, depending on VCC.
Last edited by Demon; - 15th January 2024 at 03:23.
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Oooops. I've since added a pull-down for the input I was using.
I'm seeing several comments on google about connecting the unused pins to ground. If I'm not using their output, can a floating input disturb the other circuits?
EDIT: I've googled some more and found this explanation:
"...random charges accumulating there can/will cause unpredictable internal behavior in the chip, including oscillation and high power dissipation."
https://electronics.stackexchange.co...-inputs-outpus
Last edited by Demon; - 15th January 2024 at 04:26.
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Bookmarks