Color sensing application question
Don M
Posts: 1,652
I have a potential application whereby I need to correctly identify 3 wire colors during an assembly process. The wires are approximately 24 gauge and are located virtually next to one another. They are fit into as jig and then sonically welded to some contacts. To try and avoid incorrect assembly I want to make a device that will "alarm" if the wires are not in the correct order.
So for those familiar with this type of application here are my questions:
1. Of the several type of color sensors available from Parallax which one would best suite this type of application.
2. Can all three wires be viewed at once and their proper colors defined in a specific portion of the field of view with just one sensor or do I need 3.
Thanks for your insight on this.
Don
So for those familiar with this type of application here are my questions:
1. Of the several type of color sensors available from Parallax which one would best suite this type of application.
2. Can all three wires be viewed at once and their proper colors defined in a specific portion of the field of view with just one sensor or do I need 3.
Thanks for your insight on this.
Don
Comments
What are the three colors, BTW?
-Phil
So what are you suggesting by "color image capture"? What type of part would that be? Would the Propeller be able to process the info from this?
Along with many other projects, I'm planning an RGB LED plug-in for the 1401's mezzanine connector; but it's not on the front burner at the moment.
-Phil
-Phil
-Phil
More to come...
-Phil
Here's the output I got from the image sensor:
This was without any calibration, ambient subtraction, or white balance. Adding those features would improve reliability even more.
-Phil
Questions-
Would you care to share the program you used? I know the PC program is on the product page but was wondering about any additional spin program you may have used in this demonstration. Also any connection diagram.
Is that just a black plate background?
Did you use an all in one RGB led or 3 separate led's?
Is there a different lens on the line scan sensor? It looks longer than the one pictured on the product page.
"Would you care to share the program you used? I know the PC program is on the product page but was wondering about any additional spin program you may have used in this demonstration."
"Also any connection diagram."
"Is that just a black plate background?"
"Did you use an all in one RGB led or 3 separate led's?"
"Is there a different lens on the line scan sensor? It looks longer than the one pictured on the product page. "
-Phil
Attached is a zip with the Spin and .exe files. Here is a schematic of the LED attachment:
The LED is a TopBright TB5-V120-Flux-RGB8000, which I bought from China off of eBay. It's a common-anode unit.
Here is the output I got with the program from a multi-color (brown, red, orange, yellow, green, blue) ribbon cable with 0.05" lead spacing:
Oddly enough, the LED's color outputs exactly match the spectral sensitivity of the TSL1401 chip, so no white balance was necessary. (Such a close match between sensor and light source almost never happens!) I did subtract the ambient in the PC program, however, and you should do this, too in your ultimate Spin program.
-Phil
I visited the factory today to watch their process. They currently use a Keyence Digital RGB sensor that uses fiber optic heads at the point of sensing. So this brings up a question-
Due to the available mounting configuration the TSL1401 would have to face upwards underneath the wires and look at the wires within a distance of approx 1" - 1.5". In doing so there would not be any standard background so basically it would be looking up at whatever along with the wires. Will this present a problem?
····www.ukaoptics.com
····www.mars-cam.com/optical.html
····www.sunex.com/
You will want one with an M12 x 0.5mm thread and with a built-in IR filter (most common).
Since this is an industrial environment, a protective housing is also a must.
Just out of curiosity, what issues are they having with the Keyence sensors?
-Phil
First of all the Keyence sensor is one to one with each wire so you need a sensor for each wire location. Somewhat limits machine usage as some have just one sensor while another has 2. My thinking with the TSL1401 is that it would only need one sensor and could be "configured" through a display and buttons to set it up in viewing "windows" as to the number of wire locations and colors, etc..
He tells me that the operator "messes" with the setups of the sensors (sensitivity, etc) and while I was there they had 2 of the 3 machines set so that they would let any color work which defeats the purpose of having them.
Some of the wires have a tracer color stripe and that messes up with their existing setup. He gave me some sample wires- Black with red tracer, Yellow, Blue, Orange with white tracer, Yellow with black tracer, White.
I attached a couple photos.