1 / 14

智 慧 型 機 器 車          教 學

智 慧 型 機 器 車          教 學. 指導教授:麥毅廷. Outline. 光敏 + LED 超音波 Zigbee. 光敏 + LED. 跳接線 LED 光敏感測 色碼電阻. 配線圖. ' {$STAMP BS2} ' {$PBASIC 2.5} DO IF (IN6 = 0) THEN HIGH 10 PAUSE 1000 ELSE LOW 10 PAUSE 1000 ENDIF LOOP. 超音波. 跳接線 超音波. 配線圖. ' {$STAMP BS2} ' {$PBASIC 2.5}

cruz-chen
Download Presentation

智 慧 型 機 器 車          教 學

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 智 慧 型 機 器 車         教 學智 慧 型 機 器 車         教 學 指導教授:麥毅廷

  2. Outline 光敏 +LED 超音波 Zigbee

  3. 光敏+LED

  4. 跳接線 LED 光敏感測 色碼電阻 配線圖

  5. ' {$STAMP BS2} ' {$PBASIC 2.5} DO IF (IN6 = 0) THEN HIGH10 PAUSE1000 ELSE LOW10 PAUSE1000 ENDIF LOOP

  6. 超音波

  7. 跳接線 超音波 配線圖

  8. ' {$STAMP BS2} ' {$PBASIC 2.5} time VAR Word DO PULSOUT 15, 5 PULSIN 15, 1, time DEBUG "time= ", DEC ? time LOOP

  9. ' {$STAMP BS2} ' {$PBASIC 2.5} time VAR Word DO PULSOUT 15, 5 PULSIN 15, 1, time IF time < 自行設定 THEN PULSOUT 13,750 PULSOUT 12,750 ELSE PULSOUT 13,850 PULSOUT 12,650 ENDIF LOOP

  10. Zigbee 操控

  11. 跳接線 XBee 配線圖

  12. ' {$STAMP BS2} ' {$PBASIC 2.5} RX PIN 0 TX PIN 2 time VAR Byte HIGH TX DO SERIN RX, 84, [DEC time] IF time = 1 THEN PULSOUT 13,850 PULSOUT 12,650 ELSEIF time = 2 THEN PULSOUT 13,650 PULSOUT 12,850 ENDIF LOOP

  13. Q&A

  14. Thank You For Listen !!

More Related