Sound Sensor
Sound Sensor
1. What is sound?
2
Control Using Sound Pre-Quiz Answers
1. What is sound?
Vibrations of air, or pressure pulses, are
picked up by human ears as sound.
2. How does the LEGO sound sensor sense
sound?
The LEGO sound sensor has a diaphragm
that vibrates with pressure fluctuations,
similar to our ears, and converts the
diaphragm motion into electricity, which it
transmits to the LEGO brick/computer. 3
Control Using Sound Activity
5
The next slide provides a design challenge
to show how this might be done.
Control Using Sound Activity
Programming Objective – Engineering Challenge
Design a program that causes the robot to move
forward until a clap sound is detected by its sound
sensor.
Once this occurs, have the robot turn right, and
then continue moving forward until it hears a
second clap, and then have the robot turn left.
Continue this sequence until the LEGO brick’s
“Stop” button (gray button below the orange
button) is pressed.
Discuss as a group the logic of the program. Write down 6
1 of 5
7
Answer: Programming the NXT Sound Sensor
2 of 5
8
Answer: Programming the NXT Sound Sensor
3 of 5
9
Answer: Programming the NXT Sound Sensor
4 of 5
10
Answer: Programming the NXT Sound Sensor
5 of 5
11
Control Using Sound Post-Quiz
14
Image Sources
Slide 1: A pair of hands clapping; source: 2011 Evan-Amos, Wikimedia Commons {PD}:
http://commons.wikimedia.org/wiki/File:Hands-Clapping.jpg
Slide 5: brain; source: ADAM, Medline Plus, U.S. National Library of Medicine, National Institutes of
Health: http://www.nlm.nih.gov/medlineplus/braindiseases.html
Slide 5: ear image; source: 2005 David Benbennick, Wikimedia Commons [PD}:
http://commons.wikimedia.org/wiki/File:Ear.jpg
Slide 5: pointing finger; source: Microsoft® clipart: http://office.microsoft.com/en-
us/images/results.aspx?qu=pointing+finger&ex=1#ai:MC900233154|
Slide 5: LEGO device images; source: LEGO NXT User’s Guide
Slides 7-11: screen capture images by the author
15