{"product_id":"ad-keypad-discontinued","title":"AD Keypad [Discontinued]","description":"\u003cp\u003e\u003cspan\u003eThe \u003c\/span\u003eAD Keypad \u003cspan\u003eprovides 16 push buttons and takes up only 1 AD port for control. It's suitable for applications where the AD ports are sufficient yet I\/O ports are lacking.\u003c\/span\u003e  \u003c\/p\u003e \u003cp\u003e\u003cspan\u003eThis module is great for use in microcontroller-based projects as well as with the popular SBCs on the market today and would be perfect in your next Raspberry Pi, Raspberry Pi Pico, Arduino, STM32, or Adafruit Feather HUZZAH project.  \u003cbr\u003e\u003c\/span\u003e\u003c\/p\u003e \u003cp\u003eOnline resources including datasheets, example code, and connection information can be found on the Waveshare Wiki page for this module. \u003c\/p\u003e \u003ch2 class=\"card__title heading h3\"\u003eFeatures\u003c\/h2\u003e \u003cul\u003e \u003cli\u003e\u003cspan\u003e16 push button detection interface\u003c\/span\u003e\u003c\/li\u003e \u003c\/ul\u003e \u003ch2 class=\"card__title heading h3\"\u003eHow It Works\u003c\/h2\u003e \u003cul\u003e \u003cli\u003e\n\u003cstrong\u003eAD ideal value:\u003c\/strong\u003e when button pressed, Viv = (button index \/ 16) x Vref \u003cbr\u003e\u003cstrong\u003eAD real value:\u003c\/strong\u003e when button pressed, Vrv = (1 ± 6%) x Viv \u003cbr\u003eFor 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\u003c\/li\u003e \u003cli\u003e\n\u003cstrong\u003eAbbreviation\u003c\/strong\u003e \u003cul\u003e \u003cli\u003eVref: AD reference voltage\u003c\/li\u003e \u003cli\u003eiv: ideal value\u003c\/li\u003e \u003cli\u003erv: real value\u003c\/li\u003e \u003c\/ul\u003e \u003c\/li\u003e \u003c\/ul\u003e \u003cp\u003e\u003cimg src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0176\/3274\/files\/chart.png?width=700\" alt=\"\"\u003e\u003c\/p\u003e \u003cp\u003e\u003cstrong\u003eExample\u003c\/strong\u003e\u003c\/p\u003e \u003cul\u003e \u003cli\u003e \u003cp\u003eFor 10-bit ADC, the 8th button generates an ADC value between (1±6%)x512, the equivalent range should be \"481-543\". If the ADC value had been detected to be \"510-518\" in the code, this indicates that the 8th button was pressed.\u003c\/p\u003e \u003c\/li\u003e \u003cli\u003e \u003cp\u003eFor 8-bit ADC, the 8th button generates an ADC value between (1±6%)x128, the equivalent range should be \"120-136\". If the ADC value had been detected to be \"124-128\" in the code, this indicates that the 8th button was pressed. \u003c\/p\u003e \u003c\/li\u003e \u003c\/ul\u003e \u003cul\u003e\u003c\/ul\u003e \u003cul\u003e\u003c\/ul\u003e \u003ch2\u003eResources\u003c\/h2\u003e \u003cul\u003e \u003cli\u003eWaveshare Wiki\u003c\/li\u003e \u003c\/ul\u003e \u003ch2\u003ePackage Contents\u003c\/h2\u003e \u003cul\u003e \u003cli\u003e1X \u003cspan\u003eAD Keypad \u003c\/span\u003e\n\u003c\/li\u003e \u003c\/ul\u003e","brand":"Waveshare","offers":[{"title":"Default Title","offer_id":48624236986586,"sku":"vdk1789687615963","price":5.56,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0824\/8318\/3834\/files\/ad-keypad-discontinued_1.jpg?v=1789687622","url":"https:\/\/memoryfoamwear.shop\/products\/ad-keypad-discontinued","provider":"My Store","version":"1.0","type":"link"}