Reading analog input pin ain6

16 views
Skip to first unread message

far...@gmail.com

unread,
Nov 12, 2018, 8:32:51 PM11/12/18
to BeagleBoard

Hi,

I would like to read the analog input pin AIN6. I googled and found that the command
cat /sys/devices/platform/omap/tsc/ain1 
should be able to read this pin.

I however do not find this path on my beaglebone green wireless Linux image. How do I read this pin AIN6 in such case. Do i have to add some configuration in the dtb for the AIN6 pin? 

Thanks

Robert Nelson

unread,
Nov 13, 2018, 10:16:26 AM11/13/18
to Beagle Board, far...@gmail.com
debian@test-bbb-2:~$ cat /sys/bus/iio/devices/iio\:device0/in_voltage6_raw
2837

Regards,

--
Robert Nelson
https://rcn-ee.com/
Reply all
Reply to author
Forward
0 new messages