sparkfun / pdp-qwiic-micro-python

Repo to manage the logistics of micro python qwiic driver development
0 stars 0 forks source link

SparkFun Micro Magnetometer - MMC5983MA #12

Open gigapod opened 10 months ago

gigapod commented 10 months ago

Board

SparkFun Micro Magnetometer - MMC5983MA

Notes

Driver

brhoff720 commented 10 months ago

Still a viable product. Sells 20/wk and is relatively new. (15 months old)

faludi commented 10 months ago

This is showing as back in stock today: https://www.sparkfun.com/products/19921

sfe-SparkFro commented 9 months ago

Arduino library converted, working on XRP and XBee!

(Except Example 3, that needs the math package for atan2)

faludi commented 9 months ago

Math module coming in the next release of XBee firmware! It will include:

pow acos asin atan atan2 ceil copysign cos degrees e exp fabs floor fmod frexp isfinite isinf isnan ldexp log log10 modf pi radians sin sqrt tan trunc

faludi commented 9 months ago

Latest release of XBee Cellular firmware just dropped, version 1161C. This brings MicroPython up to version 1.20.0 and adds the math module. I haven't tested anything yet, but will keep you posted if I find issues.

Release notes are here: https://hub.digi.com/dp/path=/support/asset/xbee-3-global-lte-m/nb-iot-release-notes/

faludi commented 9 months ago

So far compass mode is working well on XBee with the new math module. Firmware 1161C or greater required of course.

sfe-SparkFro commented 9 months ago

Great to hear! Although I'm unable to test on my end, running into a couple issues:

First, getting a certificate error in XCTU when I open it. Looks like it knows there's an update, but it's unable to download because of this certificate issue?

image

Second, I tried manually installing the firmware update from here, but it doesn't seem to be working. In XCTU, I get to the point that I can install firmware from a file, and I give it the zip, and it says it worked, but the firmware version is still 1141A, and import math does not work in MicroPython. Any tips?

faludi commented 9 months ago

The XCTU error you're seeing is happening for me too today. I've reported it to the our firmware development team and they're notifying the software devs who work on that product. Hopefully fixed soon but not sure if it will be today.

You're still working with an EOL'd version of the LTE-M/NB-IoT product that I sent to Kirk while we waited for the new one. Those won't be updated since they are EOL. @gigapod do you have new product now? Part number should be XB3-C-GM2-UT-001 or XB3-C-GM1-UT-001. @sfe-SparkFro should be working with those going forward since they're the right devices.

sfe-SparkFro commented 9 months ago

Thanks Rob!

The one I have has a sticker that says XB3-C-A2-UT-101 RevB. Guessing that's the old version?

faludi commented 9 months ago

Yep, that's the old version. Let's make sure to get you a new one. If Kirk doesn't have any available I'll see what we can do from our end.

sfe-SparkFro commented 9 months ago

I raided Kirk's office and found a tray of 15, so I stole a couple πŸ˜‰

I see these are on firmware version 1161A, and XCTU shows new firmware is available. But still having trouble updating it - selecting the latest version doesn't allow me to actually update to it (Update button grayed out):

image

Also interesting, it says it can't find the modem version at the top?

I also tried the manual update as before, and got the same behavior (it says successful, but nothing changes).

Any suggestions?

faludi commented 9 months ago

I’m having all sorts of issues too. I think we need to wait until this certificate issue is worked out. The updates I did yesterday went fine but today it’s all πŸ’©

faludi commented 9 months ago

I don't see a fix yet for XCTU, so I've directly notified that dev team. If you're blocked waiting for the firmware update, there IS a cloud service "Digi Remote Manager" that you could connect with to remotely accomplish the update. I just tried that with one of my devices and it works. You'd need to sign up for an account and do a bit of setup, but I can guide you through the more inscrutable parts. Or wait for XCTU to get fixed, which I'm hoping will be very soon. If you do want to try the Remote Manager route, let me know.

sfe-SparkFro commented 9 months ago

Thanks Rob, I'll just wait for now. I'm not in a rush to test it, I've been busy with some other work anyways.

faludi commented 9 months ago

Looks like this got fixed this afternoon. Let me know if you need more help with it.

sfe-SparkFro commented 9 months ago

Yep, the update went smoothly and the math package seems to be working! Well, at least sin, cos, log, and log10 πŸ˜‰ I'll also verify the libraries/examples requiring math work, and will follow up if I find any issues. Thanks Rob!