Jump to content

Question

Posted

Hi.

I am working with the MCC128 ADC hat for the raspberry pi.  I have two and initially they worked with your demo code.  Subsequently, the boards stopped working and I am told "No HAT devices found."  This is both on RPi 4 and RPi 5 running bookworm.

I do not know where to start to troubleshoot this problem.  Can you assist?

Thanks in advance.

11 answers to this question

Recommended Posts

  • 0
Posted

Hello @komondor.

What changed from the time the MCC 128 boards did work?

Using a Raspberry 5 model with one MCC 128 board installed, remove the address jumper and then uninstall the MCC DAQHATS library using the steps below via a terminal.  Afterward install the MCC daqhats software branch (beta version 1.5.0.0) for RPi 5 modules. https://github.com/mccdaq/daqhats/tree/pi5

1. $ cd daqhats

2. $ sudo ./uninstall.sh

3. $ git pull

4. $ git checkout pi5

5. $ sudo ./install.sh

6. $ pip install daqhats (manually add Python support)

You can switch back to the released library by uninstalling the library, running “git checkout master”, and then installing the library.

Use the installed MCC DAQ HAT Manager utility application to verify communication with the MCC 128 or terminal commands.

$ sudo daqhats_read_eeproms

$ daqhats_list_boards

Does the MCC 128 work?  

If the board is not detected, then power off the RPi and swap out the MCC 128 board.  Is the second board detected by the MCC DAQ HAT Manager utility application or terminal commands?  Reply with screen captures and images of your hardware if the issue is not resolved.

Regards,

Fausto

  • 0
Posted

Thank you Fausto for your quick response.

Following your directions I now have a working set up using a RPi 5.

Does you answer suggest that the mcc128 will not work with a RPi 4?

Now I have to work on building a working circuit to measure.

Thanks.

  • 0
Posted

Hello,

I am trying to bring-up MCC128 on a Raspberry pi 5.

I have followed the steps described on the previous post by @Fausto.

I am working on a virtual environment, and originally I had tried to install the libraries directly using pip install daqhats.

I assume that this install the libraries for Rpi 4. Thus, I have done pip uninstall daqhats.

I have cloned daqhats repository from github (rpi5 branch) on:

/home/bbd-rpi-3/Git/daqhats

Then, when doing sudo ./install.sh the following error appears.

Quote

 

(Python_venv) bbd-rpi-3@raspberrypi:~/Git/daqhats $ sudo ./install.sh

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:

 

The following packages have unmet dependencies:

 satisfy:command-line : Depends: libgpiod-dev but it is not installable

                        Depends: libgtk-3-dev but it is not going to be installed

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

Package libgpiod-dev:armhf is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

 

E: Package 'libgpiod-dev:armhf' has no installation candidate

Error installing required libraries

 

Can you support please?

Thank you,

  • 0
Posted

Hello again,

Just to clarify what the base issue on my side is, when running some bring-up code, one of the first functions is:

self.hats = select_hat_devices(HatIDs.MCC_128, 1)

Which raises the error message : Addr 0: Error: This example requires 1 MCC 128 HATs - found 0

Below is the implementation of select_hat_devices (up to the point where it crashes), extracted from an example.

So basically it seems that it can't detect the presence of the hat. The HAT has no jumpers on the address selecting pins. That's how I came to this post and I tried to update the libraries to Rpi5 to get it sorted, but maybe you can see something else that may be preventing the detection of the HAT.

Thank you,

def select_hat_devices(filter_by_id, number_of_devices):
	"""
	This function performs a query of available DAQ HAT devices and determines
	the addresses of the DAQ HAT devices to be used in the example.  If the
	number of HAT devices present matches the requested number of devices,
	a list of all mcc128 objects is returned in order of address, otherwise the
	user is prompted to select addresses from a list of displayed devices.

	Args:
		filter_by_id (int): If this is :py:const:`HatIDs.ANY` return all DAQ
			HATs found.  Otherwise, return only DAQ HATs with ID matching this
			value.
		number_of_devices (int): The number of devices to be selected.

	Returns:
		list[mcc128]: A list of mcc128 objects for the selected devices
		(Note: The object at index 0 will be used as the master).

	Raises:
		HatError: Not enough HAT devices are present.

	"""
	selected_hats = []

	# Get descriptors for all of the available HAT devices.
	hats = hat_list(filter_by_id=filter_by_id)
	number_of_hats = len(hats)

	# Verify at least one HAT device is detected.
	if number_of_hats < number_of_devices:
		error_string = ('Error: This example requires {0} MCC 128 HATs - '
						'found {1}'.format(number_of_devices, number_of_hats))
		raise HatError(0, error_string)

 

  • 0
Posted

Hello  @victor_bbd.

Restart your RPi 5 with the MCC 128.

Use the installed MCC DAQ HAT Manager utility application to verify communication with the MCC 128 or use the following terminal commands.

$ sudo daqhats_read_eeproms

$ daqhats_list_boards

Does the MCC 128 work?  Please reply with screen captures.

 

Regards,

Fausto

  • 0
Posted

Hi @Fausto

I have updated the Raspbian OS using the commands provided, and indeed it did update. I have also download the daq_hats from the link provided, but it still fails.

Please see the screenshot below, which has been done after the OS update and reboot. In it you can see the sourcing of the daq_hats as well as the attempt to install it and the exact OS version.

image.thumb.png.5136a24ad7cc030b8c7089d5ad265f28.png

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...