Hello, i have a Beaglebone AI, i need read analog input with python code, 
example:

import Adafruit_BBIO.ADC as ADC
from time import sleep

ADC.setup()

analogPin = "P9_33"

while(1):
       potVal = ADC.read(analogPin)
       potVolt = potVal*1.8
       print ("The Potentiometer Voltage is: {}".format(potVolt))
       sleep(0.5)

but, this code generated error:

debian@beaglebone:~$ sudo python3 test_bbai_ai.py
Traceback (most recent call last):
  File "test_bbai_ai.py", line 4, in <module>
    ADC.setup()
RuntimeError: Unable to setup ADC system. Possible causes are:
  - A cape with a conflicting pin mapping is loaded
  - A device tree object is loaded that uses the same name for a fragment: 
helper

Please, help me, thank you.

PD. BeagleBoard.org Debian Buster IoT TIDL Image 2020-04-06

-- 
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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/9a415935-e8b3-47fc-b2ac-625f0c799f37o%40googlegroups.com.

Reply via email to