Jump to content
  • 0

MCC 152 can be detected but unable to open port


BBC

Question

SPI and I2C are both enabled. When I run the MCC DAT HAT Manager it is able to detect the MCC 152 from the List devices 

image.png.51cd1479da0258fdcc2f117d20400a00.png

 

The address is correct but I am unable to open the device and write signal to the DIO and AO. 

image.png.da10ae229f505fd920771bc96252a92d.png

Is there anything I am missing? I am running the latest Raspbian on Pi 4 with Python 3 installed. 

Is there anything I can check or probe on the HAT to verify it is working? 

Thank you. 

Leon

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

I tested the hat against another RPI (3B) and it's working fine. I think the original RPI (4B) that I used was defected.

I had another hat stacked (RPI CAN Hat shield) along with the MCC-152 and that might have messed up the SPI pins...

 

Thanks for the reply though. 

 

BTW there was no error message and no response if I tried to open the device from the GUI program. 

 

If I tried to run the python program I get a message "Error during opening port [...]". 

 

 

Edited by BBC
Link to comment
Share on other sites

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...