Questions tagged [magnetometer]

34 questions
12
votes
4 answers

Converting three-axis magnetometer values to degrees

I have a 9-DOF sensor (MPU-9150) and I want to use its magnetometer to retrieve the rotation angle, from 0 to 359. However, its library returns three values: x, y and z. I do not know how to transform this into a single value. Is there any way to do…
Guilherme
  • 235
  • 1
  • 2
  • 10
5
votes
2 answers

What is the difference between Accelerometer, Gyro, and Magnetometer Sensor?

I'm starting in the arduino world and I'm building an autonomous smart vehicle. So, after some weeks building and adjusting the vehicle, I got to a point in this project that I want to log it's movements. Talking with a friend, he showed me an…
Gabriel Brito
  • 165
  • 1
  • 2
  • 10
3
votes
1 answer

3.3v inductive proximity sensors

I'm using an ESP8266 so I'm limited to 3.3v. I've found a number of inductive proximity sensors but they require 5v or more. Does a 3.3v sensor exist? I recently dropped some tiny screws on dark carpeting and would like to find them instead of…
acpilot
  • 653
  • 3
  • 13
  • 26
2
votes
1 answer

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 understanding in how magnetometers work and just trying to…
Sayantan Das
  • 123
  • 6
2
votes
0 answers

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 etc in Arduino...and I have passed previous…
joeyc
  • 21
  • 1
2
votes
1 answer

FIXING BUG when Using Wire library to obtain compass heading

I am using the HMC-5983 magnetometer module to obtain the compass heading of a autonomous car I am building using the arduino platform.I'musing the Z axis and X axis to obtain the heading. However when the headingFiltered variable is at 359 and the…
AfiJaabb
  • 219
  • 1
  • 3
  • 8
2
votes
1 answer

Can't get MMC3416xPJ to work

I needed a magnetometer with a high Output Data Rate (ODR). This is because I wanted to measure AC magnetic fields of around 20-80 Hz. So I decided to go with the MMC3416xPJ prototyping board which has an ODR of 800 Hz…
2
votes
0 answers

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 the same connections. No modifications to the…
2
votes
0 answers

Arduino GY273 HMC5883L Constant Value

I have a GY-273 which has HMC5883L chip (I guess). I am trying to get data. I find a few codes and library (I don't have enough information about HMC5883L) but always all serial port screen there are only one value. Here is my sketch: #include…
2
votes
2 answers

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 HMC5883L Breakout sensors, and I am in the process…
2
votes
1 answer

HMC5883L - Tilt compensation without Accelerometer

Trying to get an HMC5883L to compensate for being installed in 90 degrees. Doesn't seem to me that it'll need too complex math or accelerometer. But I have no idea how to do the compensation for it. Any idea? Using the Adafruit HMC5883L and its…
2
votes
2 answers

Problems reading I2C sensor when using a Xbee module

I'm developing a project where I can control a RC boat with GPS and a magnetometer. How ever, I was developing everything connected to my computer and worked pretty well. When I was going to make some test with a battery and a couple of Xbee's (PC…
2
votes
0 answers

Two MPU 9250 connected to one arduino (Code of the MPU6050 edited for MPU9250)

I have done a lot of tries to make my two IMU work with my arduino. I'm also done with many research about it and I found this code: // I2C device class (I2Cdev) demonstration Arduino sketch for MPU6050 class // 10/7/2011 by Jeff Rowberg…
Thomas
  • 123
  • 1
  • 4
  • 11
2
votes
4 answers

How to use Multiple MPU9250 to Arduino Lilypad

Is it possible to connect more than one or to be specific 5 MPU9250 into 1 Arduino lilypad? How will I set the addresses, and where should I put the pins for SDA and SCL? I hope someone out there could help me on this project. Cheers! What if I…
Thomas
  • 123
  • 1
  • 4
  • 11
1
vote
2 answers

Trouble calibrating MMC5603 Magnetometer with MotionCal and Adafruit SensorLab – readings seem off

I'm trying to calibrate my MMC5603 magnetometer using MotionCal and the Adafruit SensorLab Jupyter notebook, but my readings seem off. The raw magnetometer values appear to be spread out oddly even before calibration, and they don’t seem to move…
user118038
1
2 3