1 / 22

(Basic Stamp)

(Basic Stamp). 參與學校. 香港專業教育學院青衣分校 佛教茂峰法師紀念中學 鄧兆棠中學 基朗中學 賽馬會體藝中學 明愛聖若瑟中學 東華三院伍若瑜夫人紀念中學 聖芳濟書院. Basic Stamp 介紹. BASIC Stamp II. BASIC Stamp IISX. 什麼是 Basic Stamp?. Basic Stamp 是一個 Microprocessors

grady
Download Presentation

(Basic Stamp)

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. (Basic Stamp)

  2. 參與學校 • 香港專業教育學院青衣分校 • 佛教茂峰法師紀念中學 • 鄧兆棠中學 • 基朗中學 • 賽馬會體藝中學 • 明愛聖若瑟中學 • 東華三院伍若瑜夫人紀念中學 • 聖芳濟書院

  3. Basic Stamp 介紹 BASIC Stamp II BASIC Stamp IISX

  4. 什麼是 Basic Stamp? • Basic Stamp 是一個 Microprocessors • Microprocessors 包括microcomputer system 微型電腦系統,它包括 中央處理器、記憶體、微型控制器和輸入、輸出裝置。將不同的Microprocessors 集合於一個系統中,稱為集成電路。

  5. What is Microprocessors? ROM 記憶體 (只可讀取) 真實環境 Data Bus Microprocessor RAM 記憶體 (可讀寫) To Real World I / O Device (輸入、 輸出配件) Address Bus

  6. What is Microcontroller? The microcontroller is a specialized (專門、特殊用途)micro-processor that contains most of I/O circuitry ,RAM and ROM. For example, a microcontroller has all of the essential blocks to control the microwave oven. Read from a keypad; write information to display; control the heating element; store data such as cooking time.

  7. Programming Languages 電腦語言介紹 High level Language BASIC, C, C++ , Pascal, ADA, JAVA , …

  8. Introduction to Flowcharts流程圖介紹 Start / End of a procedure 開始 / 完結 Process 過程 Input / output (輸入、輸出) Decision (決定) Connector (連接)

  9. Growbot 介紹 包括: BASIC Stamp IISX (程式輸入) R/C Servo & Wheel (摩打、車輪) PCB Body (電路板車殼) 9V Battery 電池

  10. Growbot 怎樣啟動?Introduction : Programming the BS2-SX Serial Cable BASIC Stamp & GROWBOT

  11. Growbot 怎樣啟動? Operation Step : Connect serial cable to COM1 or COM2 Start Stampw.exe and setup Preferences

  12. Growbot 怎樣啟動? Operation Step (操作步驟): Power on (開動)the Growbot by toggle power switch to Program position Click on Identify Icon

  13. How to Start with Growbot? Operation Step : Load the test program, “NewGrowbotsx.bsx” Click the Syntax Check Icon

  14. How to Start with Growbot? Operation Step : Click the Run Icon to download program from PC to BASIC Stamp II Toggle the power switch to RUN Position

  15. Growbot 怎樣啟動? Operation Step : If Growbot not responded(反應), please check Preferences(偏好設置), serial cable (連接線) and Battery(電池).

  16. Simple Digital Output Control with Growbot Program B-1.0 Start Set pin11 & pin15 as output Set pin11 to High pin15 to Low PAUSE for 2S Set pin11 to Low pin15 to High ‘PROG B-1.0 ‘Demo. Program GrowBot OUTPUT 11 ‘Left LED OUTPUT 15 ‘Right LED main: HIGH 11 LOW 15 PAUSE 2000 LOW 11 HIGH 15 PAUSE 2000 GOTO main

  17. Simple Digital Output Control with Growbot Program B-1.1 Start Set pin11 & pin15 as output Set pin11 to High pin15 to Low TOGGLE pin11 & pin15 PAUSE for 2S ‘PROG B-1.1 ‘Demo. Program GrowBot OUTPUT 11 ‘Left LED OUTPUT 15 ‘Right LED HIGH 11 LOW 15 main : TOGGLE 11 TOGGLE 15 PAUSE 2000 GOTO main

  18. Simple Speaker Control with Growbot Start Set pin8, pin11 & pin15 as output Send Frequency 1kHz & 2kHz PAUSE for 1S Send out Freq.. 3kHz & 6kHz • Program B-2.0 ‘PROG B-2.0 ‘Demo. Program GrowBot OUTPUT 8 ‘Speaker OUTPUT 11 ‘Left LED OUTPUT 15 ‘Right LED main: FREQOUT 8,200,400,800 PAUSE 1000 FREQOUT 8,200,1200,2400 PAUSE 1000 GOTO main FREQOUT pin,duration,Freq1,Freq2 duration - 1 to 165535 in 0.4mS Freq1,Freq2 - 0 to 32767 in 2.5 Hz

  19. Simple input/output with GROWBOT • Program B-3.0 Start ‘PROG B-3.0 ‘Demo. Program GrowBot INPUT 9 ‘Right Bumper INPUT 10 ‘Left Bumper OUTPUT 11 ‘Left LED OUTPUT 15 ‘Right LED main: out11 = in10 out15 = in9 GOTO main Set pin9, pin10 as input pin11,pin15 as output Left LED = Left Bumper Right LED = Right Bumper

  20. Simple input/output with GROWBOT • Program B-3.1 Start ‘PROG B-3.1 ‘Demo. Program GrowBot INPUT 10 ‘Left Bumper INPUT 9 ‘Right Bumper OUTPUT 11 ‘Left LED OUTPUT 15 ‘Right LED main: out11 = in10 ^ 1 out15 = in9 ^ 1 GOTO main Set pin9, pin10 as input pin11,pin15 as output Left LED = Left Bumper xor 1 Right LED = Right Bumper xor 1 A xor 1 = Not A

  21. Use Model Servo for Speed control 0.5mS - 2.5mS 20mS 1.0mS 2.0mS

  22. Basic Stamp 設計作品

More Related