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

2.1 เขียนโปรแกรมควบคุมหุ่นยนต์ให้เคลื่อนที่

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

เรียนรู้ฟังก์ชั่นพื้นฐานของ Cutebot ในการเคลื่อนไปข้างหน้าหรือถอยหลัง


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

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

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

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

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