Skip to content
This project is a track that toy cars can race down. An arduino records the speed and times of each car on each run. The Arduino then sends this information to a Windows Application which records the data and draws a speed time graph. The software also calculates the acceleration of the car. The Arduino uses four LDRs and the length of the car t…
C# Other
  1. C# 62.1%
  2. Other 37.9%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Arduino Code/Arduino_Speed_Time_Track
Ready_To_Go
Schematics
Track Photos
Utility Screenshots
Visual Studio Files/ArduinoSpeedTimeTrack
.gitignore
LICENSE
README.md

README.md

Arduino Speed Time Track

Description

This project is a track that toy cars can race down. An arduino records the speed and times of each car on each run. The Arduino then sends this information to a Windows Application which records the data and draws a speed time graph. The software also calculates the acceleration of the car. The Arduino uses four LDRs and the length of the car to calculate its speed and acceleration. The Arduino uses LDRs to sense the light levels above the track, when a car passes over the sensor the sensor senses that it has gone dark and the Arduino times how long it is dark for. The Arduino then calculates the speed by dividing the toy cars length by the time taken to give the speed in m/s.

Setup

  1. Make the Car Track either according to my instructions or using your own specifications.
  2. Wire the Circuit according to the circuit diagram.
  3. You need to edit Line 83 of the Arduino code with the Length of your toy car. This value is used to calculate the speed of the car. IF THIS VALUE IS NOT CORRECT THE SPEED VALUES WILL BE INCORRECT.
  4. Upload Arduino code to the Arduino.
  5. You can use the prebuilt .exe file in the Ready to go folder, if you want to edit the utility you need to use Visual Studio to edit the Visual Studio Files.

Schematics

Breadboard View:

Schematic View:

Screenshots

Utility After Startup:

Device Connected:

Test Running:

Test Results with Graph (The graphs can be saved as image files):

Test Results with Graph and Readout (The Readout can be saved as a text file or copied to the clipboard):

Sample Saved Graph Image:

Sample Saved Readout Text File:
Click for Sample Readout Text File

Car Track

The track is made from a piece of 2x1 (44mm x 22mm) timber that is 1.6 metres long.
The 2x1 is enclosed by a think piece of plywood 5mm thick (The width is not important) and 32mm high. The plywood is used as a guide rail on both sides of the 2x1 and as a stop at the end.
I have marked a Start Line 100mm into the track to release the toy cars from this makes the track 1.5 metres long.
I drilled holes at 460mm, 720mm, 980mm and 1240mm for the LDRs (Every 260mm). This allows the toy car abit of distance to get moving before the first measurement is taken and it also allows space at the end in case the toy car bounces off the stop at the end of the track so that it won't go over the sensor again. If you drill a smaller hole first to allow the leads from the LDR to pass through and then drill a hole the size of the LDR face and its depth it will hold the LDR securly.

Photos
Track and Laptop on my Desk:

Arduino and Breadboard Circuit:

LDR Sensor in Track:

Toy Car on Track:

Credits

Thanks to http://playground.arduino.cc/Csharp/SerialCommsCSharp for the code that I based the serial communication code for the C# application on.

License (MIT)

Copyright (c) 2016 Conor Walsh

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Thanks

Thank you for taking the time to look at this project I hope that it is of use to you,

Conor Walsh.

You can’t perform that action at this time.