We're no longer updating This wiki!!

This is an old revision of the document!


Using the ADC ports on 30pin header

There are two ADC inputs on the 30pin header provides 12-bit analog-to-digital converter.

CON10 - 2×15 pins

Pin Number Net Name GPIO & Export No
3 ADC_0.AIN0 XADC0AIN_0
23 ADC_0.AIN3 XADC0AIN_3

Using sysfs

Read raw data.(ADC Channel 0)

cat /sys/devices/12d10000.adc/iio:device0/in_voltage0_raw

Read raw data.(ADC Channel 3)

cat /sys/devices/12d10000.adc/iio:device0/in_voltage3_raw

Input voltage range is 0~1.8Volt. Otherwise your ODROID will be damaged permanently.

Using mmap

en/xu3_hardware_adc.1453253086.txt.gz · Last modified: 2016/01/20 09:54 by john1117
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0