Kutluhan Aktar
Published © GPL3+

AI-driven Plastic Surface Defect Detection via UV-exposure

Experimenting with different UV wavelengths and camera types to develop a feature-rich industrial anomaly detection mechanism with edge AI.

ExpertFull instructions provided231

Things used in this project

Hardware components

Elecrow $1 PCB Prototype
Elecrow $1 PCB Prototype
×1
Raspberry Pi 4 Model B
Raspberry Pi 4 Model B
×1
Raspberry Pi 5
Raspberry Pi 5
×1
Raspberry Pi Camera Module 3 Wide
×1
Raspberry Pi Camera Module 3 NoIR Wide
×1
Raspberry Pi Camera FFC Connector Cable (150mm)
×1
Raspberry Pi Camera FPC Connector Cable (300mm)
×1
Raspberry Pi Camera FPC Connector Cable (500mm)
×1
UV Bandpass Filter (25mm Glass ZWB ZB2)
×1
Godox Color Gel Filters
×1
DFRobot UVC Ultraviolet Germicidal Lamp Strip (275 nm)
×1
DARKBEAM UV Flashlight (395 nm)
×1
DARKBEAM UV Flashlight (365 nm)
×1
Microchip ATmega328P-PU
×1
16.000 MHz Crystal
×1
Resistor 10k ohm
Resistor 10k ohm
×1
Ceramic Disc Capacitor, 22 pF
Ceramic Disc Capacitor, 22 pF
×2
100nF Ceramic Disc Capacitor
×1
10uF 250v Electrolytic Capacitor
×1
Nema 17 (17HS3401) Stepper Motor
×2
A4988 Driver Module
×2
SparkFun Logic Level Converter - Bi-Directional
SparkFun Logic Level Converter - Bi-Directional
×1
SSD1306 OLED Display (128x64) Blue-Yellow
×1
Magnetic Hall-effect Sensor Module (KY-003)
×2
Long-shaft Potentiometer (B4K7)
×2
Button (6x6)
×5
DC Barrel Female Power Jack
×2
DC Barrel to Wire Jack (Male)
×3
DC Barrel to Wire Jack (Female)
×2
Arduino UNO
Arduino UNO
×1
FTDI Adapter (Programming Board)
×1
5 mm Steel Balls (Beads) for Bearings
×1
M3 Screws, Nuts, and Washers
×1
M3 Brass Threaded Inserts
×1
M2 Screws, Nuts, and Washers
×1
ATX Power Supply Unit (PSU)
×1
XH-M229 ATX Power Supply Adapter Board (Breakout)
×1
Xiaomi 20000 mAh 3 Pro Type-C Powerbank
×1
USB Buck-Boost Converter Board
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Bambu Lab A1 Combo
×1

Software apps and online services

Edge Impulse Studio
Edge Impulse Studio
Arduino IDE
Arduino IDE
Raspbian
Raspberry Pi Raspbian
Raspberry Pi Connect
XAMPP (LAMPP)
SMS Messaging API
Twilio SMS Messaging API
KiCad
KiCad
Fusion
Autodesk Fusion
Notepad++
Visual Studio 2017
Microsoft Visual Studio 2017
Thonny
Bambu Studio

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Hot glue gun (generic)
Hot glue gun (generic)

Story

Read more

Custom parts and enclosures

PCB manufacturing files

Mechanical part and component design files (STL)

Edge Impulse FOMO-AD visual anomaly detection model (EIM binary for Linux AARCH64)

Schematics

PCB Schematics

PCB Schematics

PCB Schematics

PCB Schematics

PCB Schematics

PCB Schematics

Code

Circular conveyor web dashboard

ai_driven_surface_defect_detection_circular_sprocket_conveyor.ino

uv_defect_detection_collect_data_w_rasp_4_camera_mod_wide.py

uv_defect_detection_collect_data_w_rasp_5_camera_mod_wide_and_noir.py

uv_defect_detection_run_inference_w_rasp_5_camera_mod_wide_and_noir.py

Credits

Kutluhan Aktar
84 projects • 338 followers
🤖 Independent Researcher | Product, AI, and Software Developer | Maker | Proof-of-Concept Solutions

Comments