We're no longer updating This wiki!!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:c1_hardware_adc [2015/03/01 16:23]
odroid
en:c1_hardware_adc [2015/03/01 16:30] (current)
odroid
Line 1: Line 1:
 +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.
 +<​code>​
 +/​sys/​class/​saradc/​saradc_ch0 ​
 +/​sys/​class/​saradc/​saradc_ch1
 +</​code>​
 +
 +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.\\
 +[[en:​c1_tinkering|Introduction C Tinkering Kit on Ubuntu]]
 +
 +Library Source code
 +[[https://​github.com/​hardkernel/​wiringPi/​blob/​master/​wiringPi/​wiringPi.c|WiringPi port for ODROID-C1]]
  
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0