If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Challenge: drum partner

Sound sensor

Now we can get to know the sound sensor with a simple challenge
Sound sensor
The sound sensor can be used to control switch statements. If you setup your switch statement correctly using a sound sensor you will be able to build this simple drum partner.
Khan Academy video wrapper
To do this you must build a program which beeps when it detects a loud tap/clap. It will require you to use a single loop block and switch statement which is controled by a sound sensor. Good luck!

Want to join the conversation?