Closed Supernova1114 closed 7 months ago
Hi @Supernova1114 ,
The Mega is a 5V board. The ZED is 3.3V. You will get errors in the I2C signals due to the voltage difference. You need a level shifter: https://www.sparkfun.com/products/15439
Also, please check you are connecting your red wire to the Mega 3.3V breakout pin. (I can't see the pin clearly in your photo.) You may damage the ZED if you connect Qwiic 3.3V to 5V.
I hope this helps, Paul
That is a whoops by my part, I think I was indeed using 5V. Thankfully the boards don't seem to be damaged yet. I will get back to y'all near the end of the day to see if this solves the issue. Thanks for the feedback!
Also, you have two ZEDs on the same I2C bus. Have you set the address of one to 0x43? Have you saved the address in ZED flash memory? (Are you sure the addresses are correct - and not causing bus collisions?)
Best, Paul
Closing this as it seems clear it is a hardware issue. Please re-open if you need more help. Best wishes, Paul
This ended up fixing the issue thank you! Using 3.3 V instead of 5 V.
I just also wanted to mention that a symptom of using 5V is also that the GPS is very slow to return data, which makes sense that this would be caused by errors in the I2C signal.
Thanks for the update. Glad that's working for you...
Subject of the issue
I am able to view Relative Position NED data from the U-Blox U-Center application via USB. I have the Relative Position NED automatically sending packets over the UBX protocol, and can view those packets being sent. When connected over I2C, I am able to receive positional data from the simple GetPosition Arduino example, however, when I test the RelativePositionInformation example, the packet returns zero for all data points.
Your workbench
Steps to reproduce
Stripped down code from the Zed-F9P > Example5_RelativePositioningInformation.ino example:
Expected behavior
Return proper data from RelPosNED.
Actual behavior
All data points return zero from RelPosNED.