Projects / Predictive maintenance
Case study · Vibration · Modal analysis · Edge AI

Vibration, Modal Analysis & Predictive Maintenance

A real-time diagnostic system designed, built and fielded on a V8 engine, a 12-axis modal test breadboard, and a monitoring design for a jet-engine test stand. Together they show that low-cost, off-the-shelf hardware and careful signal processing can approach instrumentation that costs tens of thousands of dollars.

The problem

A custom high-output engine can fail catastrophically with little warning. Commercial vibration and dynamic-signal-analysis systems that could catch early signs cost tens of thousands of dollars, out of reach for most test stands and small fleets.

What I built

The whole system end to end: sensor suite, signal conditioning, Arduino firmware, two Android apps, a neural network running on the microcontroller, and an analytics pipeline that normalizes spectra for RPM.

The result

A fielded system that logs synchronized multi-channel data every second and shows live horsepower, torque and temperatures on a phone. It builds the baseline needed to spot developing faults before they become failures.

~$90total sensor & processing hardware
9channels: 4 accelerometers, 3 temperatures, tach, pressure
4,096samples/s per channel
6M+data sets of storage (~6 months)
5,823dyno points used to train the neural network
Hardware & data

Built, installed and running

Accelerometer and temperature sensors installed on a V8 cylinder head and block
Heat-sinked accelerometer and temperature sensors on the cylinder heads, built to survive 212–392°F.
Arduino Mega data acquisition board with wiring in a clear enclosure
Arduino Mega data-acquisition unit: multi-channel A/D, SD logging and a Bluetooth link.
FFT chart of crankshaft, camshaft and cylinder head accelerometers at 750 RPM
Field data: FFTs from the crankshaft, camshaft and both cylinder-head accelerometers at 750 RPM idle.
Chart of neural network predicted horsepower and torque versus RPM
Horsepower and torque curves predicted by the neural network from engine geometry and RPM.
Key innovations

What makes it work

RPM-normalized spectral trending

Engine speed changes constantly, so every vibration line keeps shifting in frequency. I adapted classical bearing-defect frequency analysis to a multi-cylinder four-stroke engine, so each spectral line maps back to its mechanical source at any RPM. That makes true trend analysis against a baseline possible.

Edge-deployed neural network

Trained on 5,823 torque points from 204 competition engines, then run directly on an 8-bit microcontroller with hand-coded matrix math and activation functions that fit its timing budget.

Physics cross-check on the AI

The training data came from competition engines, so it was biased toward them. I added an independent measurement of intake pressure and airflow to bound and validate the network's estimate rather than trusting it blindly.

Video

The whole project, start to finish

A 57-minute walk through a complete product development: hardware, software, Bluetooth, the Android apps, data collection and analysis. Watch the parts that interest you.

Diagnostic system for complex mechanical devices, demonstrated on a V8 engine.
Signal processing

Making vibration comparable at any RPM

Every repeatable vibration source in rotating machinery is tied to the rotation rate, but engine speed never holds still, so each spectral line keeps moving. A raw overlay of hundreds of spectra is unreadable. Normalizing to shaft rotation lines each mechanical source up in one place.

Overlay of 224 crankshaft FFTs at various RPMs with spectral lines smeared across frequency
Before: 224 crankshaft spectra, 1/8 second each, at varying RPM. The same mechanical source appears at many frequencies.
The same crankshaft spectra normalized to rotation, with lines aligned at rotation harmonics
After: the same data normalized to rotation and intermediate frequencies. Harmonics line up, so a running baseline can reveal out-of-population behavior.
How it extends bearing-defect analysis
  • Classical bearing-defect frequencies (ball spin, inner race, outer race, cage) are each a simple multiple of RPM/60, so dividing by rotation rate puts each one on a fixed FFT line
  • A V8 is far harder: a four-stroke cycle, eight cylinders, a camshaft at half speed and valve events create dozens of interacting components, each with its own relationship to rotation
  • Amplitude still varies with RPM because of the structure's modal response, so the analysis trends against a running baseline of data sets rather than a fixed limit
  • An 8 Hz line width (0.125 s per data set) keeps a data set effectively at one speed, even at the 600 RPM/s of a dyno pull
Modal analysis

A 12-axis modal test system on one microcontroller

A working breadboard that goes from raw acceleration to mode shapes that can be compared with a finite-element model. SD logging, Bluetooth status to a phone, Ethernet offload and the Excel analysis all work.

Acquire4 accelerometers × 3 axes, 256 samples/s per channel
→
ConditionAbout 128 Hz anti-alias filter, gain and offset to mid-scale
→
Transform1-second FFT slices, 1 Hz lines
→
IntegrateDominant lines to displacement: x = −A/ω² sin ωt
→
ReconstructMode shapes and animation
→
CompareMeasured vs. FE model, then find the root cause
Breadboard with an Arduino Mega, four accelerometers, filters, SD card, Bluetooth and Ethernet modules
Breadboard: four accelerometers, filters, Arduino Mega, SD, Bluetooth and Ethernet.
Frequency spectrum from a hand-shake test with clear peaks near 8, 15 and 23 Hz
Hand-shake test: a clean fundamental near 8 Hz with harmonics.
Reconstructed mode-shape animation: a 3D stick-figure animation generated by my Python analysis script, the "Reconstruct" step above. This is how measured motion at each sensor point becomes a visible mode shape.
An original synchronization method
  • Storage time leaves gaps between data bursts, so successive snapshots aren't time-coherent and can't simply be joined
  • The fix: use the accelerometer at the most flexible node as a trigger, watch for the repeating peak, then delay a known number of microseconds before each acquisition
  • Each snapshot extends the previous one in time, giving a stitched "waterfall" that reconstructs the mode shape. The same trigger can time camera frames so images line up with the vibration
Signal-chain design
  • More on this in Analog Front Ends & Signal Conditioning
  • A 256-sample FFT with a 128 Hz maximum frequency requires a hardware filter, because a roughly 2 kHz accelerometer bandwidth would otherwise fold back into the band
  • Simulated ADC counts versus g level set the gain: without amplification, low-g modes occupy only a few counts
  • Design rule from testing: remove gravity bias, amplify about mid-scale, then low-pass again, with care for shielding and grounding
Mobile

Two custom Android apps

One app sends engine build parameters (bore, stroke, compression, valve geometry) to the microcontroller. The other shows a live dashboard over Bluetooth: RPM, temperatures, and horsepower and torque estimated three independent ways.

The firmware handles real-time A/D acquisition, SD file management with a new file on every engine start, and a full Bluetooth handshake protocol.

Android phone app showing live engine temperatures, torque, horsepower and RPM
Live readout during engine operation.
Related design

Jet-engine test-stand structural health monitoring

A design proposed to a university engineering club for a model jet-engine test stand: catching bearing wear, impeller damage and weld fatigue cracks early. The club chose not to go ahead, but the design is complete.

Technical design
  • Scalable multi-sensor data acquisition: analog multiplexing into shared A/D channels, with a multi-Arduino network (SPI / I²C / serial) feeding a master node, and timing and latency trade studies
  • K-type thermocouples (rated to 1,250°C), 3-axis accelerometers and foil strain gauges, with signal conditioning sized to each sensor's dynamic range and the target FFT bandwidth
  • Original triggered-snapshot synchronization to rebuild time-coherent mode shapes from bursts of data that weren't otherwise synchronized, shown as a stitched "waterfall"
  • Measured mode shapes compared against the finite-element modal model to find root causes and improve model accuracy
  • Roadmap for physics-informed and graph neural networks to predict how stand design changes would affect structural dynamics
Program leadership
  • Structured the work as a role-play systems-engineering program, with students as program manager, systems engineer and business development across a matrixed, multi-discipline team
  • Cost-versus-capability analysis against commercial NI LabVIEW and Crystal Instruments systems; scoped a possible extension with a university aerospace incubator
Product concept

Low-cost modal test with AI-enhanced finite elements

A product I proposed that wasn't taken up, but the technical and business case are complete.

The gap

Finite-element analysis is expensive, and tools rarely close the loop: compare the model to measured data, then derive what the model must change to match.

The entry point

Position against NI LabVIEW and Crystal Instruments on flexibility versus cost, and even offer an add-on package that runs on their hardware, to win those customers too.

The differentiator

Measured response feeding graph neural networks on FE meshes and physics-informed models with differential equations as network layers, to predict design changes before they're built.

Method

Measure, model, redesign, verify

The same measurements can drive a design loop. Measure the real structure, make the model match it, let AI search for the change that gives the desired response, then build it and test again.

MeasureModal response of the real structure
→
CorrelateAdjust the FE model to match
→
EmulateFast AI surrogate of the FE model
→
OptimizeSearch for the design change
→
Build + testMeasure the modified design
→
IterateUntil the response is achieved
The AI techniques involved
  • Graph neural networks on FE meshes, as surrogates that respond far faster than a full solve
  • Physics-informed models, with differential equations built into the network
  • Bayesian optimization to choose the most informative design or test to try next
Simulation, for illustration: what the redesign loop produces. A 3D finite-element model of a 30 m steel truss footbridge, first mode shape before and after a design change (added top lateral bracing and heavier floor bracing). The change moves the first natural frequency from 2.6 Hz, inside an illustrative 2.2–3.0 Hz excitation band, to 3.5 Hz, outside it. Colour shows relative displacement (blue = still, red = largest). Modeled in Python by SEAPS; not a measured structure.
Why it matters

When a structure's modes meet its loads: the Tacoma Narrows Bridge, 1940

Four months after it opened, wind drove the Tacoma Narrows Bridge into a twisting oscillation that tore it apart. Engineering has learned a great deal since, but the lesson stands: know a structure's real modes, compare them with the model and with the loads it will see, and change the design before it's built. Measuring, correlating and redesigning is exactly the loop above.

Tacoma Narrows Bridge deck twisting in the wind, viewed from the east tower, 7 November 1940
Torsional motion, 7 November 1940: frame from 16 mm film by Prof. F. B. Farquharson, University of Washington, viewed from the east tower. Public domain; Library of Congress, HAER WASH,27-TACO,11-35, via Wikimedia Commons.
The center span of the Tacoma Narrows Bridge collapsing into the water, 7 November 1940
Collapse, 7 November 1940: still from film by Barney Elliott. Public domain (Prelinger Archives), via Wikimedia Commons.

Status: the measurement and analysis stages are built. The AI-directed redesign loop is a method and roadmap, not yet run on hardware.

Applying it to your operation

Monitoring at a small fraction of the cost

  • Test-stand instrumentation for engines, pumps, motors and gearboxes
  • Condition monitoring for small fleets or remote equipment
  • Structural health monitoring of fixtures and welded structures
  • Prototype data acquisition before you commit to commercial systems
Technology

Stack

Arduino / CMEMS accelerometersTMP3624-bit pressure sensorBluetoothAndroid StudioExcel / VBA FFT pipelineEmbedded neural network

Want to catch failures before they happen?

I design instrumentation and analytics that fit your budget.

Start a conversation

← Back to all projects