Hello, can somebody please assist into designing a code for a laser sensor that will only react or detect only one colour no matter where the sensor is or how it is used? for example, detect only Black passing through it.
Sure, what assistance do you need? What sensor are you using?
I want to build design a code for a laser sensor that can only detect one colour but I'm not wild or experienced in coding
Black light. An interesting concept
You were asked what kind. Can you please dignify the question with an answer?
photoelectric sensor
Which one of the 1000's that are on the market?
Please read the forum guidelines for presenting a question properly.
Especially when it passes through things. I think we will need some idea what the detected materials are... also distance specifications and environment in which it will operate etc.
Photoelctric sensor
it will detect colour of a soccer ball, in the field outside. immediately that certain colour of the breaks the laser light it reacts
That is a completely different question, and a nearly impossible task for a hobbyist.
The "color" of a soccer ball (of any viewed object) depends on the lighting.
aka UV. Edmund Scientific sold Black Light bulbs and I have UVA leds.
Light can be passed through a prism or diffraction grating to split into colors by position.
Are you trying to detect when a soccer ball enters a goal without reacting when the goalie enters the goal?
A sensor (photodiode or phototransistor) can be more sensitive to certain wavelengths than others but you may need an optical filter to better reject other wavelengths. (Or a prism or diffraction grating.)
YES Sir, exactly that
What if the goalie has black on their jersey, shorts, or cleats?
Could be worse they can have white uniform dirtied from falling into mud
Words like "Arduino color sensor project" in an internet search engine would get things like this,
Arduino Color Sensor Project using TCS230 - Engineering Projects.
and more.
A camera coupled to a machine learning algorithm could be used.
A system like the NHL uses to follow hockey pucks might be of interest.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.