Hi there, I am currently building a cardboard marble run, and using Arduino to control sensors, motors, LEDs... to make it funnier. I would like to film a spot in the middle of the track using a camera, in order to determine which marble arrived first at that point. I'd like to use an algorithm to recognize the marbles on the images in the future, so the image should be as clear as possible.
For compactness, the camera should be about 20cm max away from the spot to film. I am planning to use as many white LEDs as needed to get sufficient lighting. Since the marbles run fast (few cm/s), the camera should be fast enough (at least 60Hz ?), and the field of view of 5*5cm is more than enough.
I have looked for some solutions such as the Raspberry Pi camera V2, but I'm wondering if it is fast enough to capture an image of a moving marble. My smartphone camera (Samsung A6) is producing only blurred images as well.
If somebody has suggestions, I'll be more than happy to read it! Thank you in advance for reading my topic, hopefully it complies with the forum rules.