---
title: Measuring Rotational Speed of Electrical Machines with a Magnetometer
description: Discover how EnDAQ's magnetometer enables accurate, contactless measurement of rotational speeds in electrical machines, even in challenging environments.
image: https://blog.endaq.com/hubfs/blog-banner-rotational%20speed.png
---

[![endaq blog logo](https://blog.endaq.com/hubfs/endaq-blog-logo.svg "endaq blog logo")](https://blog.endaq.com)

- [ENDAQ.COM](https://www.endaq.com/)
- [HELP CENTER](https://support.endaq.com)
- [CLOUD](https://endaq.com/collections/endaq-cloud-remote-vibration-monitoring)
- [CONTACT](https://endaq.com/pages/contact)

[View All Blog Posts](https://blog.endaq.com)

# Measuring Rotational Speed of Electrical Machines with a Magnetometer

[Data Analysis](https://blog.endaq.com/tag/data-analysis)

 0 Comments <https://blog.endaq.com/measuring-rotational-speed-of-electrical-machines-with-a-magnetometer#comments-listing>

Share This

<https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fblog.endaq.com%2Fmeasuring-rotational-speed-of-electrical-machines-with-a-magnetometer> <https://twitter.com/intent/tweet?url=https%3A%2F%2Fblog.endaq.com%2Fmeasuring-rotational-speed-of-electrical-machines-with-a-magnetometer&text=Measuring+Rotational+Speed+of+Electrical+Machines+with+a+Magnetometer> <https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fblog.endaq.com%2Fmeasuring-rotational-speed-of-electrical-machines-with-a-magnetometer> [mailto:?subject=Measuring+Rotational+Speed+of+Electrical+Machines+with+a+Magnetometer&body=https%3A%2F%2Fblog.endaq.com%2Fmeasuring-rotational-speed-of-electrical-machines-with-a-magnetometer](mailto:?subject=Measuring+Rotational+Speed+of+Electrical+Machines+with+a+Magnetometer&body=https%3A%2F%2Fblog.endaq.com%2Fmeasuring-rotational-speed-of-electrical-machines-with-a-magnetometer)

by [Sauro Liberatore](https://blog.endaq.com/author/sauro-liberatore)

Share This

<https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fblog.endaq.com%2Fmeasuring-rotational-speed-of-electrical-machines-with-a-magnetometer> <https://twitter.com/intent/tweet?url=https%3A%2F%2Fblog.endaq.com%2Fmeasuring-rotational-speed-of-electrical-machines-with-a-magnetometer&text=Measuring+Rotational+Speed+of+Electrical+Machines+with+a+Magnetometer> <https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fblog.endaq.com%2Fmeasuring-rotational-speed-of-electrical-machines-with-a-magnetometer> [mailto:?subject=Measuring+Rotational+Speed+of+Electrical+Machines+with+a+Magnetometer&body=https%3A%2F%2Fblog.endaq.com%2Fmeasuring-rotational-speed-of-electrical-machines-with-a-magnetometer](mailto:?subject=Measuring+Rotational+Speed+of+Electrical+Machines+with+a+Magnetometer&body=https%3A%2F%2Fblog.endaq.com%2Fmeasuring-rotational-speed-of-electrical-machines-with-a-magnetometer)

## Using a Magnetometer to Measure the Rotational Speed of Electrical Machines

### What is a magnetometer?

A magnetometer is a sensor that measures the strength and direction of a magnetic field. It can detect the Earth's magnetic field as well as variations generated by nearby magnetic materials or electrical devices. Magnetometers are commonly used for orientation, heading determination, rotational positioning, and magnetic anomaly detection.

Most modern smartphones include a built-in magnetometer, commonly referred to as a digital compass. This sensor measures the Earth's magnetic field to determine the phone's orientation, support navigation applications, and detect changes in the surrounding magnetic environment.

The Earth's magnetic field typically ranges from approximately 25 to 65 microteslas (µT), depending primarily on geographic location, with lower values near the equator and higher values toward the poles.

For transparency, for this post I used an enDAQ data logger, though any high-end data logger that incorporates a three-axis magnetometer will suffice.

In this post we will cover:

- [Magnetometer: Beyond orientation measurements](https://blog.endaq.com/measuring-rotational-speed-of-electrical-machines-with-a-magnetometer#magnetrometer)
- [Contactless rotational speed measurement: A drill press example](https://blog.endaq.com/measuring-rotational-speed-of-electrical-machines-with-a-magnetometer#contactless)
- [Measuring magnetic fields around large steel structures](https://blog.endaq.com/measuring-rotational-speed-of-electrical-machines-with-a-magnetometer#measuring)
- [Identifying rotational speed through frequency analysis](https://blog.endaq.com/measuring-rotational-speed-of-electrical-machines-with-a-magnetometer#identifying)
- [Conclusion](https://blog.endaq.com/measuring-rotational-speed-of-electrical-machines-with-a-magnetometer#conclusion)
- [FAQs](https://blog.endaq.com/measuring-rotational-speed-of-electrical-machines-with-a-magnetometer#faqs)

---

### Magnetometer: Beyond orientation measurements

High-end data loggers generally use their three-axis magnetometer in conjunction with their IMU (Inertial Measurement Unit). The IMU provides acceleration and rotational orientation information, typically expressed as quaternions. The magnetometer measurements contribute to the IMU's internal orientation-estimation algorithms, but the raw magnetic-field measurements are also available to users for independent analysis.

While there are several potential applications for these measurements, one particularly interesting opportunity is the determination of rotating electrical machine speeds with high accuracy, potentially without any physical contact with the machine.

Electrical motors generate rotating magnetic fields in their surroundings. These fields can be detected by a nearby magnetometer, and their periodic variations can be used to identify the rotational speed of the machine. Although the magnetic-field strength generally decreases with distance, the ability to detect these variations depends on the motor characteristics, sensor location, and surrounding magnetic environment.

We tested our magnetometer on electrical machines of different sizes and at different distances from their motors. The results demonstrated that the sensor could reliably detect the magnetic signatures associated with machine rotation.

---

### Contactless rotational speed measurement: A drill press example

Figure 1 shows a data logger positioned near a drill press. Figure 2 presents the corresponding magnetometer recordings obtained at different distances from the motor.

![Figure 1](https://blog.endaq.com/hs-fs/hubfs/image-png-Nov-03-2026-05-30-14-1102-PM.png?width=1920&height=774&name=image-png-Nov-03-2026-05-30-14-1102-PM.png)

**Figure 1:**  Data logger unit in the vicinity of a drill press

![Figure 2](https://blog.endaq.com/hs-fs/hubfs/image-png-Nov-03-2026-09-38-26-5979-PM.png?width=1920&height=774&name=image-png-Nov-03-2026-09-38-26-5979-PM.png)

**Figure 2:**  Magnetic field produced by the electrical motor of the drill press recorded while varying distance from the motor

Although Figure 1 illustrates the unit in contact with the machine, the measurements shown in Figure 2 were obtained by progressively moving the sensor closer to the motor, including positions where there was no physical contact.

![Figure 3](https://blog.endaq.com/hs-fs/hubfs/image-png-Nov-03-2026-09-41-32-5307-PM.png?width=1920&height=774&name=image-png-Nov-03-2026-09-41-32-5307-PM.png)

**Figure 3:** Data logger placed in the lathe at distance from the motor (usually, the motor stands in the floor between it and the chuck motion is placed the gear system to adjust the lathe speeds.

![Figure 4](https://blog.endaq.com/hs-fs/hubfs/undefined-Nov-03-2026-09-45-23-0916-PM.png?width=1920&height=774&name=undefined-Nov-03-2026-09-45-23-0916-PM.png)

**Figure 4:**  Magnetic field measured by the unit placed on top of the lathe

This is an important advantage of the magnetometer: **rotational speed can potentially be measured without attaching the sensor to the machine.** In some applications, this can significantly simplify instrumentation, particularly when physical access is limited or when installing a sensor directly on the machine is impractical.

As expected, the magnetic-field variations generated by the motor were readily distinguishable from the Earth's background magnetic field.

---

### Measuring magnetic fields around large steel structures

Another interesting aspect of this investigation concerns the influence of large quantities of steel surrounding electrical machines.

It is generally understood that ferromagnetic materials can redirect and concentrate magnetic flux, potentially reducing the magnetic field detectable outside a steel structure. However, this does not necessarily mean that the magnetic signature of a motor becomes undetectable. A measurable portion of the field can still extend beyond the surrounding steel, depending on the geometry, material properties, and motor configuration.

Figure 3 and Figure 4, illustrate this point. In this experiment, an unit was installed on a mechanical lathe, approximately one meter from its motor. The motor is usually positioned close to the ground to minimize vibrations, while a substantial gear assembly used to adjust the lathe's rotational speed was located between the motor and the sensor.

Despite these challenging conditions, the magnetometer was still able to detect the relatively weak magnetic signature associated with motor rotation.

This experiment is particularly interesting because it demonstrates that the presence of substantial steel structures does not necessarily prevent the detection of motor-generated magnetic fields, even when the sensor is located at a considerable distance.

---

### Identifying rotational speed through frequency analysis

Finally, Figure 5 presents the normalized [Fast Fourier Transforms (FFTs)](https://blog.endaq.com/the-fourier-transform-whats-wrong-with-it)of the magnetic-field measurements obtained from a large 25 kW electrical motor operating at two different rotational speeds: 600 RPM and 306 RPM. Notice the small variation from the sound 300 RPM that we wanted do to appositely check on FFT accuracy

The frequency spectra clearly reveal the periodic components associated with motor rotation, including their harmonics. The measured frequencies are consistent with the corresponding rotational speeds, demonstrating the potential of the  magnetometer for identifying machine operating conditions with high precision.

These results are particularly encouraging because they were obtained using a compact, commercially available sensor rather than a dedicated magnetic measurement system.

![Figure 5](https://blog.endaq.com/hs-fs/hubfs/undefined-Nov-03-2026-09-45-22-8602-PM.jpeg?width=1920&height=774&name=undefined-Nov-03-2026-09-45-22-8602-PM.jpeg)

**Figure 5:**  FFT of the magnetic field measured by a unit in the vicinity of a large electrical motor (25 kW) at two different speeds: 1) 600 RPM and, 2) 306 RPM.

---

### Conclusion

These experiments demonstrate an interesting and relatively unexplored application for an unwired magnetometer: **contactless rotational speed monitoring of electrical machines.**

The ability to detect motor-generated magnetic fields at different distances, even in the presence of substantial surrounding steel structures, opens opportunities for simplified instrumentation and machine condition monitoring.

Combined with the acceleration and rotational measurements already available through the IMU, magnetometer data could provide an additional source of information for monitoring rotating machinery, potentially supporting applications in predictive maintenance, diagnostics, and operational performance assessment.

Further investigation will help establish the measurement accuracy, operating limits, and applicability across different motor technologies and installation configurations.

---

### Frequently Asked Questions

#### Can a magnetometer measure rotational speed without physical contact?

**Yes.** Because electric motors generate rotating magnetic fields that extend into their surroundings, a three-axis magnetometer can detect these periodic fluctuations from a distance. This enables contactless rotational speed (RPM) monitoring without needing to wire or mechanically couple a sensor directly to the spinning machine shaft.

#### How does a magnetometer work alongside an IMU in a data logger?

In high-end data loggers, the three-axis magnetometer is paired with an Inertial Measurement Unit (IMU). While the IMU tracks acceleration and orientation (quaternions), the magnetometer measures ambient magnetic flux density. Beyond feeding internal orientation algorithms, raw magnetometer data can be exported and analyzed independently to capture the magnetic signatures of operating machinery.

#### Will surrounding steel structures block motor-generated magnetic fields?

Not entirely. While ferromagnetic materials like heavy steel frames and gear assemblies can redirect or concentrate magnetic flux, a measurable portion of the motor's alternating magnetic field still extends past the enclosure. As demonstrated in tests on industrial lathes and drill presses, magnetometers can successfully isolate and detect these weaker signatures even when separated from the motor by structural steel.

#### How is raw magnetometer data converted into RPM values?

To determine precise rotational speeds, the time-domain magnetic field recordings are processed using a **Fast Fourier Transform (FFT)**. The resulting frequency spectrum reveals distinct periodic peaks and harmonics corresponding to the motor's operating frequency, allowing engineers to calculate RPM with high precision.

Currently, enDAQ's sample rate is 30 samples per second, which translates to a maximum of 900 RPM.

#### What are the main advantages of using a magnetometer for predictive maintenance?

Using a magnetometer for condition monitoring offers several distinct benefits:

- **Non-intrusive setup:** Eliminates the need for complex mounting hardware, optical tachometers, or direct shaft access.
- **Multi-parameter correlation:** Combines seamlessly with vibration and shock data from existing IMU sensors to provide a more complete health profile of rotating machinery.
- **Simplified instrumentation:** Allows quick diagnostic spot-checks in hard-to-reach or hazardous industrial environments.

Share This

<https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fblog.endaq.com%2Fmeasuring-rotational-speed-of-electrical-machines-with-a-magnetometer> <https://twitter.com/intent/tweet?url=https%3A%2F%2Fblog.endaq.com%2Fmeasuring-rotational-speed-of-electrical-machines-with-a-magnetometer&text=Measuring+Rotational+Speed+of+Electrical+Machines+with+a+Magnetometer> <https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fblog.endaq.com%2Fmeasuring-rotational-speed-of-electrical-machines-with-a-magnetometer> [mailto:?subject=Measuring+Rotational+Speed+of+Electrical+Machines+with+a+Magnetometer&body=https%3A%2F%2Fblog.endaq.com%2Fmeasuring-rotational-speed-of-electrical-machines-with-a-magnetometer](mailto:?subject=Measuring+Rotational+Speed+of+Electrical+Machines+with+a+Magnetometer&body=https%3A%2F%2Fblog.endaq.com%2Fmeasuring-rotational-speed-of-electrical-machines-with-a-magnetometer)

### [Sauro Liberatore](https://blog.endaq.com/author/sauro-liberatore)

By signing up you are agreeing to our [Privacy Policy](https://endaq.com/pages/privacy-policy)

 

#### Sign Up for Sensing Tips!

▲ TOP

[LEARN](https://endaq.com/pages/learn-sensors-data-acquisition-analysis)

[BUY](https://endaq.com/buy-slam-stick-shock-vibration-sensors)

[ANALYZE](https://endaq.com/pages/data-analysis-software)

[PLATFORM](https://endaq.com/pages/platform-roadmap)

<https://www.linkedin.com/shareArticle?mini=true&url=https://blog.endaq.com/measuring-rotational-speed-of-electrical-machines-with-a-magnetometer&title=Measuring+Rotational+Speed+of+Electrical+Machines+with+a+Magnetometer&summary=Discover+how+EnDAQ%27s+magnetometer+enables+accurate%2C+contactless+measurement+of+rotational+speeds+in+electrical+machines%2C+even+in+challenging+environments.> <https://www.reddit.com/submit?url=https://blog.endaq.com/measuring-rotational-speed-of-electrical-machines-with-a-magnetometer&title=Measuring+Rotational+Speed+of+Electrical+Machines+with+a+Magnetometer&summary=Discover+how+EnDAQ%27s+magnetometer+enables+accurate%2C+contactless+measurement+of+rotational+speeds+in+electrical+machines%2C+even+in+challenging+environments.> <https://twitter.com/intent/tweet?source=https://blog.endaq.com/measuring-rotational-speed-of-electrical-machines-with-a-magnetometer&text=Measuring+Rotational+Speed+of+Electrical+Machines+with+a+Magnetometer%20-%20https://blog.endaq.com/measuring-rotational-speed-of-electrical-machines-with-a-magnetometer> [mailto:?subjetc=&body=Measuring+Rotational+Speed+of+Electrical+Machines+with+a+Magnetometer%20-%20https://blog.endaq.com/measuring-rotational-speed-of-electrical-machines-with-a-magnetometer](mailto:?subjetc=&body=Measuring+Rotational+Speed+of+Electrical+Machines+with+a+Magnetometer%20-%20https://blog.endaq.com/measuring-rotational-speed-of-electrical-machines-with-a-magnetometer)

```json
{
  "@context" : "https://schema.org",
  "@id" : "https://blog.endaq.com/measuring-rotational-speed-of-electrical-machines-with-a-magnetometer#article",
  "@type" : "TechArticle",
  "about" : [ {
    "@id" : "https://blog.endaq.com/measuring-rotational-speed-of-electrical-machines-with-a-magnetometer#magnetometer",
    "@type" : "DefinedTerm",
    "description" : "A sensor that measures the strength and direction of a magnetic field, capable of detecting the Earth's magnetic field (25 to 65 microteslas) as well as variations generated by nearby magnetic materials or electrical devices.",
    "name" : "Magnetometer"
  }, {
    "@type" : "Thing",
    "name" : "Rotational Speed",
    "sameAs" : "https://www.wikidata.org/wiki/Q1068715"
  }, {
    "@type" : "Thing",
    "name" : "Electric Motor",
    "sameAs" : "https://www.wikidata.org/wiki/Q72313"
  }, {
    "@type" : "Thing",
    "name" : "Frequency Analysis",
    "sameAs" : "https://www.wikidata.org/wiki/Q1138176"
  } ],
  "alternativeHeadline" : "Using a Magnetometer to Measure the Rotational Speed of Electrical Machines",
  "articleSection" : "Data Analysis",
  "author" : {
    "@id" : "https://blog.endaq.com/author/sauro-liberatore#person"
  },
  "dateModified" : "2026-11-03",
  "datePublished" : "2026-11-03",
  "description" : "Learn how to measure the rotational speed (RPM) of electrical machines without physical contact using a three-axis magnetometer, IMU data logger, and frequency analysis.",
  "hasPart" : [ {
    "@type" : "WebPageElement",
    "name" : "What is a magnetometer?",
    "text" : "A magnetometer is a sensor that measures the strength and direction of a magnetic field, detecting Earth's magnetic field (25 to 65 µT) and variations from electrical devices."
  }, {
    "@type" : "WebPageElement",
    "name" : "Magnetometer: Beyond orientation measurements",
    "text" : "Three-axis magnetometers inside an IMU provide raw magnetic-field measurements that detect periodic magnetic variations from rotating electrical motors without physical contact."
  }, {
    "@type" : "WebPageElement",
    "name" : "Contactless rotational speed measurement: A drill press example",
    "text" : "Testing a data logger near a drill press and lathe demonstrates reliable detection of motor magnetic signatures across varying distances without physical contact."
  } ],
  "headline" : "Measuring Rotational Speed of Electrical Machines with a Magnetometer",
  "image" : [ {
    "@type" : "ImageObject",
    "caption" : "Data logger unit in the vicinity of a drill press",
    "height" : 774,
    "url" : "https://blog.endaq.com/hs-fs/hubfs/image-png-Nov-03-2026-05-30-14-1102-PM.png",
    "width" : 1920
  }, {
    "@type" : "ImageObject",
    "caption" : "Magnetic field produced by the electrical motor of the drill press recorded while varying distance from the motor",
    "height" : 774,
    "url" : "https://blog.endaq.com/hs-fs/hubfs/image-png-Nov-03-2026-09-38-26-5979-PM.png",
    "width" : 1920
  }, {
    "@type" : "ImageObject",
    "caption" : "Data logger placed in the lathe at distance from the motor",
    "height" : 774,
    "url" : "https://blog.endaq.com/hs-fs/hubfs/image-png-Nov-03-2026-09-41-32-5307-PM.png",
    "width" : 1920
  } ],
  "isPartOf" : {
    "@id" : "https://blog.endaq.com/#blog",
    "@type" : "Blog",
    "name" : "enDAQ Blog",
    "publisher" : {
      "@id" : "https://www.endaq.com/#organization"
    }
  },
  "keywords" : [ "magnetometer", "rotational speed measurement", "contactless RPM measurement", "electrical machines", "three-axis magnetometer", "frequency analysis", "electric motor RPM", "IMU data logger", "magnetic field analysis", "enDAQ" ],
  "mainEntityOfPage" : {
    "@id" : "https://blog.endaq.com/measuring-rotational-speed-of-electrical-machines-with-a-magnetometer",
    "@type" : "WebPage"
  },
  "mentions" : [ {
    "@type" : "Thing",
    "name" : "Inertial Measurement Unit (IMU)",
    "sameAs" : "https://www.wikidata.org/wiki/Q1141328"
  }, {
    "@type" : "Thing",
    "name" : "Data Logger",
    "sameAs" : "https://www.wikidata.org/wiki/Q1172399"
  }, {
    "@type" : "Thing",
    "name" : "Drill Press",
    "sameAs" : "https://www.wikidata.org/wiki/Q58964"
  }, {
    "@type" : "Thing",
    "name" : "Lathe",
    "sameAs" : "https://www.wikidata.org/wiki/Q191294"
  } ],
  "proficiencyLevel" : "Intermediate",
  "publisher" : {
    "@id" : "https://www.endaq.com/#organization"
  }
}
```

```json
{
  "@context" : "https://schema.org",
  "@id" : "https://blog.endaq.com/author/sauro-liberatore#person",
  "@type" : "Person",
  "name" : "Sauro Liberatore",
  "url" : "https://blog.endaq.com/author/sauro-liberatore",
  "worksFor" : {
    "@id" : "https://www.endaq.com/#organization"
  }
}
```

```json
{
  "@context" : "https://schema.org",
  "@id" : "https://www.endaq.com/#organization",
  "@type" : "Organization",
  "logo" : {
    "@type" : "ImageObject",
    "url" : "https://blog.endaq.com/hubfs/endaq-blog-logo.svg"
  },
  "name" : "enDAQ",
  "parentOrganization" : {
    "@type" : "Organization",
    "name" : "Midé Technology"
  },
  "url" : "https://www.endaq.com/"
}
```

```json
{
  "@context" : "https://schema.org",
  "@id" : "https://blog.endaq.com/measuring-rotational-speed-of-electrical-machines-with-a-magnetometer#breadcrumb",
  "@type" : "BreadcrumbList",
  "itemListElement" : [ {
    "@type" : "ListItem",
    "item" : "https://www.endaq.com/",
    "name" : "Home",
    "position" : 1
  }, {
    "@type" : "ListItem",
    "item" : "https://blog.endaq.com/",
    "name" : "Blog",
    "position" : 2
  }, {
    "@type" : "ListItem",
    "item" : "https://blog.endaq.com/tag/data-analysis",
    "name" : "Data Analysis",
    "position" : 3
  }, {
    "@type" : "ListItem",
    "item" : "https://blog.endaq.com/measuring-rotational-speed-of-electrical-machines-with-a-magnetometer",
    "name" : "Measuring Rotational Speed of Electrical Machines with a Magnetometer",
    "position" : 4
  } ]
}
```

```json
{
  "@context" : "https://schema.org",
  "@id" : "https://blog.endaq.com/measuring-rotational-speed-of-electrical-machines-with-a-magnetometer#faq",
  "@type" : "FAQPage",
  "mainEntity" : [ {
    "@type" : "Question",
    "acceptedAnswer" : {
      "@type" : "Answer",
      "text" : "REPLACE_WITH_EXACT_FAQ_ANSWER_1"
    },
    "name" : "REPLACE_WITH_EXACT_FAQ_QUESTION_1"
  }, {
    "@type" : "Question",
    "acceptedAnswer" : {
      "@type" : "Answer",
      "text" : "REPLACE_WITH_EXACT_FAQ_ANSWER_2"
    },
    "name" : "REPLACE_WITH_EXACT_FAQ_QUESTION_2"
  } ]
}
```