We're no longer updating This wiki!!

There 2 ADC input ports on the 40-pin header.
ADC.AIN0 : Pin #40
ADC.AIN1 : Pin #37

You can access the ADC inputs via sysfs nodes.

/sys/class/saradc/ch0 
/sys/class/saradc/ch1

ADC's maximum sample rate is 50kSPS with 10bit resolution (0~1023).
But the actual sample rate is 8kSPS if you access it via sysfs due to the limited file IO speed.

The ADC inputs are limited to 1.8Volt. If the input voltage is higher than 1.8Volt, you will fry your ODROID board.

This WiringPi example code shows how to access the ADC for C/C++ programming.
Introduction C Tinkering Kit on Ubuntu

Library Source code WiringPi port for ODROID-C0/C1/C2/XU3/XU4

en/c2_hardware_adc.txt · Last modified: 2017/02/26 11:16 by odroid
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0