Hi guys im new here to the forum, ive been making small arduino based projects for about 1 year now and im having some issues with a project im working on.
the project is to calculate the speed of rc vehicles in mph, i have 2 photo diodes at a set distance apart with lasers as the "trip" sensors to detect the time it takes the vehicle to travel the set distance
the problem is the timer "starts and stops" in only one direction ie. Left to right
also when both sensors are covered at the same time the timer "freaks out" so to speak and spits out random numbers
my goal is when the "first" sensor gets triggered it starts the timer then gets disabled and arduino waits for the "second" sensor to get tripped to stop the timer , then spits out the current time and speed also compare the "current run" with the "fastest run" and then resets both sensors.
It needs to be able to start and stop the timer in both directions (left -right, right-left) but i cant figure it out and have searched all over the web for something similar the closest thing found was a chronograph but they only operate in one direction.
thank you guys so much ahead of time for any help received