as the title suggest, I need a sensor that can detect the speed of an object in front of it. Preferably something cheap like <$20. Also, I need a cheap distance sensor that can give accurate readings up to 2 feet. For finding the speed of the object ahead, the only solution I found was to put 2 IR sensors next to each other and using s=d/t to find the speed but that won't work because I need to find the speed of the object ahead not to the left or right. I added an "illustration" showing my question
jremington:
If it is moving directly away from or toward a distance sensor,
speed = (change in distance)/(time to change). If not, brush up on your trigonometry.
What speeds? What accuracy?
Ok, so basically my project is collision detection on the road and for that I need to find the speed of the object in front of me(car). So what I am saying is I need a sensor that can detect the speeds of the "cars" in front of me and can find the distance between the 2. Also, just forget about the s=d/t
My apologies if I wasn't clear enough