Skip to main content
←Back To Notes
EngineeringNovember 20, 20263 min read

Playing Music on Axial-Flux Motors

You're telling me my inverter can play AC/DC?

Ritik MishraMember of Technical Staff
723 words

Post Summary

3

Minutes to read

Tagged for hardware teams

This post lives in the same visual system as the product site, but focuses on the reasoning, tradeoffs, and architecture behind the work.

Motor ControllersTraction InvertersAcoustic Noise

For high-voltage hardware teams

Selecting a 1000V motor controller?

Compare Steinmetz MC0 controllers or send voltage, motor, cooling, packaging, and duty-cycle requirements for an application-fit review.

Figure 1. The MC0-500 playing Back in Black through an axial-flux motor.

A common demonstration done by many makers online is to play music out of a motor (e.g., drone motor, stepper motor, brushed DC motor). In fact, certain varieties of drone ESC will purposefully play music out of the motor on startup (e.g., Bluejay / BLHeli). However, most of these demos use small motors with small motor controllers. Most discourse around making sound using large motors amounts to car enthusiasts complaining about the relative silence of EV powertrains.

Although it is rare to see, it's possible to do the same type of demo using a much larger motor.

How does the motor make sound?

The rotor in a motor experiences forces axially, radially, and tangentially. Generally, when modelling a motor, we only care about the forces that are tangential to the rotor (i.e., forces that produce torque). Many motor models (e.g., those in [1]) reflect this focus, as they elide the axial and radial forces. However, these forces contribute significantly to sound.

While both radial and axial flux motors can make sound, the disk-shaped rotor in an axial flux motor tends to produce more noise when it vibrates.

Radial-flux and axial-flux motors viewed along the shaft, with alternating red north and blue south magnet poles. In the radial-flux motor, the poles sit on the rim of a rotor inside the stator bore, and flux crosses the airgap radially, perpendicular to the shaft. In the axial-flux motor, the poles sit on the face of a rotor disk in front of a stator disk, and flux crosses the airgap between them parallel to the shaft.
Figure 2. Radial-flux vs. axial-flux motor.

By leveraging Maxwell's stress tensor, it is possible to analyze these non-torque-producing forces on the rotor. For example, in an axial flux PMSM, the derived force density (i.e., force per area) between the rotor and stator faces is[2]

f=Bz2−Bt22μ0f = \frac{B_z^2 - B_t^2}{2 \mu_0}

where BzB_z is the axial flux density, and Bt≪BzB_t \ll B_z is the tangential flux density. Averaged spatially over the disk, we have fˉ∝∥λdq∥2\bar{f} \propto \| \lambda_{dq} \|^2. To maximize change in force, we would like to maximize

dfˉdt∝2λdλ˙d+2λqλ˙q\frac{d \bar{f}}{d t} \propto 2 \lambda_d \dot{\lambda}_d + 2 \lambda_q \dot{\lambda}_q

At low load, λd=Ldid+λpm>Lqiq=λq\lambda_d = L_d i_d + \lambda_{pm} > L_q i_q = \lambda_q, so it will be most effective to induce vibration by wiggling λd\lambda_d.

Recall the dqdq space equation of state for a PMSM[3]

[λ˙dλ˙q]=[vdvq]−R[idiq]−ω[−LqiqLdid+λpm]% \dot{\lambda}_{dq} = v_{dq} - R i_{dq} - \omega J \lambda_{dq} \begin{bmatrix} \dot{\lambda}_d \\ \dot{\lambda}_q \end{bmatrix} = \begin{bmatrix} v_d \\ v_q \end{bmatrix} - R \begin{bmatrix} i_d \\ i_q \end{bmatrix} - \omega \begin{bmatrix} - L_q i_q \\ L_d i_d + \lambda_{pm} \end{bmatrix}

where:

  • λdq\lambda_{dq} is the stator flux linkage on the dd and qq axes
  • vdqv_{dq} is the phase-to-neutral voltage on the dd and qq axes
  • RR is the phase-to-neutral resistance of the stator windings
  • idqi_{dq} is the phase-to-neutral current on the dd and qq axes
  • ω\omega is the rotor's electrical angular velocity (in rad/s)
  • LdL_d and LqL_q are the dd- and qq-axis inductances
  • λpm\lambda_{pm} is the dd-axis flux linkage contributed by the rotor's permanent magnet

Therefore, for the purpose of vibrating the rotor to play specific audio (i.e., up to ~15.6 kHz, well above ω\omega for our purposes), it is sufficient to modulate vdv_d at similarly high frequencies.

Actually playing music

The Steinmetz MC0-500 is a high performance, high power traction inverter. Its high switching frequency allows us to modulate vdv_d at 31.25 kHz. Additionally, its support for 100BASE-T1 automotive ethernet allows us to easily livestream uncompressed S16LE audio (a 500 kbps bit rate) into the firmware.

These two aspects mean that we truly use the inverter as a networked speaker, as opposed to using it as a MIDI-style device to play sine waves hardcoded into the firmware.

Our demo below was orchestrated as follows:

An iPhone streams audio over AirPlay on Wi-Fi to an AirPlay server on a host computer, which sends S16LE mono audio over UDP and Ethernet to the Steinmetz MC0-500. There, the Ethernet stack on one core fills a ring buffer that the 31.25 kHz control loop on another core reads, driving the PWM peripheral and, through the phase cables, the motor.
Figure 3. Audio path from phone to motor.

Result

Figure 4. The MC0-500 playing Axel F through an axial-flux motor.

References

  1. D. C. Hanselman, Brushless Permanent Magnet Motor Design, 2nd ed. Lebanon, OH, USA: Magna Physics Publishing, 2006.
  2. F. Zhao, Z. Shao, and H. Fan, "Analytical calculation and low-order component optimization of axial electromagnetic force for an axial flux motor," IEEE Trans. Magn., vol. 59, no. 11, Nov. 2023, Art. no. 8202705. doi:10.1109/TMAG.2023.3282739
  3. A. Varatharajan, G. Pellegrino, and E. Armando, "Direct flux vector control of synchronous motor drives: A small-signal model for optimal reference generation," IEEE Trans. Power Electron., vol. 36, no. 9, pp. 10526–10535, Sep. 2021. doi:10.1109/TPEL.2021.3067694