- Introduction
- Landscape of augmented instruments
- Design choices for the instrument
- Engineering a magnetic scanner
- Controlling the instrument
- Discussion : Compairing with other setups
- Conclusion and future work
- About this website
The dynamics of the system
Summary
We started using a simple model, the damped string model. It exhibits an important property of the system : the relaxation and max stimulation frequencies are different, making the tuning of the system more complex.
The model predicts a first order response on the amplitude of each mode, when the drive frequency is exactly the resonant frequency, and predicts beatings when the difference is small. Experimental open loop data indeed shows strong beatings, but their dynamics are complex.
This simple model, which parameters seem too dependent on the environmental conditions of the instrument, was not used in the experimental control, and we did not manage to get a clear differential equation describing the system as defined.
Calculations
The homogeneous equation
We started with a very simple model of this instrument : the damped string, in one dimension.
Let be the height of the string above its resting position at position and time . We can write the damped string equation . with boundary conditions . Supposing is harmonic and can be written as , we find and . The asymptotic stability imposes , hence
The boundary conditions impose , hence , with . e.g. . The solutions of are with and . Re-injecting in the previous equation, we find hence . The real system oscillates with little friction, so we can assume that .
Hence
Let , thus .
We will also call the pseudo-frequency of undriven oscillations.
Now solving the general solution, we had . We suppose (since constants can be adjusted to boundary conditions later). Since is an orthonormal basis of the Hilbert space , we can write .
The linearity of the wave equation and the orthogonality of the gives and so .
Hence the general form of the homogeneous equation :
Adding the actuator
Let us now consider the non-homogeneous damped string equation :
.
where is a smooth function that can be written as (the actuator does not move).
Projecting on the basis gives , where .
The scalars represent the spatial distribution of the force, while represents its time dependent variations.
Equation yields .
Hence , since the are orthogonal.
In complex notation, we get
hence
This is the typical behaviour of a second order low pass filter with a resonant frequency .
The simulations of cylindrical permanent magnets and the magnetic scans are consistent with a simplification of the force of the type :
.
Proposed simplification of the profile of the force exerted by the electromagnet
This definition is that of a parabola centered around , with a max height of and a distance between its roots of . The function is zero outside of , hence out of the bell region.
We can now calculate :
But for small actuators, this result is close to the one we would get from the single point model : . We found experimentally that both predictions were far from actual amplitude data : the final amplitude values of modes tested in open loop had very different ratios than xhat the formula predicted.
It is important to stress that we are interested in the dynamics of the amplitude of each mode ( as introduced in the state sensor algorithm page), not just the state of its associated oscillator. For a Heaviside excitation at the resonant frequency, i.e. (where and ), the system behaves like a first order system (regarding the amplitude) : the final state is reached with an exponential decay profile. The time constant is , like in the homogeneous equation. We can thus hypothesise that the system behaves like a first order system for more complex excitations, if exactly driven at its resonance frequency.

Transient of a damped oscillator to a pure sine excitation at the resonant frequency, from R. Fitzpatrick website
Except in the simple case of the undamped string, we were unable to analytically compute a simple expression for the amplitude of the transient response when the frequency is not exactly (even with the help of Mathematica). We also had trouble finding literature on the subject (and would welcome any documentation sent to us).
We expected beatings similar to a second order response, but we came to the conclusion that we needed experimental data to continue.

Transient of a damped oscillator to a pure sine excitation off the resonant frequency, from R. Fitzpatrick website
Testing the simple model
We collected a set of data representing the system response to different step inputs.
We used the Bela to inject a signal of the type :
where is a ramp signal defined as
And phases were chosen so as to limit the high frequency click at .
The amplitudes were chosen to study both single frequency response and multimodes excitation.
The actuator was placed at 120mm from the sensor (the string has a length of 700mm).
The below figure shows the system response to a 0.5
step input for mode 1.

Open loop response for a 0.5 step input for mode 1
The decay of the beatings has an exponential profile, but the beginning of the transient is difficult to analyse. The same observation can be made on the open loop response to a mode 2 step (though the decay is too slow to be exponential):

Open loop response for a 0.5 step input for mode 2
However, the beatings become more complex for mode 3 onward : the beatings start to have a beating oscillation.

Open loop response for a 0.5 step input for mode 3
The modes are also more coupled than anticipated, and the beatings change accordingly. We tried to use the system identification toolbox in Matlab to get a numerical model that could explain these responses, but even with high order models, we could not get better than a 70% fit, and most often the begining of the transient was fairly off.
In front of these difficulties to get a reliable model, we resorted to first control the system with a model-less controller like a PID, before resuming the model construction with better knowledge of the system behaviour.
The issue of tuning the string
Tuning the string to an exact frequency is a difficult process : as seen previously, the free oscillation frequency differs from the resonance frequency, and this relationship depends on the damping of the system. The string being attached to other mechanical parts (the piezo bridge, the nut and the tuning mechanism, and the wood itself), the damping is a function of the entire instrument geometry. Furthermore, the surface on which the instrument is played also dissipates energy, as it radiates sound.
To mitigate the surface dependancy, we layed the instrument on thick foam legs, dramatically reducing the transmitted vibration.
We used stroboscopy to tune the string : we injected a pure sine at a fixed frequency into the actuator, and then used an LED array driven at the same frequency to see the actual movement of the string.
We also reduced the illumination time to a tenth of the period the fundamental : this reduced motion blur and allowed finer tuning.
We were constantly confronted with a kind of hysterisis : the string would start its vibration when driven at a frequency close to , but would still vibrate, sometimes with a higher amplitude, when driven at a frequency further off from .
Our method for tuning was to regularly stop the string and wait for the amplitude to settle, while checking the frequency with the strobe.
- Introduction
- Landscape of augmented instruments
- Design choices for the instrument
- Engineering a magnetic scanner
- Controlling the instrument
- Discussion : Compairing with other setups
- Conclusion and future work
- About this website