Instructions
Build a Tribot from the manual or a robot with two motors, treads or wheels and the sound sensor.
Connect the robot to the computer using a USB cable or the Bluetooth chip on your computer.
Open the Mindstorms programming software and begin a new program. The software is included with the Mindstorms kit, and it will present you with a blank sequence beam on which you can write a new program.
Program the robot to spin in a slow circle by dragging and dropping "Move" blocks to have one motor in one direction and the other motor in the opposite direction. Use the configuration panel at the bottom of the screen to set the speeds to be the same, just in different directions. Set the robot to stop moving when a sensor reacts.
Drag and drop a "Wait" block onto the sequence beam, and set it to pick up the sound sensor. Use the configuration panel to set the sensor as sensitive as you think it needs to be, bearing in mind any background noise that may be in the room.
Drag "Move" blocks into the sequence beam, and set them to move both motors forward using the configuration panel. This programs the robot to stop turning because of a sound, and start rolling forward.
Drag and drop a "Loop" block onto the sequence beam. Set the "Loop" block around the rest of your program so if the robot stops hearing sound it goes back to turning and scanning for sound.