Hi All,
I am having trouble initialising communications with an AD7176-2 chip using a Raspberry Pi. I have developed a PCB based on the schematics provided in the documentation for the evaluation board and I'm now trying to get the ADC communicating to a Raspberry Pi 4 via SPI using Python. I'm unfortunately getting an error when initialising the device. I am trying to run the following code;
import adi my_adc = adi.ad717x(uri="ip:localhost", device_name="ad7176-2")
But I get the following error;
Traceback (most recent call last):
File "/home/analog/AD7176/AD7176_adi.py", line 4, in <module>
my_adi = adi.ad717x(uri="ip:localhost", device_name="ad7176-2")
File "/usr/local/lib/python3.9/dist-packages/adi/ad717x.py", line 85, in __init__
raise Exception("Error in selecting matching device")
Exception: Error in selecting matching device
I am using ADI's Kuiper Linux (2021_R2) distribution and Python 3.9.2. The Github page for Pyadi-iio mentiones that the part is supported (Link).
Any help would be appreciated!