arduino / ArduinoCore-mbed

347 stars 203 forks source link

MKR format Portenta crashes with MKRIMU shield (possibly RESET pin issue) #398

Open hpssjellis opened 2 years ago

hpssjellis commented 2 years ago

I attached upwards female headers on my Arduino PortentaH7 so that the Vision shields can also plug into it using the bottom located 80 pin HD connectors. (Female headers facing up would be a good purchase option from the Arduino store) (By the way the Portenta in the following image had through hole male pins as well which when I stripped off the male pins I clipped a bit of the board and potentially have wrecked that board, my bad)

.

PortentaH7big

.

The Portenta with upwards female headers means a few of the MKR format shields that also only have upward facing female headers will not attach, but most MKR shields also have downward facing male headers so they attach fine to the Portenta. One such shield is the MKRIMU (for acceleration, roll and magnetic field)

.

MKRIMU

.

I tried connecting these two MKR format boards together using a few of my Portenta's with and without the vision shield attached and on power up every time the PortentaH7 went into panic mode (SOLID RED LED).

. mkr-crash

.

I looked at the diagram, and realized there were only a few connected pins, so using male-female breadboard wires I manually connected them only. 3.3V, GND, RESET, pin DO, pin11/SDA, pin12/SCL . Unfortunately this still caused the SOLID RED LED.

mkr-imu01

I then one at a time disconnected a wire and fired up the board, when I disconnected the RESET pin the board powered up GREEN LED.

. imu-fix

.

With the RESET pin disconnected I successfully ran the Acceleration MKRIMU example

.

mkrimu-code

.

I then tested the roll and magnetic field examples and they all worked. I then tested an advanced Machine Learning EdgeImpulse motion example here from my library of Portenta-Pro-Community-Solutions. I changed the EdgeImpulse standard #include <Arduino_LSM9DS1.h> for the Nano 33 Ble Sense to #include <MKRIMU.h> for the MKRIMU and the advanced motion machine Learning program worked.

I would assume a simple fix for the MKRIMU shield to be useful on the PortentaH7 would be to snip the RESET pin, however I don't have any other MKR format boards so I don't know if this fix is detrimental to other boards. Could someone, who is not spending their own money, test this issue and possible fix and reply back.

Understandably, I may have tweeted something in frustration about this. Happy now that it works.

hpssjellis commented 1 year ago

Any progress on this. I even managed to orange LED brick one of my Portenta's while testing the MRK IMU

portelaraiden8 commented 1 year ago

Hi hpssjellis,

i have connected that same you. So, MKRIMU does not refresh value when i move it. Do you know that what is happening?

hpssjellis commented 1 year ago

@portelaraiden8

Did you try bending the reset pin away before connecting it?