Intro&Tools :
![Arduino 期末](/proxy/?url=https://content.instructables.com/FBP/2FXO/K4EB4Y9Z/FBP2FXOK4EB4Y9Z.jpg&filename=Arduino 期末)
![9189.jpg](/proxy/?url=https://content.instructables.com/F8K/8AEZ/K4EB5CVT/F8K8AEZK4EB5CVT.jpg&filename=9189.jpg)
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!!!!!!!!!!!!!!
Code
![螢幕快照 2019-12-18 上午12.30.56.png](/proxy/?url=https://content.instructables.com/F61/BKRE/K48Z31ZD/F61BKREK48Z31ZD.png&filename=螢幕快照 2019-12-18 上午12.30.56.png)
![IMG20191217231719.jpg](/proxy/?url=https://content.instructables.com/FYB/LRVL/K48Z328T/FYBLRVLK48Z328T.jpg&filename=IMG20191217231719.jpg)
![IMG20191217231813.jpg](/proxy/?url=https://content.instructables.com/FV2/DLE4/K48Z3296/FV2DLE4K48Z3296.jpg&filename=IMG20191217231813.jpg)
Try It!
![9186.jpg](/proxy/?url=https://content.instructables.com/F12/E4OH/K4EB5B8O/F12E4OHK4EB5B8O.jpg&filename=9186.jpg)
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