This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:common:applications:gpio:adc [2022/12/06 02:50] ivan [ADC Information] |
products:sbc:common:applications:gpio:adc [2022/12/21 21:28] (current) ivan |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ~~tag> | ||
| - | |||
| - | ====== Edge2 ADC ====== | ||
| - | |||
| - | |||
| - | {{page> | ||
| - | |||
| - | ===== Introduction ===== | ||
| - | |||
| - | The previous part of this page introduces ADC related information.The second part guides you to obtain ADC conversion values. | ||
| - | |||
| - | <WRAP important > | ||
| - | For Edge2, in order to use the ADC function, you need to attach the IO extension board. | ||
| - | |||
| - | </ | ||
| - | |||
| - | ===== ADC Information ===== | ||
| - | |||
| - | <WRAP info > | ||
| - | |||
| - | |||
| - | </ | ||
| - | |||
| - | |||
| - | | | ||
| - | ^ Edge2 | ADC_CH2 | ||
| - | |||
| - | ===== ADC conversion ===== | ||
| - | |||
| - | Use the following command to view the device node and read the ADC conversion value. | ||
| - | |||
| - | ```shell | ||
| - | $ cd && ls / | ||
| - | buffer | ||
| - | dev in_voltage3_raw | ||
| - | in_voltage0_raw | ||
| - | in_voltage1_raw | ||
| - | $ cat / | ||
| - | 1 | ||
| - | |||
| - | ``` | ||