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

2.10 หุ่นยนต์หลบหลีกสิ่งกีดขวางอัตโนมัติ

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

บทเรียนนี้เรามาลองเขียนโปรแกรมให้หุ่นยนต์ Cutebot micro:bit หลบหลีกสิ่งกีดขวางอัตโนมัติ

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

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