Go Down

### Topic: arduino speed gate (Read 1 time)previous topic - next topic

#### BenMakins

##### Dec 27, 2009, 07:21 pmLast Edit: Dec 27, 2009, 07:22 pm by BenMakins Reason: 1
Hi, I have recently got a scalextric set and I want to know how fast the cars are going and I think a good way to measure the speed is to use a speed gate controlled by the arduino. What I am thinking is that there would be two IR lasers and receivers (perhaps from an old mouse) and when the car breaks the first laser the arduino times how long it takes to reach the second laser. Then the code will do some complicated sums using the time and distance and voila ! You get the speed(hopefully in mph or kmh.

will it work ?

Thanks

#### PaulS

#1
##### Dec 27, 2009, 07:29 pm
Sure will. The calculations are not that complicated. Speed is distance/time. You are measuring the time. The distance is known. The "complicated calculation" is one division operation.

#### BenMakins

#2
##### Dec 27, 2009, 08:18 pm
thanks for the reply ! Do you think that you could help me write the code for it as well ?

thanks again

#### PaulS

#3
##### Dec 27, 2009, 11:26 pm
You send my the Arduino, the sensors, and the scalextric set. I'll write the code, make sure it all works, and send everything back.

How much will you pay for the code?

#### BenMakins

#4
##### Dec 28, 2009, 09:30 am
No i cant do that, i'll just work it out my self some other time lol

#### mowcius

#5
##### Dec 28, 2009, 02:53 pm
Quote
thanks for the reply ! Do you think that you could help me write the code for it as well ?

I am doing something very similar, measuring the time taken for a car to travel down a track, also reading the speed. I am using two red lasers (IR would be better but much more expensive) and two LDRs.

I can help you with any code you need help with. Are you just wanting to measure the speed or the time taken along a specific part of the track?

Quote
You send my the Arduino, the sensors, and the scalextric set. I'll write the code, make sure it all works, and send everything back.

How much will you pay for the code?

Mowcius

#### Sweeduino

#6
##### Dec 28, 2009, 08:10 pm

Go Up

Please enter a valid email to subscribe