c-4p5 automatic beer bottle filler and capper special sensor raspberry pi camera for measuring...
TRANSCRIPT
![Page 1: C-4P5 Automatic Beer Bottle Filler and Capper Special Sensor RASPBERRY PI CAMERA FOR MEASURING BOTTLE SIZE Aaron Landy IMDL Fall 2013 October 31, 2013](https://reader035.vdocuments.us/reader035/viewer/2022081501/56649dcf5503460f94ac4469/html5/thumbnails/1.jpg)
C-4P5Automatic Beer Bottle Fil ler and CapperSpecial Sensor
RASPBERRY PI CAMERA
FOR MEASURING BOTTLE SIZE
Aaron LandyIMDL Fall 2013
October 31, 2013
![Page 2: C-4P5 Automatic Beer Bottle Filler and Capper Special Sensor RASPBERRY PI CAMERA FOR MEASURING BOTTLE SIZE Aaron Landy IMDL Fall 2013 October 31, 2013](https://reader035.vdocuments.us/reader035/viewer/2022081501/56649dcf5503460f94ac4469/html5/thumbnails/2.jpg)
DESIGN AND OPERATION
Varying bottle size:12 oz or 22 oz
CapElectromagnet
Filling Wand
BottleClaw
![Page 3: C-4P5 Automatic Beer Bottle Filler and Capper Special Sensor RASPBERRY PI CAMERA FOR MEASURING BOTTLE SIZE Aaron Landy IMDL Fall 2013 October 31, 2013](https://reader035.vdocuments.us/reader035/viewer/2022081501/56649dcf5503460f94ac4469/html5/thumbnails/3.jpg)
OVERVIEW
![Page 4: C-4P5 Automatic Beer Bottle Filler and Capper Special Sensor RASPBERRY PI CAMERA FOR MEASURING BOTTLE SIZE Aaron Landy IMDL Fall 2013 October 31, 2013](https://reader035.vdocuments.us/reader035/viewer/2022081501/56649dcf5503460f94ac4469/html5/thumbnails/4.jpg)
Objective: Identify bottles in feed line Estimate volume of bottle for accurate filling Determine bottle height for positioning capper actuators
Raspberry Pi Camera Dedicated serial LVDS interface to SoC, no USB interface Open source drivers from Raspberry Pi Foundation
Processing using OpenCv
BOTTLE DETECTOR
![Page 5: C-4P5 Automatic Beer Bottle Filler and Capper Special Sensor RASPBERRY PI CAMERA FOR MEASURING BOTTLE SIZE Aaron Landy IMDL Fall 2013 October 31, 2013](https://reader035.vdocuments.us/reader035/viewer/2022081501/56649dcf5503460f94ac4469/html5/thumbnails/5.jpg)
Simple Filtering and Area
1. Inverse Binary thresholding to isolate bottle against background, fi lter noise
2. Count pixels for bottle area
3. Measure longest range of pixels for bottle height
Blob DetectionOpenCV
SimpleBlobDetector:1. Successive binary
thresholding2. Find contours in binary
images to extract connected components
3. Group keypoint centers across binary images
4. Estimate blob centers, radii from grouped components
BOTTLE DETECTOR APPROACHES
![Page 6: C-4P5 Automatic Beer Bottle Filler and Capper Special Sensor RASPBERRY PI CAMERA FOR MEASURING BOTTLE SIZE Aaron Landy IMDL Fall 2013 October 31, 2013](https://reader035.vdocuments.us/reader035/viewer/2022081501/56649dcf5503460f94ac4469/html5/thumbnails/6.jpg)
THRESHOLD CALIBRATION
12oz
22oz
Source 24 32 40 48 64 96
![Page 7: C-4P5 Automatic Beer Bottle Filler and Capper Special Sensor RASPBERRY PI CAMERA FOR MEASURING BOTTLE SIZE Aaron Landy IMDL Fall 2013 October 31, 2013](https://reader035.vdocuments.us/reader035/viewer/2022081501/56649dcf5503460f94ac4469/html5/thumbnails/7.jpg)
PIXEL AREA CONVERSION
Area Width
2058790
2246896
29708135
• Area in pixels must be converted to real 2D area measure
• Requires calibration calibration based on bottle sizes
• Must factor in relative positions of bottle and moving camera
![Page 8: C-4P5 Automatic Beer Bottle Filler and Capper Special Sensor RASPBERRY PI CAMERA FOR MEASURING BOTTLE SIZE Aaron Landy IMDL Fall 2013 October 31, 2013](https://reader035.vdocuments.us/reader035/viewer/2022081501/56649dcf5503460f94ac4469/html5/thumbnails/8.jpg)
?
QUESTIONS
![Page 9: C-4P5 Automatic Beer Bottle Filler and Capper Special Sensor RASPBERRY PI CAMERA FOR MEASURING BOTTLE SIZE Aaron Landy IMDL Fall 2013 October 31, 2013](https://reader035.vdocuments.us/reader035/viewer/2022081501/56649dcf5503460f94ac4469/html5/thumbnails/9.jpg)
Homebrewing is fun, bottling beer is hard
Time consuming process requires individually filling and capping bottles of different shapes and sizes
~50 bottles per 5 gal batch
MOTIVATION
![Page 10: C-4P5 Automatic Beer Bottle Filler and Capper Special Sensor RASPBERRY PI CAMERA FOR MEASURING BOTTLE SIZE Aaron Landy IMDL Fall 2013 October 31, 2013](https://reader035.vdocuments.us/reader035/viewer/2022081501/56649dcf5503460f94ac4469/html5/thumbnails/10.jpg)
Fill bottles with precise amountsCap bottles securely without breakingSupport inconsistent bottle shapes and sizesSeek/retrieve bottles automaticallyDo not contaminate, oxidize, damage, or waste beer
OBJECTIVES
![Page 11: C-4P5 Automatic Beer Bottle Filler and Capper Special Sensor RASPBERRY PI CAMERA FOR MEASURING BOTTLE SIZE Aaron Landy IMDL Fall 2013 October 31, 2013](https://reader035.vdocuments.us/reader035/viewer/2022081501/56649dcf5503460f94ac4469/html5/thumbnails/11.jpg)
Four primary mechanisms:1. Bottle searching/retrieving claw
Infrared and bump sensors to locate bottle
2. Filling tube Stainless steel tube lowered into bottle Tube opening must be pressed against
bottom of bottle to minimize agitation to prevent oxidation or contamination
3. Cap retrieving/placing magnet Caps must be picked up from top of
bottle and held during fi lling Cap must be replaced precisely on top
of bottle
4. Capping actuator Forceful linear actuator with capping
“bell” crimps/seals cap onto bottle
MECHANISMS
![Page 12: C-4P5 Automatic Beer Bottle Filler and Capper Special Sensor RASPBERRY PI CAMERA FOR MEASURING BOTTLE SIZE Aaron Landy IMDL Fall 2013 October 31, 2013](https://reader035.vdocuments.us/reader035/viewer/2022081501/56649dcf5503460f94ac4469/html5/thumbnails/12.jpg)
Raspberry Pi (Model B rev. 2) Infrared Range Finder and bump to detect bottlesRaspberry Pi Camera module to calculate bottle
height and volumeArduino + Stepper Motors + Motor Driver to drive
linear motion axesServos to open and close, turn claw
ELECTRONICS