กลับไปหน้ารวมไฟล์
peanutless-peanut-mm-sorter-homemade-3d-scanner-eb5d61.md

ชื่อโปรเจกต์: Peanut(less) Peanut M&M Sorter - 3D Scanner ทำเองฉบับโฮมเมด

พี่จัดให้! สร้าง 3D scanner มาไว้สแกนเช็กดวงว่า M&M เม็ดไหนมีถั่วซ่อนอยู่ข้างใน หรืออันไหนเป็นช็อกโกแลตล้วนแบบเพียวๆ กันแน่ จัดไปวัยรุ่น ลองไปดูวิธีที่มันทำงานในวิดีโอข้างล่างนี้เลย

เจาะลึกรายละเอียดทางเทคนิค (แบบเน้นๆ)

ระบบคัดแยกอาหารอัตโนมัติระดับอุตสาหกรรม

โปรเจกต์ระดับเทพตัวนี้ใช้เทคนิค 3D scanning ที่พี่โมดิฟายขึ้นเอง เพื่อคัดแยก M&M ตามรูปร่าง (เอาไว้หาว่าเม็ดไหนไม่มีถั่วปนมา)

  • Computer Vision Pipeline: ใช้ Raspberry Pi Camera ทำงานคู่กับฐานหมุน (Turntable) ที่คุมด้วย Arduino โดยระบบจะเก็บค่า "Profile" ของลูกกวาดแต่ละเม็ด แล้วส่งให้ Raspberry Pi รันสคริปต์ Python/OpenCV เพื่อคำนวณปริมาตร (Volume) และความเบี้ยว (Eccentricity) ของวัตถุ
  • Precision Mechanical Diverter: พอสแกนจนรู้ผลแล้ว Arduino ก็จะสั่งงาน SG90 micro servo ที่ติดไว้กับรางแยก เพื่อปัดเม็ด "Clean" กับเม็ดที่มี "Peanut" ลงถังแยกกันแบบหล่อเท่เลยงานนี้

Hardware ที่รวมร่างกันอยู่

  • Backlit Scanning Hub: พี่ใช้ LED ring แบบแสงฟุ้ง (diffused) มาทำเป็นตัวส่องสว่างด้านหลัง เพื่อสร้างภาพเงาดำ (shadow-graph) ที่คอนทราสต์จัดๆ ของเม็ด M&M งานนี้รับรองว่าอัลกอริทึม 3D-profile ของเราจะแม่นยำ ไม่โดนสีของเปลือกน้ำตาลหลอกตาแน่นอน วางใจได้น้อง!

ข้อมูล Frontmatter ดั้งเดิม

title: "Peanut(less) Peanut M&M Sorter - Homemade 3D Scanner"
description: "I built a 3D scanner that can predict whether peanut M&Ms have peanuts in the center, or are pure chocolate."
author: "harrisonm"
category: "Home & Automation"
tags:
  - "food and drinks"
  - "internet of things"
  - "robots"
views: 7280
likes: 6
price: 299
difficulty: "Intermediate"
components:
  - "1x Adafruit Motor Shield V2"
  - "1x Hot glue gun (generic)"
  - "1x WS2812 Addressable LED Strip"
  - "1x Line Laser"
  - "1x 3D Printer (generic)"
  - "1x Wood Screws"
  - "1x Stepper Motor, Mini Step"
  - "1x Raspberry Pi 4 Model B"
  - "2x Box Hinges"
  - "1x Drill / Driver, Cordless"
  - "1x USB-A to B Cable"
  - "1x Camera Module V2"
  - "1x Arduino UNO"
  - "1x Various Boards"
tools: []
apps:
  - "1x Arduino IDE"
  - "1x Raspbian"
downloadableFiles:
  - "https://github.com/hamac2003/PeanutlessMM-Sorter"
  - "https://github.com/hamac2003/PeanutlessMM-Sorter"
documentationLinks: []
passwordHash: "c4d6f888104f3c85ea91e6e39c81f371104fb5f48ab45a72148c7b9926761449"
encryptedPayload: "U2FsdGVkX1+maA4nq9wRca5IJwe4YEiRf3GK1FMgJNlnMD1xeRpUwr5HKySxuQAYLP1JY/sDJsk22eWzpoUQmn5ee0C2m7ElG9oXh4RhZ37xu7vLHvXelubP5CDfiquT"
seoDescription: "Build a homemade 3D Scanner to predict if Peanut M&Ms contain peanuts or are pure chocolate."
videoLinks:
  - "https://www.youtube.com/embed/o8dnvQafDV4"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/peanutless-peanut-mm-sorter-homemade-3d-scanner-eb5d61_cover.jpg"
lang: "th"