sparkfun MAG3110 Скачать руководство пользователя страница 8

Notice the electromagnetic interference caused by simply heating up my frozen burrito.

And, if you put a fridge magnet near the sensor, you will see large spike! Be careful though, the sensor has maximum limits of magnetic field strength it can be
exposed to without damage.

Each spike represents the approach of a fridge magnet

Resources and Going Further

This is a nifty little sensor for orientation, but you may want to go beyond the simple compass that this library allows. You can use an accelerometer in conjunction
with this device to create a tilt-compensated compass. SparkFun has a variety of accelerometers available, including the ADXL345.

To get you started in the right direction, here are a few application notes that go into more detail about this:

Calibration of an eCompass - NXP Application Note

Tilt Compensated Compass w/ Magnetometer and Accelerometer - NXP Applicatio Note

You can also check out my project using this guide and the MAG3110, the Digital Compass.

MicroView Digital Compass

OCTOBER 24, 2016
Build a portable digital compass using the SparkFun MicroView and the
MAG3110 Magnetometer Breakout.

New

!

Содержание MAG3110

Страница 1: ...r You may want to use something like this 3 3V Low Dropout Regulator LDO For the rest of the items you will need see the wish list below SparkFun Logic Level Converter Bi Directional BOB 12009 If you...

Страница 2: ...upply Voltage 1 95V to 3 6V GND Must be connected to ground SDA Serial Data pin for I C Communication SCL Serial Clock pin for I C Communication INT Interrupt pin high when new data is ready You may n...

Страница 3: ...SCL Leonard Micro 2 SDA 3 SCL Due 20 SDA 21 SCL SDA1 SCL1 SparkFun MAG3110 Library SparkFun has created a library to make it easier to get readings from the MAG3110 sensor It also has code to calibra...

Страница 4: ...lk to the MAG3110 When initialized the magnetometer is set to standby mode with all offsets set to 0 To put the magnetometer in active mode and start sampling simply write mag start You can check whet...

Страница 5: ...n microTeslas Serial print X Serial print xf Serial print Y Serial print yf Serial print Z Serial println zf Serial println A few functions to point out from the example above mag setDR_OS This functi...

Страница 6: ...0 Triggered You can also do triggered measurements while in active mode This is more advanced and is covered in the datasheet Calibration All these functions are great but what if you need to find a p...

Страница 7: ...e calibration earlier by calling mag exitCalMode Please note that the calibration may be offset if you do not calibrate enough If you have not calibrated the MAG3110 calling mag readHeading will only...

Страница 8: ...library allows You can use an accelerometer in conjunction with this device to create a tilt compensated compass SparkFun has a variety of accelerometers available including the ADXL345 To get you sta...

Отзывы: