1 / 19

智 慧 型 機 器 車          教 學

智 慧 型 機 器 車          教 學. 指導老師:麥毅廷. Outline. 設備介紹 環境建置 基本操作 LED 進階 - 光影+LED. 設備介紹. 硬體. IC版. BASIC Stamp. Sensor. 光影感測器、電阻( 2K & 220 ). LED 、電阻 (470) 、接收器. 環境建置. 開發程式為 BASIC Stamp Editor ♥  下載網址: http://www.wkb.idv.tw/file/robot.rar. 基本操作. 程式範例. 顯示結果. ' {$STAMP BS2}

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 進階-光影+LED

  3. 設備介紹

  4. 硬體 IC版 BASIC Stamp

  5. Sensor 光影感測器、電阻(2K&220) LED、電阻(470)、接收器

  6. 環境建置

  7. 開發程式為 BASIC Stamp Editor ♥  下載網址:http://www.wkb.idv.tw/file/robot.rar

  8. 基本操作

  9. 程式範例 顯示結果 ' {$STAMP BS2} ' {$PBASIC 2.5} DEBUG "Hello!!" END

  10. LED

  11. 配線圖

  12. DO…LOOP 迴圈 FOR 迴圈 DO HIGH13 PAUSE500 LOW13 PAUSE500 LOOP X VAR Word FOR x=1 TO 3 HIGH13 PAUSE1000 LOW13 PAUSE1000 NEXT

  13. 頭腦動一動:   如果今天插上了兩個以上的LED燈,    1.如何讓兩個燈泡亮起?     2.如何讓它們連續交互閃爍呢?

  14. DO HIGH3 PAUSE1000 LOW3 PAUSE1000 HIGH5 PAUSE1000 LOW5 PAUSE1000 LOOP

  15. 進階-光影+LED

  16. 配線圖

  17. DO IF (IN8 = 1) THEN HIGH3 PAUSE1000 ELSE LOW3 PAUSE1000 ENDIF IF (IN6 = 1) THEN HIGH5 PAUSE1000 ELSE LOW5 PAUSE1000 ENDIF LOOP

  18. Q&A

  19. Thank You For Listen !!

More Related