Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


Sidebar

products:sbc:edge-2l:applications:gpio:adc

This is an old revision of the document!


Edge-2L ADC

Introduction

This documentation will introduce the usage of ADC on the Edge-2L IO board.

For Edge-2L, in order to use the ADC function, you need to attach the Edge-2L IO board.

Hardware Information

The ADC on the Edge-2L IO board is a 12-bit successive approximation register (SAR) A/D Converter.

Pin Voltage Device Node
9 0~1.8V /sys/bus/iio/devices/iio:device0/in_voltage4_raw

Get Raw ADC Value

$ cat /sys/bus/iio/devices/iio:device0/in_voltage4_raw                                             
4082                                                 

Convert the raw ADC value to Voltage:

Voltage = (value / 4096) * 1.8V

Last modified: 2025/11/25 04:31 by gray