filmov
tv
QST QMC5883L 3-Axis Digital Compass and Arduino MCU – The Details (3)
Показать описание
Calibration basics, min/max calibration, azimuth calculation …
↓↓↓ Complete description, time index and links below ↓↓↓
In part 2 (link below) we read every bit of raw data, respectively, status information the QMC5883L provides and used its interrupt pin instead of just polling the data in fixed intervals. We’re ready now to do something useful with that data.
As we learned in “The Basics” (link below) you need to calibrate your 3-axis magnetometer. So we start with some calibration theory and implement a simple calibration method. And in the end we calculate a compass direction (azimuth).
00:00 Intro – calibration and azimuth calculation
00:48 Axes revisited – three orthogonal magnetic sensors
03:18 Why calibration – sensor, hard iron and soft iron errors
06:28 Goal of calibration – a certain flux creating a perfect sphere
08:46 Correction matrix – sophisticated calibration, hard to do
11:47 Scaled biases – an easier, good enough way to calibrate
14:00 Fourth version – scaled biases calibration for X, Y and Z values
19:03 Experiments – underwhelming for 3 axes, kinda usable for 1
23:30 Azimuth calculation – two values, trigonometry and arctan2
31:37 Fifth version – compass direction around Z-axis (up and down)
35:00 Wrap-up – we’ll have to revisit the correction matrix, bye
#arduino #compass #magnetometer #i2c #microcontroller #tutorials #tutorial #how-to #robertssmorgasbord
↓↓↓ Complete description, time index and links below ↓↓↓
In part 2 (link below) we read every bit of raw data, respectively, status information the QMC5883L provides and used its interrupt pin instead of just polling the data in fixed intervals. We’re ready now to do something useful with that data.
As we learned in “The Basics” (link below) you need to calibrate your 3-axis magnetometer. So we start with some calibration theory and implement a simple calibration method. And in the end we calculate a compass direction (azimuth).
00:00 Intro – calibration and azimuth calculation
00:48 Axes revisited – three orthogonal magnetic sensors
03:18 Why calibration – sensor, hard iron and soft iron errors
06:28 Goal of calibration – a certain flux creating a perfect sphere
08:46 Correction matrix – sophisticated calibration, hard to do
11:47 Scaled biases – an easier, good enough way to calibrate
14:00 Fourth version – scaled biases calibration for X, Y and Z values
19:03 Experiments – underwhelming for 3 axes, kinda usable for 1
23:30 Azimuth calculation – two values, trigonometry and arctan2
31:37 Fifth version – compass direction around Z-axis (up and down)
35:00 Wrap-up – we’ll have to revisit the correction matrix, bye
#arduino #compass #magnetometer #i2c #microcontroller #tutorials #tutorial #how-to #robertssmorgasbord
Комментарии