© Neil Cameron 2019
Neil CameronArduino Appliedhttps://doi.org/10.1007/978-1-4842-3960-5_22

22. Sound and Square Waves

Neil Cameron1 
(1)
Edinburgh, UK
 
Sound is the vibration of air particles. If the vibration is continuous and regular, then the sound can be described by its frequency, as the number of waves per second, quantified in Hertz (Hz). For the time interval in Figure 22-1, the blue sound wave has two complete cycles, while the red sound wave has four complete cycles, so double the frequency and half the wavelength of the blue sound wave. For electromagnetic and sound waves, wavelength is the speed of light and sound, respectively, divided by the frequency.
Figure 22-1

Two different frequencies

The human ear can hear sounds with frequencies ...

Get Arduino Applied: Comprehensive Projects for Everyday Electronics now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.