Introduction: Intro&Tools :

This project is using tone() with Arduino to make noise in an easy way.

You will need:

8 wires

1 piezo speaker

1 supersonic sensor

1 breadboard

BE CAREFUL WHEN YOU ARE USING THE PIEZO SPEAKER, IT IS FRAGILE!!!!!!!!!!!!!!

Step 1: Code

Step 2: Try It!

connect the breadboard to your computer

you can try to get close to the supersonic sensor, it will make some noise when you get to a specific distance