<< return to Pixycam.com

Pixy2 and Arduino Portenta H7 Lite

I am trying to use Pixy2 with the Portenta H7 Lite, and the camera is working fine on the main core M7 (for example “getBlocks()”). However, when I switched its use to the secondary core M4, everything compiled with no issues, but at run time, as soon pixy.init() gets activated, just no response from the camera. However, during this time, PixyMon still shows that the camera is working normally.

Has anyone tried this use configuration? Thank you for any pointer.

Hello,
That’s a good question. From what I’ve read, the M4 core is a satellite processor with limited peripheral access. Does the M4 have access to the SPI port? I can’t seem to find the relevant information.

Edward

1 Like

I2C on M4 also behaved poorly from my experience. I am still struggling to find a good use for that M4 core!

I used the Pixy2 camera via SPI on the Portenta H7 Lite and it worked only on Core M7.

After pixy_cam.init(), I found that a minimum delay(1100) is needed for the Pixy2 to be ready to transfer data. After that I just used standard commands from the Color Connected Components API (in blocking mode):

https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:ccc_api

1 Like

Hello,
Sorry, but we’re not familiar with the H7 and how it fits into the Arduino ecosystem. I think you raise a good question, we just don’t know the answer. :slight_smile:

Edward

1 Like