dime-ler Posted September 25, 2023 Posted September 25, 2023 I have a MCC134 HAT connected to a Raspberry Pi 4 running 64-bit Raspberry Pi OS Bullseye. The address pins on the MCC134 board are not jumped to place the board in "address 0" mode. I have ensured the latest SW is installed on the Pi, and have installed the daqhats library as recommended in the daqhats GitHub README. I have also confirmed SPI & I2C are enabled on the Pi. When trying to run the following Python script: from daqhats.mcc134 import mcc134 from daqhats.hats import hat_list print(hat_list()) m = mcc134(0) I get the following output: HatInfo(address=0, id=323, version=1, product_name='MCC 134 Thermocouple Input HAT')] Traceback (most recent call last): File "/home/pi/code/ctp-automation/main.py", line 6, in <module> m = mcc134(0) File "/home/pi/code/ctp-automation/daqhats/mcc134.py", line 121, in __init__ raise HatError(self._address, "Board not responding.") daqhats.hats.HatError: Addr 0: Board not responding the library can read the HAT installed and can recognize that it is a MCC 134 Thermocouple Input HAT, but is unable to open the board for communication. One suggestion I've seen for MCC 118 boards with this issue is to update the firmware, but there is no firmware for the MCC 134 listed along with firmware for the other boards in the daqhats GitHub. Any troubleshooting help is appreciated.
DAQman Posted September 25, 2023 Posted September 25, 2023 Address zero is the default address, so I'm not surprised that it kind of works. Try the following commands: sudo daqhats_read_eeproms and daqhats_list_boards, and try your code again. I'm not aware of any issue with 64-bit bullseye.
dime-ler Posted September 25, 2023 Author Posted September 25, 2023 Here are the outputs of both commands: pi@raspberrypi:~ $ sudo daqhats_read_eeproms Reading... Found EEPROM at address 0 Done pi@raspberrypi:~ $ sudo daqhats_list_boards Found 1 board(s): Address: 0 Type: MCC 134 Hardware version: 1 Name: MCC 134 Thermocouple Input HAT
DAQman Posted September 25, 2023 Posted September 25, 2023 The output is correct. Could you try the attached program? mcc134.py
dime-ler Posted September 25, 2023 Author Posted September 25, 2023 Here's what I get when I run the above code: pi@telpi4:~ $ python mcc134.py Addr 0: Board not responding.
DAQman Posted September 26, 2023 Posted September 26, 2023 If all that is connected to your Raspberry PI is the mcc134 and SPI and I2C are enabled, please contact your distributor for a replacement board.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now