0% found this document useful (0 votes)
53 views

Sound Sensor

Sound Sensor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

Sound Sensor

Sound Sensor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Control Using Sound

Control Using Sound Pre-Quiz

1. What is sound?

2. How does the LEGO sound sensor sense


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

Let’s get started:


 Divide the class into groups.
 Distribute the assembled LEGO taskbots
and the necessary parts to attach the
sound sensors onto the taskbots.
 Have each group attach its sound sensor to
its taskbot using instructions in the LEGO
base kit. 4
Human-Robot Similarities
Based on sensor input, our brains control our hands.
Similarly, based on sensor input, the LEGO brick
commands its motor to move the taskbot.

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

your program plan. Create, test and debug your program.


Answer: Programming the NXT Sound Sensor

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

1. Sketch clearly a “stimulus-sensor-


coordinator-effector-response” framework
using the sound sensor on the LEGO taskbot
and compare it with a stimulus-to-response
framework using the human ear.

2. Give examples of sensors in engineering


systems that are similar to the human
12
sound sensor.
Control Using Sound Post-Quiz Answers
1. Sketch clearly a “stimulus-sensor-coordinator-effector-
response” framework using the sound sensor on the LEGO
taskbot and compare it with a stimulus-to-response
framework using the human ear.
LEGO taskbot: sound of clap > LEGO sound sensor > signal
to LEGO brick via wire > brick decides to move the motor >
signal sent to LEGO motor > motor moves robot
Human ear: sound of thunder > human ear > human brain
> leg muscles > run for shelter
2. Give examples of sensors in engineering systems that are
similar to the human sound sensor.
Examples: Microphones in phones, computers and karaoke
machines; voice-activated door openers 13
Vocabulary

• sensor: A device that converts one type of signal to another,


such as the tachometer that displays the speed that a car is
traveling.
• auditory: Related to hearing.
• ultrasonic: A sound of a frequency that humans cannot hear,
but dogs and bats can.
• transducer: Another term for a sensor (see above).

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy