Good day guys I have a project in my work in which I have to detect by sensors if a certain item has a white label activates a led and in case it does not have another led. (In case doesnt have the label the color of the item its gonna be black)
To be honest I am quite new in this topic of electronics I would appreciate any kind of support.
Like what kind of sensor can I use talking about a ir sensor
Kevin24arti:
Good day guys I have a project in my work in which I have to detect by sensors if a certain item has a white label activates a led and in case it does not have another led. (In case doesnt have the label the color of the item its gonna be black)
To be honest I am quite new in this topic of electronics I would appreciate any kind of support.
Like what kind of sensor can I use talking about a ir sensor
Welcome to the Arduino forum. Sounds like a relatively easy project.
But, you are confusing what humans see in what is called visible light, your white label and no label, with what is seen in infra red light. The "white" label you see may actually be "black" in IR light. Same may be for "no label" where the container is quite reflective in IR light and will be show white.
Is IR light and sensors a requirement? Or may a visible white light and proper sensor do the job for you?
How about a sensor like this:
One LED, one photodiode, two resistors, that's pretty much it. Analog output giving you the brightness of the received IR. They're sold as proximity/obstacle sensors. Basically it has an IR LED, and the photodiode next to it tells you the brightness of the reflected IR. Very sensitive no doubt to ambient IR, but that's usually not an issue indoors. Or add a bit of shielding.
With your situation I'd expect three values: nothing, white label, black label. With a little luck they are well separated, like 100-200 ADC points difference, making it a simple yet effective detector.
As pointed out above the reflectivity in IR may be different from visible, but that's easy enough to try out. I do assume you will place your containers at the same distance every time, as distance obviously matters for the returned value.
Basically the same principle as the light sensor suggested above, with the advantage of being invisible to humans and less likely to be affected by ambient light - indoors there's usually very little IR, but often a lot of visible light.
Will the label *always *be on the same place on the item and will the item *always *be in the same orientation relative to the sensor? Is it important to take the reading when the item is 'in position'? How long do you have to take a reading?