sparkfun / sparkfun_mag3110_breakout_board_arduino_library Goto Github PK
View Code? Open in Web Editor NEWArduino Library for the SparkFun Triple Axis Magnetometer Breakout - MAG3110
License: Other
Arduino Library for the SparkFun Triple Axis Magnetometer Breakout - MAG3110
License: Other
Looks like this library is not longer available in the index:
https://github.com/arduino/library-registry/blob/main/repositories.txt
Was it removed on purposed? If not, could we re-add it?
The initialize() function always return false. .dataReady() always return false as well, thus no readings can be made. If I try to read the values directly, the arduino seems to just hang.
Does anyone face the same issue?
In the file "src/SparkFun_MAG3110.cpp", in the function "readMag()" there is waiting after the Wire.requestFrom(). This line: while( Wire.available() != 6 ) {}
may be removed, it is at the moment at line 93.
Explanation: Common-mistakes#1
Hi @sparkfun,
I'm using this module with an ESP-12 and I'm just running the Basic example. I'm getting very unusual readings. Here is a typical sample:
X: 64895, Y: 425, Z: 64768
What could this be? Have I got a damaged MAG3110? Is there a weird scale value register set somewhere? Any clues would be much appreciated.
EDIT: Upon further investigation - the MAG3110 has two 8-bit registers for each axis. In this library, they're joined and packaged into an int
. Shouldn't they be packed into a uint16_t
or an unsigned int
? Surely there's no sign in the values the magnetometer will spit out. Could I be getting these values due to an overflow?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.