Read 1st post 1st
This is ADC input.
Read 1st post 1st
This is ADC input.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
adc key reading is a good tried and tested technique and can be very responsive, the question here is can it be done
using less memory. the answer is yes of course, if done in a methodical way.
c1 has opted not to discuss or elaborate on his implementation in any meaningful way. end of story
Warning I'm not a teacher
This is just an example for 2 buttons
for 20 buttons there should be 40 variables
I wanted to avoid that
this is why I asked
![]()
With 10 or 20 keys, how do you handle the event of more than one key being pressed at the same time?
By clever selection of ADC resistors.
This had been solved long time ago, and not by me![]()
Recent posts got me thinking. Are you designing something with a bunch of buttons, each with a specific functionality? Or are you trying to do something more akin to a key pad? If you're using a standard key pad there are set-ups using resistors to create a narrow voltage range with the press of any individual key. That only requires one analog input to read any key press.
https://aws1.discourse-cdn.com/ardui...2_542x500.jpeg
Bookmarks