AD Keypad

Primary Attribute

Part NumberAD Keypad
ManufacturerWaveshare
Remarks

Pricing

Price List (All prices are in US dollars)
Price Break@ 1Unit@ 2Units@ 3Units@ 4Units
Unit Price4.994.694.494.29
Extended Price4.999.3813.4717.16

Product Photos

(Click on the image to enlarge)
16 buttons controlled by only 1 AD port

Overview

The AD Keypad provides 16 push buttons, and takes up only 1 AD port for controlling. It's suitable for applications where the AD ports are sufficient yet I/O ports are lacking of.

Features

16 push buttons, detection interface

Photos

Parameters and How to

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
  • Abbreviation
    • Vref: AD reference voltage
    • iv: ideal value
    • rv: real value
ADC Value Detection RangeMeasurement Data (Vref=3.3V)Measurement Data (Vref = 5V)
Buttons10-bit ADC8-bit ADCReal Value
Sampling (V)
Error (V)Ideal Value (V)Real Value
Sampling (V)
Error (V)Ideal Value(V)
00-40-1000000
1(1±6%)x64(1±6%)x160.2054-0.000850.206250.3112-0.00130.3125
2(1±6%)x128(1±6%)x320.4117-0.00080.41250.6238-0.00120.625
3(1±6%)x192(1±6%)x480.62330.004550.618750.94440.00690.9375
4(1±6%)x256(1±6%)x640.8242-0.00080.8251.2487-0.00131.25
5(1±6%)x320(1±6%)x801.0304-0.000851.031251.5612-0.00131.5625
6(1±6%)x384(1±6%)x961.2355-0.0021.23751.8719-0.00311.875
7(1±6%)x448(1±6%)x1121.44480.001051.443752.1890.00152.1875
8(1±6%)x512(1±6%)x1281.65410.00411.652.50610.00612.5
9(1±6%)x576(1±6%)x1441.86370.007451.856252.82370.01122.8125
10(1±6%)x640(1±6%)x1602.07320.01072.06253.14110.01613.125
11(1±6%)x704(1±6%)x1762.2672-0.001552.268753.435-0.00253.4375
12(1±6%)x768(1±6%)x1922.4712-0.00382.4753.7441-0.00593.75
13(1±6%)x832(1±6%)x2082.6789-0.002352.681254.0588-0.00374.0625
14(1±6%)x896(1±6%)x2242.89020.00272.88754.37890.00394.375
15(1±6%)x960(1±6%)x2403.10920.015453.093754.71070.02324.6875

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

Development resources: demo codes, schematic, datasheets, etc.
Click here to download


Check out the compatibility between "Accessory Boards" and "Development Boards"