Pages: [1]   Go Down
Author Topic: arduino speed gate  (Read 1321 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 49
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: December 27, 2009, 01:22:07 pm by BenMakins » Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 651
Posts: 50845
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 49
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks for the reply ! Do you think that you could help me write the code for it as well ?

thanks again
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 651
Posts: 50845
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 49
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No i cant do that, i'll just work it out my self some other time lol
Logged

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
;D

Mowcius
Logged

Sweden
Offline Offline
Newbie
*
Karma: 0
Posts: 27
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here is what I've made: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1258832174/0#0

/Ulf
Logged

Pages: [1]   Go Up
Jump to: