All the electrical vehicles I've ever ride make that humming sound (either cars or trains).
What exactly causes that sound? Is it drag force in the gears? Is it a fan?
Or is it because of the coils (see coil noise)?
All the electrical vehicles I've ever ride make that humming sound (either cars or trains).
What exactly causes that sound? Is it drag force in the gears? Is it a fan?
Or is it because of the coils (see coil noise)?
Correct, coil noise is generated in the windings of the motor because of Pulse Width Modulation (PWM) driving current. Different frequencies of modulation cause corresponding sound frequencies (may create half or double frequency oscillations as well).
To change the speed of an electric motor, PWM is required to regulate voltage in DC motors and generate variable frequency wave forms in Variable Frequency Drives (VFD) for AC motors.
A brushless DC motor is essentially a 3 phase AC motor coupled with an application specific VFD. These are common in electric remote controlled aircraft and often play tones for a power up self check with nothing but the motor acting as a speaker. There are many examples online of people trying this DIY; for example, Brushless motor music (YouTube).