-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data reading from an STM32 pin with Python. #909
Comments
Not sure if libiio is the right place for your question. Does your ADC have an IIO driver? If you don't know you should probably reach out to ST's support. -Travis |
Yes, it does have. I'm going to use this configuration. |
I would start here then: https://analogdevicesinc.github.io/libiio/v0.24/python/index.html -Travis |
Thank you very much! |
If I want to use the Python Bindings in libiio for accessing and using the data of the ADC, do I must do it with the "buffer"? Following the hierarchy, should I create an "context" and a "device"? Like in this code: https://analogdevicesinc.github.io/libiio/v0.20/python/_modules/iio_readdev.html#DataReader Now, how do I tell the application what to read? Is the "device" the STM32 ADC pin? |
IIO apps follow the hierarchy by creating a context, then find a device, and manipulate those device's channels. Here is a basic example of an Analog Devices transceiver https://github.com/analogdevicesinc/plutosdr_scripts/blob/master/pluto.py You should follow a similar flow. -Travis |
So, for the context creation can I use And for the "device part" could be something like this? |
find_device looks at the name device attribute. Which would be |
Hi! I'm working with an STM32MP157F-DK2, it has a microprocessor A7 that's running Linux. I need to read the voltage of one of the pins. The pin configuration for the Analogical to Digital conversion it's made with the Linux terminal in the STM32.
How do I write in the Python code the order to "extract" the digitalized data from the kernell?
The text was updated successfully, but these errors were encountered: