1 / 20

Basic Stamp Microcontroller

Basic Stamp Microcontroller. 24 2 12. What is a BASIC Stamp microcontroller?.

yosefu
Télécharger la présentation

Basic Stamp Microcontroller

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 Microcontroller 24 2 12

  2. What is a BASIC Stamp microcontroller? • A BASIC Stamp microcontroller is a single-board computer that runs the PBASIC language interpreter in it's microcontroller. The developer's code is stored in an EEPROM, which can also be used for data storage. The PBASIC language has easy-to-use commands for basic I/O, like turning devices on or off, interfacing with sensors, etc. More advanced commands let the BASIC Stamp module interface with other integrated circuits, communicate with each other, and operate in networks.

  3. แผงวงจรสำหรับทดลอง

  4. เมื่อเข้าสู่โปรแกรมจะปรากฏหน้าจอนี้เมื่อเข้าสู่โปรแกรมจะปรากฏหน้าจอนี้

  5. เขียนโปรแกรมลงไป

  6. ตั้งค่าระบบก่อน

  7. ตั้งพอร์ตการเชื่อมต่อตั้งพอร์ตการเชื่อมต่อ

  8. เช็คความถูกต้องของโปรแกรมด้วยปุ่มนี้เช็คความถูกต้องของโปรแกรมด้วยปุ่มนี้ กด run เพื่อโหลดโปรแกรมลงหน่วยความจำของ microcontroller

  9. เพิ่มให้มี switch สั่งให้ LED กระพริบ เพิ่มเป็นให้ LED 2 ตัวกระพริบสลับกัน

  10. การควบคุม stepper motor หลักการทำงานของ stepper motor ดูใน sheet ประกอบ ULN 2003 ทำหน้าที่อะไร?

  11. โปรแกรมการขับแบบ full step

  12. ลองเพิ่มจำนวน steps ลองปรับเวลา

  13. โปรแกรมการขับแบบ half step

  14. เพิ่มให้มีการคุมด้วย switch

  15. ข้อควรระวัง • อย่าต่อแหล่งจ่ายไฟโดยตรงเข้ากับขาพอร์ตของไมโครคอนโทรลเลอร์ (จะต้องมีตัวต้านทานด้วยเสมอ) เพื่อจำกัดกระแสที่จะไหลเข้าหรือออกจากพอร์ต มิฉะนั้น จะทำให้พอร์ตหรือตัวไมโครคอนโทรลเลอร์พังได้ • ตรวจสอบวงจรให้ถูกต้องก่อนต่อกับแหล่งจ่ายไฟ เสมอ • ระวังสายไฟที่ไม่ได้ใช้ ให้เก็บให้เป็นระเบียบโดยเสียบในช่องว่างๆ ของโปรโตบอร์ด • คอมพิวเตอร์บางเครื่องอาจมีไฟรั่วเล็กน้อย การเสียบต่อ COM PORTอย่าสัมผัสกับส่วนที่เป็นโลหะ

  16. ขอให้สนุกกับการทดลอง

More Related