How to read ADC inputs?

25 views
Skip to first unread message

anthony....@gmail.com

unread,
Dec 20, 2017, 7:46:00 AM12/20/17
to BeagleBoard
I was using a BBB (rev C) and able to read analog inputs on it :
- enable ADC : 
/sys/bus/iio/devices$ ls
iio_sysfs_trigger
/sys/bus/iio/devices$ sudo sh -c "echo BB-ADC > $ SLOTS"

- read value :
/sys/bus/iio/devices$ ls
iio:device0 iio_sysfs_trigger
$ cat /sys/bus/iio/devices/iio:device0/in_voltage0_raw
3831
 
but on the BBB wireless i don't know how!?
Reply all
Reply to author
Forward
0 new messages