I’ve created an arduino project to measure the time taken for a slot car to travel between two sensors. However, the sensors I have tried so far all take too long to respond to make the measurements sufficiently accurate. I tried a ToF sensor VL53L0X, amongst others, and have most recently tried the GP2Y0A21YK.
I need the sensor to trigger the Arduino within a few milliseconds (<5) but, from what I understand of the GP2Y0A21YK, it takes 30mS or so to refresh. ie the car may have passed the sensor up to 30mS previously.
Is my understanding correct; is there a faster sensor of the same type; or is there a better/faster sensor to use?
The sensor will be between 5cm and 40cm from the car when it passes and, ideally, would be directional. The sensor doesn’t need to be able to tell the distance of the car, only that the car has passed. I also want to use only one sensor for each ‘trigger’. ie I don’t want to have a transmitter and a receiver separately.