You just need less than 2.2 volts at the input for the HC14 to interpret it as low. So, yes, either 100k/10k or 10k/1k combination is OK. Better 100k/10k though, because it will draw much less current.
Ioannis
You just need less than 2.2 volts at the input for the HC14 to interpret it as low. So, yes, either 100k/10k or 10k/1k combination is OK. Better 100k/10k though, because it will draw much less current.
Ioannis
Last edited by Ioannis; - 14th January 2024 at 20:18.
How many buttons will be pressed at the same time?
Maybe state machine is another good solution for such a project. I can dig out an example for small amount of buttons that I am sure can be expanded for more. the advantage is that no pause is used because it is out of the state machine philosophy of operation.
Ioannis
In theory, only one button gets pressed at a time.
It's essentially a button box; something like this:
https://i.ebayimg.com/images/g/AX0AA...D1/s-l1600.jpg
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!
Maybe then it is worth to try this:
100 buttons means about 13 bytes.
You can read that 13 bytes, store them in a temp array.
Do whatever you want and a timer interrupt will get you back to read again the 13 bytes in about 10ms or whatever you want.
Compare to the previous read in temp array. If there is a difference, you can jump to the appropriate sub using ON index GOTO or BRANCHL technique, for up to 127 or 1024 labels to goto.
No pauses, no delays to the main program. An no 200 resistors and 100 capacitors along with a bunch of HC14's.
Ioannis
Last edited by Ioannis; - 14th January 2024 at 23:14.
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 agree with ioannis ,all that extra hardware will not add much value [if any] when you need to keep track off switch states anyway
getting multiple re's to work glitch free when other interrupts are involved is very challengingI also have several rotary encoders. You can spin those around quite fast
these things work great and are open sourced or you can buy some
https://www.tindie.com/products/saim...er-on-i2c-bus/
Warning I'm not a teacher
Now you're talking. I don't need all that RGB stuff, just rotary encoder with switch support is all I need.
https://www.tindie.com/products/saim...-encoder-mini/
I ordered 20 of the mini model to test, $2.28USD, turns out to $74.79CAD with normal shipping and exchange rate.
Real interesting stuff. If everything is there to be open-source, I could even print my own.
![]()
Last edited by Demon; - 15th January 2024 at 04:33.
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!
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