GGT在線論壇 › Forums › GGT在線論壇 › 問題請教 Tagged: lesson 5, micro:bit, 第5課, 第五課 This topic has 2 replies, 3 voices, and was last updated 1 year ago by twfhk. This post has been viewed 382 times Viewing 3 posts - 1 through 3 (of 3 total) Author Posts 2022 年 1 月 28 日 at am 10:36 #186 GGT1389Member Topics1Replies0Level 1 你好,我在micro:bit課程中的Lesson 05: 防盜警報器的挑戰一中錯了,但是不太明白應該如何改正,請問我哪裡有問題?🙏🏻 2022 年 1 月 28 日 at am 10:54 #187 Hillman TamModerator Topics0Replies0Level 1 可傳個完整program 檔案比我嗎 2022 年 1 月 28 日 at am 11:23 #188 twfhkKeymaster Topics8Replies0Level 1 謝謝你的問題呀! 😀😀😀 挑戰一是加一個servo / motor 然後上載製成品的錄像。 servo motor可以用於鎖。當偵測到有盜賊時,除了響警號外,還可以啟動鎖把門鎖上,保護財物。servo motor可以轉動90度或180度一次,完成上鎖動作。 喺課程裡面,pin 2連接到活動感應器 (motion sensor),pin 1連接到燈。仲剩下pin 0可以用,所以將servo motor連接到pin 0。以下嘅程式中,只顯示servo motor部份。開始時先將servo motor設定到0度(未上鎖的位置)。當活動感應器探測到活動時,pin 2會轉做1,servo motor就會轉180度上鎖。 This reply was modified 1 year ago by twfhk. Author Posts Viewing 3 posts - 1 through 3 (of 3 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In