Klawiatura 16 przycisków z wyjściem analogowym AD
towar niedostępny
Opis
Klawiatura z 16 przyciskami do obsługi, których wystarczy tylko 1 wejście analogowe mikrokontrolera.
Wciśniecie przycisku powoduje pojawienie się napięcia na wyjściu klawiatury, które odpowiada konkretnemy przyciskowi.
Przycisk, który został wciśnięty możemy rozpoznać na podstawie wzoru lub na podstawie stałych podanych w tabeli.
Klawiatura współpracuje z napięciami 3,3V oraz 5V.
Parameters and Sampling
- AD ideal value: when button pressed, Viv = (button index / 16) x Vref
- AD real value: when button pressed, Vrv = (1 ± 6%) x Viv
- For instance, suppose Vref = 5, 8th button was pressed, then Viv = (8 / 16) x 5 = 2.5, Vrv = (1 ± 6%) x 2.5, equals to 2.35-2.65
Vref: AD reference voltage
iv: ideal value
rv: real value
How to detect and handle in your code
For 10-bit ADC, the 8th button generates ADC value between (1±6%)x512, the equivalence of "481-543". If the ADC value had been detected to be "510-518" in the code, the 8th button's supposed to have been pressed.
For 8-bit ADC, the 8th button generates ADC value between (1±6%)x128, the equivalence of "120-136". If the ADC value had been detected to be "124-128" in the code, the 8th button's supposed to have been pressed.
Package Contains
- AD Keypad × 1
Downloads
http://www.wvshare.com/downloads/accBoard/5-IO-Keypad.7z