This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
products:sbc:edge2:applications:gpio:adc [2022/12/01 22:45] ivan created |
products:sbc:edge2:applications:gpio:adc [2022/12/06 21:03] (current) hyphop [Hardware Information] |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~tag> | ||
+ | |||
====== Edge2 ADC ====== | ====== Edge2 ADC ====== | ||
- | {{page>products: | + | ===== Introduction ===== |
+ | |||
+ | This documentation will introduce the usage of ADC on the Edge2 IO board. | ||
+ | |||
+ | <WRAP important | ||
+ | For Edge2, in order to use the ADC function, you need to attach the Edge2 IO board. | ||
+ | </ | ||
+ | |||
+ | ===== Hardware Information ===== | ||
+ | |||
+ | The ADC on the Edge2 IO board is a 12-bit successive approximation register (SAR) A/D Converter. | ||
+ | |||
+ | ^ Pin ^ Voltage | ||
+ | | 9 | 0~1.8V | ||
+ | |||
+ | |||
+ | |||
+ | ===== Get Raw ADC Value ===== | ||
+ | |||
+ | ```shell | ||
+ | $ cat / | ||
+ | 4082 | ||
+ | ``` | ||
+ | |||
+ | Convert the raw ADC value to Voltage: | ||
+ | |||
+ | '' | ||
+ |