Ict Reviewer 4
Ict Reviewer 4
Sound Output
▪ Sound produced from speakers, musical
instruments and even our vocal folds and
larynx.
▪ All of sound producing instruments share
one thing in common, vibration.
▪ Amount of vibration and speed produce
different sounds that we can recognize.
▪ tone () uses hardware timer to generate a
square
wave of the specified frequency on a pin.
▪ You can play notes of a given frequency,
though only
one tone can be produced at a time on a
standard
Arduino board.
▪ noTone () function stops the generation
of a square wave triggered by tone ()
function.
▪ Sketches that needed timer function on pin
9 or 10
cannot use the tone function
▪Below is the syntax you can use in calling
tone ()
function or notone () function.