Forward Until Sound Program. NXT Sound Sensors How does the Sound Sensor detect sound? The Sound...

18
Forward Until Sound Program

Transcript of Forward Until Sound Program. NXT Sound Sensors How does the Sound Sensor detect sound? The Sound...

Page 1: Forward Until Sound Program. NXT Sound Sensors How does the Sound Sensor detect sound? The Sound Sensor has a diaphragm membrane that is struck by sound.

Forward Until Sound Program

Page 2: Forward Until Sound Program. NXT Sound Sensors How does the Sound Sensor detect sound? The Sound Sensor has a diaphragm membrane that is struck by sound.

NXT Sound Sensors

Page 3: Forward Until Sound Program. NXT Sound Sensors How does the Sound Sensor detect sound? The Sound Sensor has a diaphragm membrane that is struck by sound.

NXT Sound Sensors

• How does the Sound Sensor detect sound?

The Sound Sensor has a diaphragm membrane that is struck by sound waved, and vibrates them. The vibrating diaphragm contains magnets, whose vibrations induces (creates) an electrical current in a surrounding coil of wire. The NXT detects this current and interprets it into a Sound Sensor reading.

Page 4: Forward Until Sound Program. NXT Sound Sensors How does the Sound Sensor detect sound? The Sound Sensor has a diaphragm membrane that is struck by sound.

Forward Until Sound Program

Page 5: Forward Until Sound Program. NXT Sound Sensors How does the Sound Sensor detect sound? The Sound Sensor has a diaphragm membrane that is struck by sound.

Establishing The Threshold

• On the NXT – Select the View Mode– Select Sound DB– Select Port 2

• Position the robot in an area that is quiet to acquire the two sound readings as shown in the next two slides

Page 6: Forward Until Sound Program. NXT Sound Sensors How does the Sound Sensor detect sound? The Sound Sensor has a diaphragm membrane that is struck by sound.

Establishing The Quiet Threshold

Page 7: Forward Until Sound Program. NXT Sound Sensors How does the Sound Sensor detect sound? The Sound Sensor has a diaphragm membrane that is struck by sound.

Establishing The Clap Threshold

Page 8: Forward Until Sound Program. NXT Sound Sensors How does the Sound Sensor detect sound? The Sound Sensor has a diaphragm membrane that is struck by sound.

Calculate The Threshold

Page 9: Forward Until Sound Program. NXT Sound Sensors How does the Sound Sensor detect sound? The Sound Sensor has a diaphragm membrane that is struck by sound.

Motor Block One Details

Page 10: Forward Until Sound Program. NXT Sound Sensors How does the Sound Sensor detect sound? The Sound Sensor has a diaphragm membrane that is struck by sound.

Sound Sensor Block Two Details

Page 11: Forward Until Sound Program. NXT Sound Sensors How does the Sound Sensor detect sound? The Sound Sensor has a diaphragm membrane that is struck by sound.

Motor Block Three Details

Page 12: Forward Until Sound Program. NXT Sound Sensors How does the Sound Sensor detect sound? The Sound Sensor has a diaphragm membrane that is struck by sound.

Test Your robot. Will it stop when you clap?

Page 13: Forward Until Sound Program. NXT Sound Sensors How does the Sound Sensor detect sound? The Sound Sensor has a diaphragm membrane that is struck by sound.

Forward Until Silence

Page 14: Forward Until Sound Program. NXT Sound Sensors How does the Sound Sensor detect sound? The Sound Sensor has a diaphragm membrane that is struck by sound.

Forward Until SilenceSound Sensor Block Two Details

Wait for the Sound Sensor on Port 2 to get a Silent reading

Silence/Quiet=Sound Sensor value<Threshold value

Page 15: Forward Until Sound Program. NXT Sound Sensors How does the Sound Sensor detect sound? The Sound Sensor has a diaphragm membrane that is struck by sound.

Test your robot does it go Forward Until Silence

Page 16: Forward Until Sound Program. NXT Sound Sensors How does the Sound Sensor detect sound? The Sound Sensor has a diaphragm membrane that is struck by sound.

Calculating Thresholds Quiz

Would the robot classify the following Sound Sensor readings as Sound or Silence?

a. Sensor = 25 with Threshold = 40

b. Sensor = 65 with Threshold = 40

c. Sensor = 47 with Threshold = 54

d. Sensor = 42 with No talking =30 and Whisper = 70

e. Sensor = 85 with No Clap = 43 and Clap = 100

Page 17: Forward Until Sound Program. NXT Sound Sensors How does the Sound Sensor detect sound? The Sound Sensor has a diaphragm membrane that is struck by sound.

Calculating Thresholds Quiz Answers

a. Sensor = 25 with Threshold = 40Sensor value is less than Threshold therefore it is silenceb. Sensor = 65 with Threshold = 40Sensor value is greater than Threshold therefore it is soundc. Sensor = 47 with Threshold = 54Sensor value is less than Threshold therefore it is silence

Page 18: Forward Until Sound Program. NXT Sound Sensors How does the Sound Sensor detect sound? The Sound Sensor has a diaphragm membrane that is struck by sound.

Calculating Thresholds Quiz Answers

d. Sensor = 42 with No Talking =30 and Whisper = 70

The threshold is (30+70)/2=50 The Sensor Value is less than Threshold, therefore it is No Talking. Intuitively - the Sensor value is closer to No Talking than Talking, therefore it is

No Talking e. Sensor = 85

with No Clap = 43 and Clap = 100 The threshold is (43+100)/2=72 The Sensor Value is greater than Threshold, therefore it is a Clap. Intuitively - the Sensor value is closer to Clapping than No clapping therefore it is clap.