2. บทเรียนหุ่นยนต์พื้นฐาน

2.11 หุ่นยนต์วิ่งตามวัตถุแบบอัตโนมัติ

1. เป้าหมายการเรียนรู้ 📌

บทเรียนนี้เรามาลองเขียนโปรแกรมให้หุ่นยนต์ Cutebot micro:bit วิ่งตามวัตถุแบบอัตโนมัติ | Car Following with A Fixed Distance

🎁 พิเศษ : สไลด์ประกอบการเรียนรู้ “หุ่นยนต์วิ่งตามวัตถุแบบอัตโนมัติ”  ⬇️

2. สิ่งที่ต้องเตรียม

ชุดหุ่นยนต์ Cutebot

3. การเตรียมโปรแกรม

    • เปิดเบราว์เซอร์ Google Chrome แล้วไปที่เว็บไซต์ makecode.microbit.org
    • สร้างโปรเจกต์ใหม่และตั้งชื่อตามที่ต้องการ เช่น “cutebot10”

4. โค้ดตัวอย่าง 

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
Click outside to hide the comparison bar
Compare