I built a 3D scanner that can predict whether peanut M&Ms have peanuts in the center, or are pure chocolate. See how it works in the video below.
EXPANDED TECHNICAL DETAILS
Industrial Food Sorting Automation
This advanced project uses a homemade 3D scanning technique to sort M&M candies based on shape (identifying those without peanuts).
Computer Vision Pipeline: Uses a Raspberry Pi Camera and an Arduino-controlled turntable. The system captures a "Profile" of the candy. The Raspberry Pi runs a custom Python/OpenCV script to calculate the volume and eccentricity of the object.
Precision Mechanical Diverter: Upon identification, the Arduino triggers a SG90 micro servo attached to a sorting chute, diverting "Clean" vs. "Peanut" candies into separate bins.
Integrated Hardware
Backlit Scanning Hub: Uses a diffused LED ring to create a high-contrast shadow-graph of the candy, ensuring the 3D-profile algorithm is not affected by the color of the candy's shell.
ข้อมูล 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: "en"