config-pin was developed to work with gpios enabled with the 
cape-universal-00A0.dtbo overlay.
To access the ADC inputs, you need to load the BB-ADC overlay. You can then 
access the AIN  inputs with sysfs.

als $OCP/helper.*
        ls: cannot access /sys/devices/ocp.*/helper.*: No such file or directory
echo BB-ADC > /sys/devices/bone_capemgr.*/slots
tail -1 /sys/devices/bone_capemgr.*/slots
         7: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-ADC
als /sys/devices/ocp.*/helper.*
        total 0
        0 drwxr-xr-x  3 root root    0 Nov  7 12:28 .
        0 drwxr-xr-x 33 root root    0 May 14 21:40 ..
        0 -r--r--r--  1 root root 4096 Nov  7 12:29 AIN0
        0 -r--r--r--  1 root root 4096 Nov  7 12:29 AIN1
        0 -r--r--r--  1 root root 4096 Nov  7 12:29 AIN2
        0 -r--r--r--  1 root root 4096 Nov  7 12:29 AIN3
        0 -r--r--r--  1 root root 4096 Nov  7 12:29 AIN4
        0 -r--r--r--  1 root root 4096 Nov  7 12:29 AIN5
        0 -r--r--r--  1 root root 4096 Nov  7 12:29 AIN6
        0 -r--r--r--  1 root root 4096 Nov  7 12:29 AIN7
        0 lrwxrwxrwx  1 root root    0 Nov  7 12:29 driver -> 
../../../bus/platform/drivers/bone-iio-helper
        0 -r--r--r--  1 root root 4096 Nov  7 12:29 modalias
        0 drwxr-xr-x  2 root root    0 Nov  7 12:29 power
        0 lrwxrwxrwx  1 root root    0 Nov  7 12:28 subsystem -> 
../../../bus/platform
        0 -rw-r--r--  1 root root 4096 Nov  7 12:28 uevent
cat  /sys/devices/ocp.*/helper.*/AIN1
        1554

Chad

Chad Baker
Professor Emeritus
Christian Brothers University
Electrical and Computer Engineering

[email protected]
[email protected]

> On Nov 7, 2014, at 9:58 AM, Tux Leonard <[email protected]> wrote:
> 
> Hi,
> 
> I am using kernel 3.17.1-armv7-x3 on my BBB and I want to read the analog 
> inputs available.
> 
> I found this website
> https://github.com/cdsteinkuehler/beaglebone-universal-io
> for hadling gpio but I don't understand how to read analog inputs:
> P9 31-40 Analog Signals, no pinmux
> 
> Could someone explain how to read these inputs?
> 
> Thanks
> 
> Roy
> 
> -- 
> For more options, visit http://beagleboard.org/discuss
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to