RMS of a sampled signal
Here
A motor bearing can lose its lubricant, begin to pit, and fail in a few weeks while the monthly vibration reading stays “in the green”. Or a sound machine is stopped and opened because one number crossed a line in a table never meant for that machine. Both mistakes come from trusting an overall level without knowing how it is made. This lesson shows how the overall RMS velocity is calculated, what the severity zones mean and where they stop, and what the time waveform shows that the number hides. #VibrationAnalysis #ConditionMonitoring #CrestFactor
By the end of this lesson, you will be able to:
A 22 kW motor drives an air compressor at 1465 rev/min. Once a month a technician holds a meter on the drive-end bearing housing and writes one number in a book: the overall velocity in mm/s RMS. For a year it stays near 0.9 mm/s, and the book says the machine is healthy.
The number is useful, and it is a severe summary. The meter reduced thousands of samples each second to one value, dominated by the largest component: on this motor, the vibration at running speed. A bearing defect makes short, sharp impacts that carry very little energy at first, so they hardly move the overall velocity. By the time it rises, the bearing is often near the end of its life.
So the technician needs the overall number, a second number that reacts to impacts, and the habit of looking at the waveform. All three come from the same samples.
The time waveform is the signal as the sensor gives it: a value at each sampling instant, plotted against time, with nothing removed or averaged. The overall level and the spectrum are both calculated from it.
Three amplitudes describe a waveform: the peak, the largest distance from zero; the peak-to-peak value, from the lowest point to the highest; and the RMS (root mean square) value, found by squaring every sample, taking the mean, and taking the square root.
RMS of a sampled signal
Here
The RMS value follows the energy of the motion, which goes with the square of velocity, and it does not depend on one unlucky sample, so it repeats well between readings. That is why it is used for the overall level.
The overall level is the RMS value of the whole signal inside a stated frequency band. For velocity on general machines the band commonly used is 10 Hz to 1000 Hz. The band is part of the measurement: a meter that starts at 2 Hz and a meter that starts at 10 Hz give different numbers on a slow fan, and neither is wrong.
A machine signal is a sum of parts: a component at running speed (1×), one at twice running speed (2×), others, and noise. The overall RMS is not the sum of their RMS values. They add like the sides of a right triangle: walk 0.85 km east and 0.21 km north, and you are 0.88 km from the start, not 1.06. To see why, square the sum of two parts and take the mean:
The bar means the mean over the record. For two sines at different frequencies, the product in the last term is positive half of the time and negative the other half, so its mean over a long record is zero. Only the first two terms remain.
Root sum of squares
Each
Noise adds in the same way: it has no fixed relation to the sines, so the mean of its product with any of them is also zero over a long record.
The rule has two limits. Two sines at the same frequency add by amplitude and phase, and can even cancel. And the record must be long: two components very close in frequency give beats, treated below.
Standards for machine vibration sort the overall velocity measured on a bearing housing into four zones. ISO 20816-1:2016 gives the general method, and ISO 20816-3:2022 covers industrial machines above 15 kW; they replaced ISO 10816-1 and ISO 10816-3:2009. Some parts of the older series are still in force, so check which part covers your machine.
On site this becomes a decision. In zone C, measure more often and plan the correction for the next planned stop. In zone D, tell the person who can decide to stop the machine, the same day.
The boundaries are not one set of numbers. In ISO 20816-3 they depend on the machine group (by power or shaft height), and on whether the foundation is rigid or flexible. “Rigid” has a test: the lowest natural frequency of the machine on its support, in the direction measured, is at least 25 percent above the running frequency. As an example only, the boundaries commonly quoted for group 2 machines (15 to 300 kW) on rigid foundations, from ISO 10816-3:2009, are about 1.4, 2.8 and 4.5 mm/s RMS velocity. The same group on a flexible foundation, and larger machines, have higher boundaries. Check the standard for your machine class: the standard decides, and so does any limit given by the maker of the machine.
A table is written for a whole class of machines and cannot know yours. A zone says whether a level is unusual for the class: the right first question when there is no history.
With a history, the better question is whether the level has changed. A reading of 0.9 mm/s for a year that is now 1.3 mm/s is still in zone A of the example, but it has risen 44 percent: something in the machine is different. A baseline is the level of this machine, at this point, at a known speed and load, when it was known to be in good condition. Change against the baseline finds faults earlier than any table.
The crest factor compares the highest point of the waveform with its RMS value.
Crest factor
For a pure sine,
An impact from a small bearing defect is tall and very short. The peak sees its full height; the RMS, a mean over the whole record, hardly notices it. So the crest factor rises while the RMS is almost unchanged, like one loud clap in a quiet hour, which sets the loudest moment but hardly changes the average sound. It is usually calculated on acceleration, where impacts are strongest.
As commonly observed, the crest factor falls again in late damage: the defect spreads round the race, the impacts overlap, the level between them rises, and the peaks no longer stand clear. A falling crest factor with a rising RMS is not good news.
A spectrum sorts the signal by frequency and takes the mean over the whole record, so anything that depends on when it happens is spread out or lost. Three cases:
Impacts. A sharp spike repeating at a steady interval is plain in the waveform. In an ordinary spectrum its energy is spread thinly over a wide range of high frequencies and can be missed.
Clipping. When the vibration is larger than the sensor or the instrument input can carry, the tops of the waveform are cut flat. The script cuts a 50 Hz sine of peak 1.0 at 0.6: its RMS falls from 0.707 to 0.514, so the overall level reads 27 percent low just when the machine is at its worst. The cut also creates lines that do not exist in the machine, 0.130 at 150 Hz and 0.020 at 350 Hz, beside a 50 Hz line that now reads 0.715. In a spectrum these false harmonics look like a mechanical fault. In the waveform the flat tops show at once, and a crest factor of 1.17, below the 1.414 of a sine, is a second sign.
Beats. Two components close in frequency move slowly in and out of step: in step they add, opposed they subtract, so the amplitude swells and fades. The beat frequency is the difference between the two frequencies.
For 49.0 Hz and 50.0 Hz,
RMS of each sine. Divide each peak amplitude by
The noise is already given as an RMS value, 0.05 mm/s. ✅
Add the squares.
The overall level from the parts is 0.876 mm/s RMS. ✅
See what dominates. Of the total of 0.7675, the 1× component gives 0.720, which is 94 percent. The 2× component gives 6 percent and the noise 0.3 percent. ✅
The wrong method. Adding the RMS values directly gives
Number of samples.
Square, mean, root. The script squares all 20,480 samples, takes the mean and takes the square root.
The samples give 0.8754 mm/s and the parts give 0.8761 mm/s. They agree within 0.1 percent. ✅
Why they are not identical. In a record of 4 s, with 97.68 cycles of 1× and one particular set of noise samples, the cross products average to a very small number, not exactly to zero. ✅
Inside the band. The script also adds the power of the spectrum lines from 10 Hz to 1000 Hz only. The result is 0.874 mm/s, slightly lower because the noise above 1000 Hz is left out. Both sines are inside the band. ✅
Zone of the first reading. 0.875 mm/s is below 1.4 mm/s, so on the example boundaries it is in zone A. ✅
Solve for the new 1× amplitude. Let
The 1× component must grow to 4.94 mm/s peak, which is 4.12 times its first value. ✅
Zone of the new reading. 3.5 mm/s lies between 2.8 and 4.5 mm/s, so on the example boundaries it is in zone C. ✅
Check with the generator. The script generates the signal again with a 1× peak of 4.94 mm/s and finds 3.498 mm/s RMS from the samples, in zone C. The hand value and the samples agree. ✅
Pure sine.
The crest factor of a sine does not depend on its amplitude. ✅
Machine signal. The script finds a peak of 1.597 mm/s and an RMS of 0.8754 mm/s.
The crest factor is 1.82. It is above 1.414 because the peaks of 1× and 2× sometimes fall close together and the noise adds its largest samples on top. ✅
No impacts. Only the running speed component and the noise remain.
The script finds 0.3203 m/s², a peak of 0.954 m/s² and a crest factor of 2.98. ✅
Default impacts. The script finds a peak of 1.793 m/s² and an RMS of 0.3506 m/s².
The crest factor is 5.11. ✅
Compare the two numbers. From no impacts to default impacts, the RMS rises from 0.320 to 0.351 m/s², which is 9.5 percent. The crest factor rises from 2.98 to 5.11, which is 71 percent. ✅
Half-size impacts. With impacts of
Mean square of one burst. A burst
The burst oscillates many times while it decays, so the approximation is good. ✅
Bursts per second. There are 74.2 bursts each second, so they add a mean square of
This is the share of the impacts. ✅
Total by root sum of squares.
This matches the 0.3506 m/s² from the samples. For half-size impacts the share is one quarter, 0.0052, and the total is
Late damage in the model. With the noise raised four times, to
The script uses the two course generators without change. It reproduces both applications, clips a sine, and forms beats from two close frequencies. The plot shows the four waveforms.
"""Overall velocity RMS, severity zone on example boundaries, crest factor,and three things the time waveform shows: impacts, clipping and beats."""import numpy as npimport matplotlib.pyplot as plt
def machine_signal(fs=5120, seconds=4.0, fr=24.42, amp_1x=1.2, amp_2x=0.3, others=(), noise=0.05, seed=5): """Vibration velocity in mm/s. amp_* are PEAK amplitudes in mm/s. others: sequence of (frequency_hz, peak_amplitude_mm_s, phase_rad).""" rng = np.random.default_rng(seed) n = int(fs * seconds); t = np.arange(n) / fs v = amp_1x * np.sin(2 * np.pi * fr * t) + amp_2x * np.sin(2 * np.pi * 2 * fr * t + 0.7) for f, a, ph in others: v = v + a * np.sin(2 * np.pi * f * t + ph) return t, v + rng.normal(0.0, noise, n)
def bearing_signal(fs=25600, seconds=2.0, fault_hz=74.2, resonance_hz=3200.0, decay=900.0, impact=1.0, noise=0.15, fr=24.42, seed=9): """Acceleration in m/s². A decaying resonance burst at each fault impact.""" rng = np.random.default_rng(seed) n = int(fs * seconds); t = np.arange(n) / fs; a = np.zeros(n) period = 1.0 / fault_hz k = 0 while k * period < seconds: t0 = k * period + period * rng.normal(0.0, 0.01) # small random slip of each impact i0 = int(t0 * fs) if i0 < n: tt = t[i0:] - t[i0] a[i0:] += impact * np.exp(-decay * tt) * np.sin(2 * np.pi * resonance_hz * tt) k += 1 a += 0.4 * np.sin(2 * np.pi * fr * t) # running speed component return t, a + rng.normal(0.0, noise, n)
def rms(x): return np.sqrt(np.mean(x ** 2))
def crest(x): return np.max(np.abs(x)) / rms(x)
def band_rms(x, fs, f_low, f_high): """RMS of the part of x between f_low and f_high, from the sum of line powers.""" n = len(x) f = np.fft.rfftfreq(n, 1.0 / fs) line_rms_sq = 2.0 * np.abs(np.fft.rfft(x)) ** 2 / n ** 2 # RMS squared of each line keep = (f >= f_low) & (f <= f_high) return np.sqrt(np.sum(line_rms_sq[keep]))
# Example boundaries only (commonly quoted for medium machines on rigid# foundations). The standard for your machine class decides.BOUNDS = (1.4, 2.8, 4.5) # mm/s RMS
def zone(v_rms): return "ABCD"[int(np.searchsorted(BOUNDS, v_rms))]
# ---------- Application 1: overall velocity RMS of machine A ----------FS = 5120t, v = machine_signal()parts = np.sqrt((1.2 ** 2 + 0.3 ** 2) / 2 + 0.05 ** 2)print("Application 1: overall velocity of machine A")print(f" RMS from the {len(v)} samples: {rms(v):.4f} mm/s")print(f" RMS from the parts: {parts:.4f} mm/s")print(f" parts: 1x {1.2 / np.sqrt(2):.4f}, 2x {0.3 / np.sqrt(2):.4f}, noise 0.0500 mm/s RMS")print(f" plain sum of the parts (wrong): {1.2 / np.sqrt(2) + 0.3 / np.sqrt(2) + 0.05:.4f} mm/s")print(f" RMS in the band 10 to 1000 Hz: {band_rms(v, FS, 10, 1000):.4f} mm/s")print(f" zone on the example boundaries: {zone(rms(v))}")
target = 3.5amp_new = np.sqrt(2 * (target ** 2 - 0.3 ** 2 / 2 - 0.05 ** 2))_, v2 = machine_signal(amp_1x=amp_new)print(f" 1x peak that gives {target} mm/s RMS: {amp_new:.3f} mm/s " f"({amp_new / 1.2:.2f} times the first value)")print(f" RMS of that signal from samples: {rms(v2):.4f} mm/s, zone {zone(rms(v2))}")
# ---------- Application 2: crest factor ----------print("Application 2: crest factor = peak / RMS")tt = np.arange(FS * 4) / FSsine = 1.2 * np.sin(2 * np.pi * 25.0 * tt)print(f" pure sine: peak {np.max(np.abs(sine)):.3f}, RMS {rms(sine):.4f}, " f"crest {crest(sine):.3f}")print(f" machine_signal(): peak {np.max(np.abs(v)):.3f}, RMS {rms(v):.4f}, " f"crest {crest(v):.2f}")cases = (("no impacts", 0.0, 0.15), ("small impacts", 0.5, 0.15), ("bearing_signal()", 1.0, 0.15), ("late: noise x4", 1.0, 0.60))results = {}for name, impact, noise in cases: tb, a = bearing_signal(impact=impact, noise=noise) results[name] = (tb, a) print(f" {name:<17} peak {np.max(np.abs(a)):.3f}, RMS {rms(a):.4f} m/s2, " f"crest {crest(a):.2f}")
# ---------- Clipping: a sine cut off at 60 percent of its peak ----------clip_in = 1.0 * np.sin(2 * np.pi * 50.0 * tt) # 200 whole cycles in 4 sclip_out = np.clip(clip_in, -0.6, 0.6)amp = 2.0 * np.abs(np.fft.rfft(clip_out)) / len(clip_out)f_axis = np.fft.rfftfreq(len(clip_out), 1.0 / FS)print("Clipping: 50 Hz sine of peak 1.0 cut off at 0.6")print(f" RMS before {rms(clip_in):.4f}, after {rms(clip_out):.4f}, " f"crest after {crest(clip_out):.3f}")for h in (1, 3, 5, 7): print(f" line at {50 * h:>3} Hz: {amp[np.argmin(np.abs(f_axis - 50.0 * h))]:.4f}")
# ---------- Beats: two close frequencies ----------f1, f2, a1, a2 = 49.0, 50.0, 1.0, 0.8beat = a1 * np.sin(2 * np.pi * f1 * tt) + a2 * np.sin(2 * np.pi * f2 * tt)short = [rms(beat[i:i + FS // 10]) for i in range(0, len(beat) - FS // 10 + 1, FS // 10)]print("Beats: 49.0 Hz (1.0 mm/s peak) with 50.0 Hz (0.8 mm/s peak)")print(f" beat frequency {abs(f2 - f1):.1f} Hz, beat period {1 / abs(f2 - f1):.2f} s")print(f" envelope from {a1 - a2:.1f} to {a1 + a2:.1f} mm/s peak")print(f" RMS over 4 s {rms(beat):.4f}; RMS over 0.1 s pieces from " f"{min(short):.3f} to {max(short):.3f} mm/s")
# ---------- Plot ----------fig, ax = plt.subplots(4, 1, figsize=(8, 10))ax[0].plot(t[:1024], v[:1024])ax[0].set_title("Machine A velocity (smooth)"); ax[0].set_ylabel("mm/s")tb, a = results["bearing_signal()"]ax[1].plot(tb[:5120], a[:5120], linewidth=0.6)ax[1].set_title("Bearing acceleration (impacts)"); ax[1].set_ylabel("m/s²")ax[2].plot(tt[:410], clip_in[:410], "--", tt[:410], clip_out[:410])ax[2].set_title("Clipped sine"); ax[2].set_ylabel("output")ax[3].plot(tt[:2 * FS], beat[:2 * FS], linewidth=0.6)ax[3].set_title("Beats"); ax[3].set_ylabel("mm/s"); ax[3].set_xlabel("time (s)")fig.tight_layout()fig.savefig("overall_levels_and_crest_factor.png", dpi=120)print("Saved overall_levels_and_crest_factor.png")Expected output
Application 1: overall velocity of machine A RMS from the 20480 samples: 0.8754 mm/s RMS from the parts: 0.8761 mm/s parts: 1x 0.8485, 2x 0.2121, noise 0.0500 mm/s RMS plain sum of the parts (wrong): 1.1107 mm/s RMS in the band 10 to 1000 Hz: 0.8740 mm/s zone on the example boundaries: A 1x peak that gives 3.5 mm/s RMS: 4.940 mm/s (4.12 times the first value) RMS of that signal from samples: 3.4983 mm/s, zone CApplication 2: crest factor = peak / RMS pure sine: peak 1.200, RMS 0.8485, crest 1.414 machine_signal(): peak 1.597, RMS 0.8754, crest 1.82 no impacts peak 0.954, RMS 0.3203 m/s2, crest 2.98 small impacts peak 1.327, RMS 0.3281 m/s2, crest 4.04 bearing_signal() peak 1.793, RMS 0.3506 m/s2, crest 5.11 late: noise x4 peak 3.178, RMS 0.6791 m/s2, crest 4.68Clipping: 50 Hz sine of peak 1.0 cut off at 0.6 RMS before 0.7071, after 0.5144, crest after 1.167 line at 50 Hz: 0.7152 line at 150 Hz: 0.1304 line at 250 Hz: 0.0031 line at 350 Hz: 0.0203Beats: 49.0 Hz (1.0 mm/s peak) with 50.0 Hz (0.8 mm/s peak) beat frequency 1.0 Hz, beat period 1.00 s envelope from 0.2 to 1.8 mm/s peak RMS over 4 s 0.9055; RMS over 0.1 s pieces from 0.267 to 1.259 mm/sSaved overall_levels_and_crest_factor.png1. A pump signal has components of 3.0 mm/s peak at 1×, 1.5 mm/s peak at 2× and 1.0 mm/s peak at vane pass frequency, with noise of 0.2 mm/s RMS. Find the overall RMS velocity and its zone on the example boundaries of 1.4, 2.8 and 4.5 mm/s RMS.
2. On a bearing housing the acceleration has a peak of 4.2 m/s² and an RMS of 0.60 m/s². One month later, with a record of the same length, the peak is 6.0 m/s² and the RMS is 0.62 m/s². Find both crest factors and the change in RMS, and say what the change is consistent with.
3. Two condenser fans stand on one frame. One turns at 580 rev/min and the other at 574 rev/min. At a point on the frame each gives a velocity at its own running speed, of 2.0 and 1.5 mm/s peak. Find the beat frequency, the beat period, the largest and smallest peak amplitude of the envelope, and the RMS over a long record.
The frequencies are
4. A motor has a 2× component of 0.4 mm/s peak and noise of 0.1 mm/s RMS, and neither changes. Its baseline overall level is 1.1 mm/s RMS. Find the 1× peak amplitude at the baseline, and the 1× peak amplitude at which the overall level reaches 2.8 mm/s RMS. By what factor has 1× grown?
From
A motor bearing starts to pit. A short, sharp impact now happens 74 times each second. What happens to the overall RMS acceleration on the bearing housing?
The model of the lesson's bearing: a running speed part of 0.4 m/s² peak, noise, and an impact 74.2 times each second that rings a resonance at 3200 Hz and dies away in a few milliseconds. In the first half of the slider the impacts grow from nothing to 1.0 m/s². In the second half they stay, and the level between them rises four times, as when the defect spreads round the race. The upper drawing shows 60 ms of the 2 s record; the RMS and the peak are of the whole record. In the lower drawing each line is divided by its value with no fault, so the two can be compared.
Three questions. Each wrong choice is a mistake people really make, so read the note after you answer.
1. A fan's spectrum shows 2.0 mm/s RMS at 1× and 1.5 mm/s RMS at 2×. Everything else is very small. What overall velocity does the meter show for the band?
2. On a bearing housing the acceleration was 0.50 m/s² RMS with a peak of 1.6 m/s². Six months later, with records of the same length, it is 1.0 m/s² RMS with a peak of 2.4 m/s². The crest factor has fallen. What does that suggest?
3. Two fans on one frame turn at 1480 and 1490 rev/min. The overall reading on the frame swells and fades. What is the beat period, and so how long must a reading last?
No comments yet. Questions, results from your own build, a better way to explain it: all welcome.
Kept on this device only. Nothing is sent anywhere.
Tip: select words in the lesson, or tap a figure or an equation, to put a note right there.
The lesson has changed and these words are no longer in it. Your notes are kept, with the words you chose.