Tinkercad Circuits:Ultrasonic 自動照明

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

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

本文使用TinkerCAD Circuits來示範距離感測器(Ultrasonic)的應用:「自動照明」,距離越遠燈泡就越亮。
This is an application: "Distance-trigged light blub system". The application uses ultrasonic sensor to measure distance. And the light bulb's brightness is becoming higher when the distance is getting farther.

材料(Materials):
1. Arduino UNO R3 板子 x 1
2. 距離感測器模組 Ultrasonic x 1
3. 燈泡 light bulb x 1
4. 杜邦線 jumper wire x 5

電路(Circuit):



程式碼(The Code):




示範影片(Demo Video):



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

沒有留言: