This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:edge2:applications:gpio:adc [2022/12/06 04:04] nick |
products:sbc:edge2:applications:gpio:adc [2022/12/06 21:03] (current) hyphop [Hardware Information] |
||
---|---|---|---|
Line 15: | Line 15: | ||
The ADC on the Edge2 IO board is a 12-bit successive approximation register (SAR) A/D Converter. | The ADC on the Edge2 IO board is a 12-bit successive approximation register (SAR) A/D Converter. | ||
- | ^ | + | ^ |
- | | 9 | | | | + | | 9 | |
- | ===== ADC conversion | + | ===== Get Raw ADC Value ===== |
- | + | ||
- | Use the following command to view the device node and read the ADC conversion value. | + | |
```shell | ```shell | ||
- | $ cd && ls / | ||
- | buffer | ||
- | dev in_voltage3_raw | ||
- | in_voltage0_raw | ||
- | in_voltage1_raw | ||
$ cat / | $ cat / | ||
- | 1 | + | 4082 |
``` | ``` | ||
+ | |||
+ | Convert the raw ADC value to Voltage: | ||
+ | |||
+ | '' | ||