All Questions
Tagged with magnetometer arduino-uno
9 questions
2
votes
1
answer
1k
views
Why am I getting wrong compass heading using magnetometer readings?
I have been trying to calculate the compass heading using the magnetometer in an MPU9250 sensor. But the result is not making sense to me. I am completely new in this and do not have much ...
0
votes
1
answer
471
views
Tilt Compensated Compass Using HMC5983 gives inconsistent output
I've been trying to build a tilt compensated compass for an autonomous Arduino car I'm building. I'm having issues with the consistency of my data.
This is the code I'm using.
#include <Wire.h>...
0
votes
1
answer
197
views
Compass heading not varying linearly
I am using an HMC-5983 magnetometer compass on my arduino uno to find the heading of a car I'm building.But my compass readings aren't varying linearly.For example when I physically turn my compass by ...
2
votes
0
answers
357
views
Code stuck on mag.getEvent(&event); in HMC5833L Compass
Last week I created some code in which I can run a Ublox GPS NEO-6 and a magnetometer HMC5883L together. Which at the time worked brilliantly.
Yesterday I have attempted to run the code again, with ...
1
vote
3
answers
886
views
How to filter or eliminate earths magnetic field readings around 3D Magnetic sensor?
Im using the SparkFun MAG3110 3D sensor:
https://www.sparkfun.com/products/12670
My application is essentially to make a contactless "magnetic joystick" using a local magnet for accurate and constant ...
0
votes
1
answer
66
views
adafruit LSM9DS0 Library - ok with Uno but compile error with LinkitOne?
I'm calling an adafruit Flora LSM9DS0 magnetometer using the Adafruit library with the following sketch:
#include <Wire.h>
#include <SPI.h>
#include <...
2
votes
2
answers
3k
views
Issue with code for SDA/SCL TC9548A Multiplexer and HMC5883L sensors
This is my first time posting on this forum, so I hope my question is appropriate here. My team is working with the Adafruit TCA9548A 1-to-8 I2C Multiplexer Breakout board to try and read from six ...
1
vote
1
answer
178
views
Will it work ? MPU6050 Gyro etc. etc. module
Will this code read the values properly ?
Using MPU6050.h.
#include <MPU6050.h>
#include <Wire.h>
void setup() {
Serial.begin(115200);
Wire.begin();
MPU6050.initialize();
}
void ...
2
votes
0
answers
574
views
Combining & averaging magnetometer values
I am trying to measure a users 'hand steadiness' in order to control a video game character in UNITY3D. I am using a MinIMU-9 Gyro/Accelerometer/Compass linked with Arduino. I can measure pitch/roll ...