I am designing a project that is a little similar to beer pong. The premise is that the user will throw a colored ping pong ball at a board with 2 to 4 mug-sized holes. The catch is that, before the user throws their ball at the board, one of the holes will ask for a given color for the user’s corresponding ball color. The number of colors possible will equal the number of holes. For instance, if a hole illuminates a blue light, then the user will have to pick a blue ping pong ball from their selection and throw it into that corresponding blue hole.
My question is this: which electronic component do I use to detect if the ball thrown at the hole is the correct color? Is the SparkFun RGB Light Sensor (ISL29125) the right choice?
If this RBG Light Sensor is the right choice, do I need one sensor per hole?
Matas