This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:edge-2l:applications:gpio:adc [2025/11/27 02:29] gray ↷ Page moved from local:users:start:applications:gpio:adc to local:users:gray:products:sbc:edge-2l:applications:gpio:adc |
products:sbc:edge-2l:applications:gpio:adc [2026/05/11 02:07] (current) nick ↷ Page moved from local:users:gray:products:sbc:edge-2l:applications:gpio:adc to products:sbc:edge-2l:applications:gpio:adc |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ===== Introduction ===== | ===== Introduction ===== | ||
| - | This documentation will introduce | + | This document explains how to use the Analog-to-Digital Converter (ADC) on the Edge-2L IO board. |
| <WRAP important > | <WRAP important > | ||
| - | For Edge-2L, in order to use the ADC function, you need to attach the Edge-2L IO board. | + | To use the ADC functionality on the Edge-2L, you must attach the Edge-2L IO board. |
| </ | </ | ||
| - | ===== Hardware | + | ===== Hardware |
| - | The ADC on the Edge-2L IO board is a 12-bit | + | The Edge-2L IO board includes |
| ^ Pin ^ Voltage | ^ Pin ^ Voltage | ||
| Line 20: | Line 20: | ||
| - | ===== Get Raw ADC Value ===== | + | ===== Reading the raw ADC value ===== |
| + | |||
| + | Read the raw digital value from the ADC: | ||
| ```shell | ```shell | ||
| - | $ cat / | + | $ cat / |
| + | ``` | ||
| + | Example output: | ||
| + | ``` | ||
| 4082 | 4082 | ||
| ``` | ``` | ||
| - | + | Convert the raw 12-bit | |
| - | Convert the raw ADC value to Voltage: | + | |
| '' | '' | ||