Shop OBEX P1 Docs P2 Docs Learn Events
timing — Parallax Forums

timing

smandersonsmanderson Posts: 2
edited 2006-06-07 03:23 in Learn with BlocklyProp
As a final engineering project, we are making a track that will time and calculate the velocity of mousetrap race cars. The track has a series of lasers hitting photoresistors, which are tied into a BOE board. Every time a laser is blocked by a car, we should be able to measure a voltage change (and we can). Since the velocity measurements will be feet/second, we need a way to accurately measure the time between voltage changes in seconds (or some other fairly absolute measure of time). Since we have to mark the time exactly when the voltage changes, pause and count do not seem to be viable alternatives. Does anyone have an alternate way of measuring the time between two events in absolute terms using the BOE? (Oh, and using count and dividing the total time by the number of changes will not work, since we want the max velocity, not an average). Thanks in advance for any help.

Comments

Sign In or Register to comment.