We're no longer updating This wiki!!

This is an old revision of the document!


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.

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.1456459688.txt.gz · Last modified: 2016/02/26 12:38 by charles.park
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0