This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
products:sbc:edge2:applications:gpio:adc [2022/12/06 04:11] nick [Table] |
products:sbc:edge2:applications:gpio:adc [2022/12/06 04:17] nick [Get ADC Value] |
||
---|---|---|---|
Line 20: | Line 20: | ||
- | ===== 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: | ||
+ | |||
+ | '' | ||