The sensor is the PmodCMPS2 compass sensor with the 3D magnetometer chip MMC34160PJ Data sheet https://download.mikroe.com/documents/datasheets/MMC3416xPJ_Rev_C_2013_10_30.pdf The values for Helsinki in December 2021 ( Model used WMM-2020 https://www.ngdc.noaa.gov/geomag/calculators/magcalc.shtml#igrfwmm ) North component = 146 milli Gaus East component = 25 milli Gaus Vertical component = 502 milli Gaus Total field = 524 milli Gaus Connect: L432KC -- PmodCMPS2 PA_9 -- SCL PA_10 -- SDA GND -- GND 3V3 -- VCC Set the jumpers SDA and SCL on the PmodCMPS2.

Committer:
timo_k2
Date:
Mon Dec 06 20:46:15 2021 +0000
Revision:
0:2666acd6dfb3
The initial commit.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
timo_k2 0:2666acd6dfb3 1 The sensor is the PmodCMPS2 compass sensor with
timo_k2 0:2666acd6dfb3 2 the 3D magnetometer chip MMC34160PJ
timo_k2 0:2666acd6dfb3 3 Data sheet
timo_k2 0:2666acd6dfb3 4 https://download.mikroe.com/documents/datasheets/MMC3416xPJ_Rev_C_2013_10_30.pdf
timo_k2 0:2666acd6dfb3 5
timo_k2 0:2666acd6dfb3 6 On the earth surface the world magnetic field points towards the north and
timo_k2 0:2666acd6dfb3 7 in level with the horizon at the equador. Further north the field starts
timo_k2 0:2666acd6dfb3 8 pointing downwards. In southern Europe it points downwards with inclination
timo_k2 0:2666acd6dfb3 9 60 degrees. In Scandinavia it points downwards with inclination 75 degrees.
timo_k2 0:2666acd6dfb3 10 At the north pole it points straight down with inclination 90 degrees.
timo_k2 0:2666acd6dfb3 11
timo_k2 0:2666acd6dfb3 12 The declination is the difference between geaographic and magnetic north pole.
timo_k2 0:2666acd6dfb3 13 The declination depends where and when you are observing the field.
timo_k2 0:2666acd6dfb3 14
timo_k2 0:2666acd6dfb3 15 The values for Helsinki in December 2021 ( Model used WMM-2020
timo_k2 0:2666acd6dfb3 16 https://www.ngdc.noaa.gov/geomag/calculators/magcalc.shtml#igrfwmm )
timo_k2 0:2666acd6dfb3 17 Declination 9 degr 45 min
timo_k2 0:2666acd6dfb3 18 Inclination 73 degr 35 min
timo_k2 0:2666acd6dfb3 19 North component 14572 nT = 146 milli Gaus
timo_k2 0:2666acd6dfb3 20 East component 2505 nT = 25 milli Gaus
timo_k2 0:2666acd6dfb3 21 Vertical component 50222 nT = 502 milli Gaus
timo_k2 0:2666acd6dfb3 22 Total field 52353 nT = 524 milli Gaus
timo_k2 0:2666acd6dfb3 23
timo_k2 0:2666acd6dfb3 24 Connect:
timo_k2 0:2666acd6dfb3 25 L432KC -- PmodCMPS2
timo_k2 0:2666acd6dfb3 26 PA_9 -- SCL
timo_k2 0:2666acd6dfb3 27 PA_10 -- SDA
timo_k2 0:2666acd6dfb3 28 GND -- GND
timo_k2 0:2666acd6dfb3 29 3V3 -- VCC
timo_k2 0:2666acd6dfb3 30 Set the jumpers SDA and SCL on the PmodCMPS2.
timo_k2 0:2666acd6dfb3 31
timo_k2 0:2666acd6dfb3 32 Timo Karppinen Apache-2.0