Showcase: Vibration Turns Your iPhone into a Spectrum Analyzer
In 'Showcase' reviews, the reviewer is the developer. No claim of objectivity is made, but it’s a chance for the developer to show off his/her app. Here, Bruce Truax discusses his spectral analysis tool for iPhone: Vibration.
Vibration is a true vibration spectrum analyzer using the built in accelerometers inside the iPod Touch and iPhone. It acquires and displays time series data, optionally removes DC bias, applies a Hamming window and performs an FFT on each channel to produce frequency spectra. The accelerometer has a sensitivity of approximately 0.02g and a range of ±2g making the iPhone and iPod touch sensitive enough to analyze the vibration of most moving machinery.
The software is very flexible and easy to use. It was written to simulate the familiar oscilloscope based spectrum analyzer. Sample rate and sample delay are easily adjustable using sliders and the user can select the length of the data acquisition and the vertical scale used for the display. Once the settings are configured to your preference, press the sample button and the data is acquired.

Time Series Settings
The time series display also reports the rms amplitude of each of the individual traces as well as the rms magnitude of all three axes combined.

Time Series Display
To see the frequency data simply touch the frequency tab at the bottom of the screen.

Frequency Log-Log Display

Frequency Log-Linear Display
The frequency data can be viewed in linear-linear, log-linear, linear-log and log-log format. You can turn and off the display of each axis individually. You also have the option of applying a Hamming window. All of these options can be modified after data acquisition making it simple to view the data in a variety of different ways.

Frequency Display Settings
All of the settings are persistent so the configuration remains consistent between runs and when you quit and restart the program.
There are two options for documentation. If a screen capture of the amplitude and frequency screens is sufficient just press the camera icon and both images are saved to the iPhoto library and will be sync'd with your computer the next time you connect. For access to the actual time and frequency data, press the send button and Vibration will create an email with the amplitude and frequency data embedded in the body of the email in CSV format.
Features
- Adjustable sample rate from 10Hz to 100Hz
- Selectable data length from 128 to 1024 samples
- Variable start delay from 0 to 20 seconds
- Adjustable vertical scale for both time series and frequency data
- DC Remove option to get rid of that annoying gravity vector
- Switchable Hamming window for frequency analysis
- Frequency data plotted as Linear-Linear, Log-Log, Log-Linear and Linear-Log
- Computes rms vibration for each channel and for all three channels combined
- Document your results by taking screen snapshots and syncing them to your computer or by sending an email of CSV formatted amplitude and frequency data.
Limitations of the iPhone and iPod Touch
Of course the iPhone and iPod were not designed as spectrum analyzers and there are limitations in the hardware which affect the performance.
Feature Requests
I am very amenable to requests for additional features. The iPhone SDK is quite powerful and it is relatively easy to add new features. If you have suggestions for improvements to Vibration send me an email at btruax (at) dld-llc.com. Also, beta testers are welcome.
Handy Links
- iTunes Link for Vibration
- Vibration Web Site
- Vibration Users Manual
- My website where you can find other OS X and iTunes applications
Disclaimer
The features described in this review are present in Version 1.1 of Vibration which is scheduled to be released by February 1, 2009. The current version does not allow sending .csv data or toggling the display of the axes in the frequency display. Versions of vibration purchased prior to the release of version 1.1 will be updated automatically at no charge when version 1.1 becomes available.


