Hello, i have a Beaglebone AI, i need read analog input with python code,
example:
import Adafruit_BBIO.ADC as ADC
The first thing to realize is that the BB AI does not support runtime
pin-mux changes. There is no config-pin tool available. The second is that,
due to some changes in Px_y assignments to chip "balls", Adafruit_BBIO may
not be compatible.
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:
As stated -- the loaded device tree does not have pins configured for
ADC mode (hopefully it doesn't require all potential ADCs to be set, and
can find those that are active)
Please, help me, thank you.
You are going to have to edit the device tree source to define the
desired pin as analog input, compile it, and set up uEnv.txt to load this
device tree in place of the one that is already in place.
Please tell The professor Or H1B boot camp instructor he’s given you an assignment thats not possible.
If he doesn’t know that how’s he going to coach you after you add BBAI on your resume. Besides there’s no travel right now.
We understand tracking down Runtime errors is a tremendous task hopefully someone is available 24/7 in the future when you get another runtime error
Where are you going to school?
I am aware that this post clearly asks for reading analog inputs with python, however I am pasting a solution in C which I believe can very easily be written in python as it’s very basic file I/O: