Micro:Bit (microbit) compass bug #5375
Replies: 1 comment
-
Posted at 2016-06-15 by @gfwilliams Hi - thanks for letting me know... so it just crashes on the 'compass' call? Does it return after a few seconds? It could be it's having some difficulty communicating over I2C, but it should time out. The micro:bit is a lot slower than normal Espruinos, so it could be that the timeouts are way longer than they should be and it could take up to a minute to return. It does seem like there's an issue with the code that reads from the compass though, even if it's only that it's giving dodgy values. I'll file an issue for it, but I'm a bit busy this week. If you desperately need it, you should be able to get the compass values directly:
Posted at 2016-06-15 by luwar I don't have a Micro:bit up to now but I've read that the magnetometer chip in the Micro:bit is the MAG3110 from Freescale. We have an Espruino module for the MAG3110 which supports all features of the sensor (e.g. different operation modes). It's fully tested with a MAG3110 evaluation board. @stev Posted at 2016-06-15 by @gfwilliams @luwar thanks! I'd totally forgotten about that! Posted at 2016-06-15 by Stev Hey, @luwar @gfwilliams Posted at 2016-06-15 by @gfwilliams Ahh, that makes sense then. I just fixed it, so any new builds (and 1v86 when released) will have it working. Posted at 2016-06-15 by Stev Cool. Posted at 2016-07-20 by user66364 Solved in 1.86. confirmed. Posted at 2016-07-20 by @gfwilliams Great - thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-06-10 by Stev
Hey,
just received my microbit and while typing along (really easy espruino install, btw) I found that repetitively calling compass() creates nonsense result and soon gets stuck at
like so:
Saw that too? Not sure if its some device data underflow or a missing reset, as I haven't looked at any internals so far.
Cheers
Stev
Beta Was this translation helpful? Give feedback.
All reactions