RM3100 Faq R06
RM3100 Faq R06
com
Santa Rosa, CA 95407-5437 USA 707-566-2261 fax
Table of Contents
1 WHAT IS RM3100? .......................................................................................................... 3
2 WHAT ARE RM3100 INTERFACE PORTS? .......................................................................... 3
3 WHAT IS CYCLE COUNT AND HOW TO CHANGE IT? .......................................................... 3
4 WHAT IS THE RELATIONSHIP BETWEEN CYCLE COUNT AND GAIN?................................... 3
5 WHAT IS THE RELATIONSHIP BETWEEN GAIN AND SENSITIVITY? ..................................... 3
6 HOW TO READ OUT RM3100 MEASUREMENT ?............................................................... 4
7 HOW TO CONVERT RM3100 OUTPUT TO MICROTESLA? .................................................. 4
8 WHAT IS THE MAXIMUM SAMPLE OR DATA RATE? ......................................................... 4
9 HOW TO CHANGE SAMPLE OR DATA RATE? .................................................................... 4
10 HOW MANY MODES RM3100 SUPPORTS? ....................................................................... 5
11 DOES RM3100 SUPPORT DATA READY SIGNAL? .............................................................. 5
12 HOW TO READ RM3100 OUTPUT? ................................................................................... 5
13 DOES RM3100 SUPPORT SELF TEST?................................................................................ 5
14 HOW TO EVALUATE RM3100? ......................................................................................... 5
15 ANY SAMPLE CODE OR DRIVER CODE ? ........................................................................... 5
16 WHAT IS THE RECOMMENDED RM3100 LAYOUT AND AXIS POLARITIES ? ....................... 6
17 HOW TO TEST AND VERIFY POLARITY ON XYZ (NED) AXES ?............................................ 7
18 WHAT IS RM3100 SENSOR ID? ........................................................................................ 8
19 DOES TEMPERATURE AFFECT RM3100 ? .......................................................................... 8
20 HOW TO START A MEASUREMENT? ................................................................................ 9
21 WHAT IS THE RM3100 REGISTER MAP? ......................................................................... 10
22 HOW TO READ/WRITE A REGISTER ON SPI? .................................................................. 10
23 HOW TO READ/WRITE A REGISTER ON I2C? .................................................................. 11
Version # Changes Date
Page | 2
Cycle Count as default value is 200 or 0xC8 in hex. Each axis can have different cycle count, to
change, set CCX, CCY and/or CCZ registers. They are 16-bit registers.
Cycle count and gain are linearly related. See the following table on “Cycle Count” and “Gain”.
Sensitivity is the inverse of gain, Sensitivity = 1/Gain. See Q4 Table “Gain” and “Sensitivity”.
Page | 3
SInt32 XYZ[3];
XYZ[0] = ((signed char)mSamples[0]) * 256 * 256;
XYZ[0] |= mSamples[1] * 256;
XYZ[0] |= mSamples[2];
Please pay attention to “Cycle Count” setting. The default is 200, if customer changes to
different value, the “Gain” will change too. Example given in Q4 Table.
The Cycle Count establish the maximum sample rate. For instance, if the cycle count is set to
200 as default, then the maximum 3-axis sample rate is ~430 Hz. Higher sample rates can be
obtained by reducing the number of cycle counts, but this also diminishes gain and sensitivity.
When sample rate is fixed, lower cycle count will reduce sensor oscillation time and in turn to
reduce power consumption.
RM3100 TMRC register controls the time between measurements in Continuous Measurement
Mode. Its default is 0x92, indicating an update rate of ~600 Hz. When the Cycle Count is 200,
the maximum rate established by the Cycle Count will override the TMRC setting, and the
actual update rate will be ~430 Hz.
Page | 4
Yes. RM3100 supports measurement data ready interrupt line (PIN 23) and also STATUS
Register (0x34).
Assume SPI host or I2C host is well established to communicate to RM3100. Read RM3100
output from Measurement Results Registers 0x24 to 0x2C. There are total 9 bytes, and 3 bytes
(24 bits) for each axis.
Yes. RM3100 supports Built-In Self-Test (BIST) with BIST register (0x33). For troubleshooting
circuit connection on XYZ sensors, users should measure the resistance of XYZ sensors. The
resistance value should be about 35 ohms. Big resistance value such as 1M ohms indicates
broken sensor.
PNI offers RM3100 Test Boards on-line, Eval Board and Break Board. They are the same PCB,
and the Eval Board has extra pins for easy connection. Check RM3100 Testing Boards Manual
for details.
Page | 5
Following picture indicates how the three sensor coils in a RM3100 Geomagnetic Sensor should
be oriented for a system referenced as north-east-down (NED) as XYZ axes. The Line of Sight
arrow represents the direction of travel or pointing, and it’s the X axis too. The Sen-XY-f is
insensitive to the location of the polarity indicator, while the location of the polarity indicator is
critical for the Sen-Z-f.
The polarity of X and Y axes are defined by the XDRVP and YDRVP pads. The embossed arrow or
white paint on the XY coils in the following drawing can be ignored. However, PNI recommends
to layout the XY coil’s polarity indicator to be consistent on XDRVP and YDRVP for a clear layout
design.
Page | 6
Geomagnetic field can be measured everywhere on earth. This example shows how to measure
it to test and confirm the polarity of XYZ (NED) axes.
• Enter the Lon&Lat into the following calculator to get geomagnetic field strength and
inclination of your location.
https://www.ngdc.noaa.gov/geomag/calculators/magcalc.shtml?model=wmm#igrf
wmm
Result: Geomagnetic field vector strength 48.35 𝜇T, Inclination (dip angle) 61.43°
• Align the X axis toward the “Geomagnetic field F” vector like the following picture. Point
X to north direction and tilt the PCB downward at the inclination angle of 61.43° if your
location is at the northern hemisphere. When you are adjusting the alignment,
observing the XYZ measurements, the measurement on X should be getting close to
48.35 𝜇T. Y and Z measurement should be getting around 0. If X measurement is close
to -48.35 𝜇T, that means the polarity of X is reversed.
Page | 7
• Repeat the same procedure on Y. Align the Y axis toward the “Geomagnetic field F”
vector, the measurement on Y should be around 48.35 𝜇T. X and Z measurement
should be around 0. If Y measurement is negative around 48.35 𝜇T, that means the
polarity of Y is reversed.
• Do the same test on Z to verify Z polarity.
Page | 8
Page | 9
Page | 10
Page | 11