Tinkercad Circuits:大聲公

若您覺得文章寫得不錯,請點選文章上的廣告,來支持小編,謝謝。

If you like this post, please click the ads on the blog or buy me a coffee. Thank you very much.

本文使用TinkerCAD Circuits來示範聲音感測器的應用:「大聲公」,聲音越大LED就越亮。
Sound sensor application: "Sound triggered LED". This sound sensor controls the brightness of a LED with its' sound level.

材料(Materials):
1. Arduino UNO R3 板子 x 1
2. 聲音感測器模組 x 1
3. LED 燈 x 1
4. 杜邦線公對公 male/male jumper wire x 6
5. 220歐姆電阻 220 ohm resistor x 1

電路(Circuit):

上圖是用Photentiometer表示聲音感測器模組。
Sound sensor signal pin is wired to Arduino UNO A0.
The LED's anode is wired to Arduino UNO pin 9.

程式碼(The Code):


示範影片(Demo Video):


範例連結(Example Link):
https://www.tinkercad.com/things/4RDpugLYGE8

沒有留言: