Clap On, Clap Off, with the Sound Phidget

Use your Sound Phidget to turn the "lights" on and off!

Setup

Sound Phidget

USB cable

Phidget cable

Connect

Connect the Sound Phidget to your VINT Hub, and your VINT Hub to your computer.

Code

Note: if you do not download the code, add two backdrops: one that is bright, and one that is dark.

Run Program

Try clapping your hands. Your backdrop should change with every clap!

Practice

  1. Explore the "loud" and "quiet" options of the sound code block.
  2. Expore the other sound code block by clicking the checkbox next to it and dropping it anywhere in your code area. You will see value appear above your sprite. What do you think the numbers represent?

What are Phidgets?

Phidgets are programmable USB sensors. Simply plug in your sensor, write code in your favorite language and go!

Phidgets have been used by STEM professionals for over 20 years and are now available to students.

Learn more

Set your preferences

Windows

Mac OS

Raspberry Pi

Java

Python

C#

Swift

NetBeans

Processing

Eclipse

Thonny

PyCharm

PyScripter

Visual Studio

Xcode

Setting your preferred operating system, programming language and environment lets us display relevant code samples for the Getting Started Tutorial, Device Tutorials and Projects

Done