ADM Unit 2 | Mission Brief 2.1

Machine Vision Quality Inspection

Use an optical sensor to classify parts and reject items that do not meet the color specification.

Intermediate1-2 class periodsEngineering Challenge
Background

Engineering Context

An aerospace connector supplier uses color to identify production batches. Parts from the wrong batch must not reach assembly. Your workcell must measure hue, classify each incoming disk, and route it to an accepted or rejected location.

Objectives

What You Will Practice

  • Collect and interpret optical-sensor data
  • Select threshold values from repeated measurements
  • Use conditional logic for automated decisions
  • Calculate inspection accuracy
Equipment

What You Need

  • VEX CTE Workcell
  • Optical sensor
  • 6-Axis Arm
  • Red and green disks plus one unknown/test disk
  • Python project
  • Engineering notebook
Procedure

Instructions

  1. Turn on the optical sensor light at a consistent power.
  2. Collect at least ten hue readings for each known color and record the range.
  3. Choose threshold values that separate the two groups.
  4. Create an inspection function that returns the detected class.
  5. Program the robot to inspect and route each disk.
  6. Test a randomized sequence of twenty disks without changing thresholds.
  7. Record true color, detected color, and destination.
  8. Calculate accuracy and revise thresholds only if the data supports a change.
Requirements

Engineering Requirements

  • Inspect twenty randomized parts
  • Achieve at least 95% correct classification
  • Send uncertain readings to a reject location
  • Return to a safe position between parts
Constraints

Constraints & Safety

  • Use one optical sensor
  • Keep lighting and inspection distance consistent
  • Do not identify colors manually during the final run
  • Hardware locations remain fixed
Deliverables

What You Submit

  • Hue calibration table
  • Python inspection and routing program
  • Twenty-part confusion/accuracy table
  • Threshold justification
  • Reflection
Reflection

Reflection Questions

  1. Why were repeated readings necessary?
  2. Which color had the widest range?
  3. How should the system handle an uncertain value?
  4. How could ambient light affect production?