https://github.com/fireinstallations/arduino_magnetometer-hmc5883
Smart Arduino-sketch to measure Earth's magnetic field
https://github.com/fireinstallations/arduino_magnetometer-hmc5883
arduino arduino-sketch c magnet magneticnorth magnetism magnetometer ready-to-use
Last synced: 3 months ago
JSON representation
Smart Arduino-sketch to measure Earth's magnetic field
- Host: GitHub
- URL: https://github.com/fireinstallations/arduino_magnetometer-hmc5883
- Owner: FireInstallations
- License: agpl-3.0
- Created: 2018-09-20T16:05:01.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-26T23:51:56.000Z (over 6 years ago)
- Last Synced: 2025-01-29T13:09:26.249Z (5 months ago)
- Topics: arduino, arduino-sketch, c, magnet, magneticnorth, magnetism, magnetometer, ready-to-use
- Language: C++
- Homepage:
- Size: 67.4 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Arduino_Magnetometer
Just Download it, compile it (with ArduIno IDE) and use it with HMC5883 Magnetic detector!
From the magnetometer definite values are known only. One can direct an axis of the HMC5883 parallel or antiparallel to the earth magnetic field and so use it for calibration. The earth magnetic field in Berlin has a strength of 0.5 G. The ideal behavior of the HMC, that it has a sensitivity of 0.00435 G/count. So we attain 115 counts in the maximum.
The gauging procedure of the sensor, determines these positive and negative maxima and interpolates in between by a certain formula, which is derived in the following.The readings, this means the originally detected counts, are rx and the settings, the scaled (gauged) values, are sx. rxp is the positive maximum, which means the value for the x axis parallel to the magnetic earth field B, and rxm is the negative value for directing the x axis antiparallel to B.

Figure: The relationship between read counts rx and calibrated counts sx. The blue dots show the real read counts for the calibration condition (parallel or antiparallel to B). The red line is the calibration line.