race timer
Archiver
Posts: 46,084
I would like to build a race timer using the BS2. I have seen several
examples out there but not specific to my need. I need hundreds of a
second accuracy (0.00) within a 60 second timing interval, timing two
objects at once. I am using a mechanical switch to sense start and an
optic for finish (2 separate systems). Any advice/links for the timing
device would be greatly appreciated. Thanks in advance, Dan
examples out there but not specific to my need. I need hundreds of a
second accuracy (0.00) within a 60 second timing interval, timing two
objects at once. I am using a mechanical switch to sense start and an
optic for finish (2 separate systems). Any advice/links for the timing
device would be greatly appreciated. Thanks in advance, Dan
Comments
I am interested in a race timer such as the one you're building. My
application is for a Pinewood Derby.
You would give me a jump start if you could tell me what switch and optic
devices you are going to use.
I thought the magazine NUTS & VOLTS had an article or two, with code ideas,
on such a timer several years
ago, but am unable to locate it. To be honest with you, it was either NUTS
& VOLTS or somewhere deep on
the Parallax website.
I would be grateful for any information you could send, and I will keep you
in mind should I come across
something.
Best regards,
--Don dbannon@s...
Original Message
From: daniel.d.dangremond@j... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=SHMsHv5iufXcor77Bg5BvEpwz6NDxGHtJVpbocHZe9Aq9tWUjyz71eqe6yEbykrgaTIC7YZRWahTFVI2b4bmnFY]daniel.d.dangremond@j...[/url
Sent: Thursday, March 29, 2001 10:51 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] race timer
I would like to build a race timer using the BS2. I have seen several
examples out there but not specific to my need. I need hundreds of a
second accuracy (0.00) within a 60 second timing interval, timing two
objects at once. I am using a mechanical switch to sense start and an
optic for finish (2 separate systems). Any advice/links for the timing
device would be greatly appreciated. Thanks in advance, Dan
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Nuts & Volts magazine had the article in their
December 1996 issue. You might be able to find the
article on their website http://www.nutsvolts.com.
According to their website it was in the December 1996
issue and I think it was spread out through several
issues.
I hope this helps and good luck.
Thanks
James E. Merritt
--- Don Bannon <dbannon@s...> wrote:
> I thought the magazine NUTS & VOLTS had an article
> or two, with code ideas,
> on such a timer several years
> ago, but am unable to locate it. To be honest with
> you, it was either NUTS
> & VOLTS or somewhere deep on
> the Parallax website.
> I would be grateful for any information you could
> send, and I will keep you
> in mind should I come across
> something.
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/?.refer=text
think that timer circuit would be able to keep track of two separate racers
with two separate starts and stops (it would be great for pinewood
derby's!). I was hoping someone had some experience with a timing chip or
crystal device or something. The tough part is to time two racers
independently. I could do it with two stamps but I was trying to get away
with using one ($$$). I have an off-the-shelf timer which is getting old
and I can't reprogram it. I would eventually like to use VB to create a
nice spreadsheet scorecard.
The start switches are your ordinary normally-open mechanical switches and
the finish switches are optic thru-beam sensors. Thanks, Dan
Hi,
Nuts & Volts magazine had the article in their
December 1996 issue. You might be able to find the
article on their website http://www.nutsvolts.com.
According to their website it was in the December 1996
issue and I ..........
Regards,
--Don
Original Message
From: James Merritt [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=DSPPeRkKyW0JyWHxNbY09RL4n8pT1DMcoflT6-iZ6EXb3tLDdGT7L2eRHA-x4VAESIMyr0ieGplvPUlNGA]jamesem_99@y...[/url
Sent: Thursday, March 29, 2001 2:53 PM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]basicstamps] race timer
Hi,
Nuts & Volts magazine had the article in their
December 1996 issue. You might be able to find the
article on their website http://www.nutsvolts.com.
According to their website it was in the December 1996
issue and I think it was spread out through several
issues.
I hope this helps and good luck.
Thanks
James E. Merritt
--- Don Bannon <dbannon@s...> wrote:
> I thought the magazine NUTS & VOLTS had an article
> or two, with code ideas,
> on such a timer several years
> ago, but am unable to locate it. To be honest with
> you, it was either NUTS
> & VOLTS or somewhere deep on
> the Parallax website.
> I would be grateful for any information you could
> send, and I will keep you
> in mind should I come across
> something.
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/?.refer=text
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Keep in mind that I am a beginner when you read my code [noparse]:)[/noparse] I attached a
bs2 file that I think might work. This code counts how many times the
program loops before the stop gizmo causes the loop counts for finishers 1
and 2 to be recorded in their own variable. I added up the instruction time
and I think this program takes 1/638th of a second to loop. You will need to
add a pause of enough length to make the loop take 1/100th of a second. The
other problem with this code is that if the stop beam is broken for longer
than 1/638th of a second, both values will be recorded when the beam is
broken. You could add a pause to the time1 section and then have the time2
variable modified to remove the same amount. This system will not time
photo-finishes. With a single beam as a stop circuit you will have to have
two distinct breaks of the beam to get two counts.
The 3500 figure in the rctime line is arbitrary.
if you are using a high active state and 5v your formula will look like
this:
(resistance x (capacitance in uF x .000001) x 1.204) / .000002 = rctime
value
Hope this helps.
stop times. A single stamp should be able handle this chore fairly easily
with two separate start and stop circuits as long as both racers start and
stop within 655 seconds of each other.
Thanks for the code. I will have to give it a try. I am a little worried
about relying on the accuracy of using a loop to use as a time base. One
thing I have learned with timing systems is that if anything weird could
happen it will, false starts, double start signals, double finish signals,
etc. One has to keep all this noise in mind. I was hoping someone had
experience with stand alone timing circuits that I could interface with the
stamp. Photo finishes are the reason we have electronic timing systems. :
)
EL-JEFE@prodi
gy.net To: basicstamps@yahoogroups.com
cc:
03/29/2001 Subject: Re: [noparse][[/noparse]basicstamps] race
timer
10:09 PM
Please
respond to
basicstamps
Daniel,
Keep in mind that I am a beginner when you read my code [noparse]:)[/noparse] I attached a
bs2 file that I think might work. This code counts how many times the
program loops before the stop gizmo causes the loop counts for finishers 1
and 2 to be recorded in their own variable. I added up the instruction time
and I think this program takes 1/638th of a second to loop. You will need
to
add a pause of enough length to make the loop take 1/100th of a second.
The
other problem with this code is that if the stop beam is broken for longer
than 1/638th of a second, both values will be recorded when the beam is
broken. You could add a pause to the time1 section and then have the time2
variable modified to remove the same amount. This system will not time
photo-finishes. With a single beam as a stop circuit you will have to have
two distinct breaks of the beam to get two counts.
The 3500 figure in the rctime line is arbitrary.
if you are using a high active state and 5v your formula will look like
this:
(resistance x (capacitance in uF x .000001) x 1.204) / .000002 = rctime
value
Hope this helps.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
(See attached file: TimerExample.bs2)
start / stop times, then doing some math with the results?
Chris
Original Message
From: <daniel.d.dangremond@j...>
To: <basicstamps@yahoogroups.com>
Sent: Saturday, March 31, 2001 12:36 AM
Subject: Re: [noparse][[/noparse]basicstamps] race timer
> EL-JEFE,
> Thanks for the code. I will have to give it a try. I am a little worried
> about relying on the accuracy of using a loop to use as a time base. One
> thing I have learned with timing systems is that if anything weird could
> happen it will, false starts, double start signals, double finish signals,
> etc. One has to keep all this noise in mind. I was hoping someone had
> experience with stand alone timing circuits that I could interface with
the
> stamp. Photo finishes are the reason we have electronic timing systems.
:
> )
>
>
>
> EL-JEFE@prodi
> gy.net To:
basicstamps@yahoogroups.com
> cc:
> 03/29/2001 Subject: Re: [noparse][[/noparse]basicstamps]
race timer
> 10:09 PM
> Please
> respond to
> basicstamps
>
>
>
>
>
>
> Daniel,
>
> Keep in mind that I am a beginner when you read my code [noparse]:)[/noparse] I attached a
> bs2 file that I think might work. This code counts how many times the
> program loops before the stop gizmo causes the loop counts for finishers 1
> and 2 to be recorded in their own variable. I added up the instruction
time
> and I think this program takes 1/638th of a second to loop. You will need
> to
> add a pause of enough length to make the loop take 1/100th of a second.
> The
> other problem with this code is that if the stop beam is broken for longer
> than 1/638th of a second, both values will be recorded when the beam is
> broken. You could add a pause to the time1 section and then have the time2
> variable modified to remove the same amount. This system will not time
> photo-finishes. With a single beam as a stop circuit you will have to have
> two distinct breaks of the beam to get two counts.
>
> The 3500 figure in the rctime line is arbitrary.
>
> if you are using a high active state and 5v your formula will look like
> this:
>
> (resistance x (capacitance in uF x .000001) x 1.204) / .000002 = rctime
> value
>
> Hope this helps.
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
> (See attached file: TimerExample.bs2)
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
is by passing a radio transponder over a wire loop antenna. Each transponder
has its own frequency and the CPU figures out who crossed the line with an
accuracy of 1/100 second.
There are commercially available systems to do this but they're probably
quite pricey unless you can sweet-talk your local R/C club out of their old
setup !
I know you want to build your own - who wouldn't - but it might be worth at
least investigating this avenue for your purposes ?
Good luck !
Justin.
Original Message
From: Chris Anderson [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=blXd5xZvnXjIgAbRxVK8YkEW097AWY_rOfUOURdyyFff9HvSLLxlFCrH3nikEHi2hxHzYaAjxzb-yZRB]fes@g...[/url
Sent: 31 March 2001 00:16
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] race timer
Would it be worth investigating using a real time clock, and logging the
start / stop times, then doing some math with the results?
Chris
Original Message
From: <daniel.d.dangremond@j...>
To: <basicstamps@yahoogroups.com>
Sent: Saturday, March 31, 2001 12:36 AM
Subject: Re: [noparse][[/noparse]basicstamps] race timer
> EL-JEFE,
> Thanks for the code. I will have to give it a try. I am a little worried
> about relying on the accuracy of using a loop to use as a time base. One
> thing I have learned with timing systems is that if anything weird could
> happen it will, false starts, double start signals, double finish signals,
> etc. One has to keep all this noise in mind. I was hoping someone had
> experience with stand alone timing circuits that I could interface with
the
> stamp. Photo finishes are the reason we have electronic timing systems.
:
> )
>
>
>
> EL-JEFE@prodi
> gy.net To:
basicstamps@yahoogroups.com
> cc:
> 03/29/2001 Subject: Re: [noparse][[/noparse]basicstamps]
race timer
> 10:09 PM
> Please
> respond to
> basicstamps
>
>
>
>
>
>
> Daniel,
>
> Keep in mind that I am a beginner when you read my code [noparse]:)[/noparse] I attached a
> bs2 file that I think might work. This code counts how many times the
> program loops before the stop gizmo causes the loop counts for finishers 1
> and 2 to be recorded in their own variable. I added up the instruction
time
> and I think this program takes 1/638th of a second to loop. You will need
> to
> add a pause of enough length to make the loop take 1/100th of a second.
> The
> other problem with this code is that if the stop beam is broken for longer
> than 1/638th of a second, both values will be recorded when the beam is
> broken. You could add a pause to the time1 section and then have the time2
> variable modified to remove the same amount. This system will not time
> photo-finishes. With a single beam as a stop circuit you will have to have
> two distinct breaks of the beam to get two counts.
>
> The 3500 figure in the rctime line is arbitrary.
>
> if you are using a high active state and 5v your formula will look like
> this:
>
> (resistance x (capacitance in uF x .000001) x 1.204) / .000002 = rctime
> value
>
> Hope this helps.
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
> (See attached file: TimerExample.bs2)
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
RMiller94@a... wrote:
>
> Hello Daniel,
>
> I used a 1Khz signal (from a ne555 timer) to create milliseconds. A start
switch tells the BS2 to turn on a 2n2222 transistor to feed a BCD up counter.
The stop switch tells the BS2 to turn off the transistor. The display is a 4
digit 7 segment display (two dual digits). The time is in milliseconds up to
9999.
>
> You could easily use 1 start switch and 2 stop switches feeding two 4 digit
individual displays. I only used a single display.
>
> Richard
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/ter5000
salRMiller94@a... wrote:
>
> Hello Daniel,
>
> I used a 1Khz signal (from a ne555 timer) to create milliseconds. A start
switch tells the BS2 to turn on a 2n2222 transistor to feed a BCD up counter.
The stop switch tells the BS2 to turn off the transistor. The display is a 4
digit 7 segment display (two dual digits). The time is in milliseconds up to
9999.
>
> You could easily use 1 start switch and 2 stop switches feeding two 4 digit
individual displays. I only used a single display.
>
> Richard
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
I built a pine wood race timer using a BS2.
A simple 1KHz pulse stream is fed to a 4 digit BCD up counter. A 2n2222
transistor turns the stream on and off.
I use micro switches to determine start and stop signals. An LED under each
track indicates the winner.
Your time measurement is in milliseconds. It takes less than 9999 milliseconds
for the race.
The kids loved it and we took the best 3 out of 5 races.
I have 3 extras I built up on PCBs that PCB express manufactured for me. If
your are interested you can send me email for more info to
rmille64@b....
Richard
I used a 1Khz signal (from a ne555 timer) to create milliseconds. A start
switch tells the BS2 to turn on a 2n2222 transistor to feed a BCD up counter.
The stop switch tells the BS2 to turn off the transistor. The display is a 4
digit 7 segment display (two dual digits). The time is in milliseconds up to
9999.
You could easily use 1 start switch and 2 stop switches feeding two 4 digit
individual displays. I only used a single display.
Richard
racing. It has to be like this: When I push a button the clock has to
start counting (minutes and seconds), when another button is pushed
the clock has to save the time and then start again from 00 min. and
00 sec. This all has to be made with the bs2, the DS1302 and the BPI-
216L LCD.
Has anyone ever made something like that?
How do connect those things?
And ,most important, does anybody have a program to make this?
Thanks for helping me out!
Thomas
project. You'll have to pull code from other demo files, but here's the
strategy:
1) wait for button 1 to be pressed
2) clear DS1302 minuts and seconds registers to zeros
3) wait for button 2 to be presses
-- scan and display mins/secs?
4) save "segement" time
5) reset DS1302
6) got to step 3
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: thomasvankerkhove [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=dHTVVPn6CUDbmqBJfGd_elLUmLe9TmGzQJUE5oFcHFT32W7_LswnLCVu_ZGcFP4T8olOjp5MadfwpjuM6ZGpf8O6f0A]thomasvankerkhove@h...[/url
Sent: Tuesday, February 24, 2004 11:11 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Race Timer
H E L P H E L P H E L P!!! I have to build a stopwatch for car
racing. It has to be like this: When I push a button the clock has to
start counting (minutes and seconds), when another button is pushed
the clock has to save the time and then start again from 00 min. and
00 sec. This all has to be made with the bs2, the DS1302 and the BPI-
216L LCD. Has anyone ever made something like that? How do connect those
things? And ,most important, does anybody have a program to make this?
Thanks for helping me out!
Thomas
Thanx for your answer. And yes, I have no Stamp experience at all.
Do you have some demo files for me? I'm searching on the net but without
knowing what I'm looking for, if you know what I mean.
Can I also put this on LCD? Is this simple?
Their are some codes that I don't know what they mean, for example: $00. Is
this a code that bs understand and where can I find all those codes?
Thanks again for helping me out.
Regards,
Thomas.
>From: "Jon Williams" <jwilliams@p...>
>Reply-To: basicstamps@yahoogroups.com
>To: <basicstamps@yahoogroups.com>
>Subject: RE: [noparse][[/noparse]basicstamps] Race Timer
>Date: Tue, 24 Feb 2004 12:27:49 -0800
>
>Do you have any Stamp experience at all? If yes, this is an easy
>project. You'll have to pull code from other demo files, but here's the
>strategy:
>
> 1) wait for button 1 to be pressed
> 2) clear DS1302 minuts and seconds registers to zeros
> 3) wait for button 2 to be presses
> -- scan and display mins/secs?
> 4) save "segement" time
> 5) reset DS1302
> 6) got to step 3
>
>-- Jon Williams
>-- Applications Engineer, Parallax
>-- Dallas Office
>
>
>
Original Message
>From: thomasvankerkhove [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=bukSm5reZaFeG6MawIqET2xp6Qw0YEwGtgrr_6cSqgkTUHpjagisjbcdEDvOLp--ZZDFNXddJShFoo3GzSce3m9WO9Ve49S5]thomasvankerkhove@h...[/url
>Sent: Tuesday, February 24, 2004 11:11 AM
>To: basicstamps@yahoogroups.com
>Subject: [noparse][[/noparse]basicstamps] Race Timer
>
>
>H E L P H E L P H E L P!!! I have to build a stopwatch for car
>racing. It has to be like this: When I push a button the clock has to
>start counting (minutes and seconds), when another button is pushed
>the clock has to save the time and then start again from 00 min. and
>00 sec. This all has to be made with the bs2, the DS1302 and the BPI-
>216L LCD. Has anyone ever made something like that? How do connect those
>things? And ,most important, does anybody have a program to make this?
>
>Thanks for helping me out!
>
>Thomas
>
>
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject and
>Body of the message will be ignored.
>
>Yahoo! Groups Links
>
>
>
>
>
_________________________________________________________________
Online gamen ? http://www.msn.be/games/online/
our educator section -- we have many PDF books that will help you and
all have downloadable source code (stuff that will be useful for your
project). At some point, however, you're going to have to buck-up and
write some of your own code. There's lots of good stuff out there, but
it will require tailoring.
-- Jon Williams
-- Parallax
Original Message
From: thomas vankerkhove [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=yAYOuHArShfKOzx4Ye276_8k4Tt2NdXqg4HzZ9iiZNKwMrKADf_94O_N6PoWhdTyAYGRpKhkJxYIe4rkR-Gvc6pryI6F]thomasvankerkhove@h...[/url
Sent: Wednesday, February 25, 2004 2:11 PM
To: basicstamps@yahoogroups.com
Subject: RE: [noparse][[/noparse]basicstamps] Race Timer
Hello Jon,
Thanx for your answer. And yes, I have no Stamp experience at all. Do
you have some demo files for me? I'm searching on the net but without
knowing what I'm looking for, if you know what I mean.
Can I also put this on LCD? Is this simple?
Their are some codes that I don't know what they mean, for example: $00.
Is
this a code that bs understand and where can I find all those codes?
Thanks again for helping me out.
Regards,
Thomas.
>From: "Jon Williams" <jwilliams@p...>
>Reply-To: basicstamps@yahoogroups.com
>To: <basicstamps@yahoogroups.com>
>Subject: RE: [noparse][[/noparse]basicstamps] Race Timer
>Date: Tue, 24 Feb 2004 12:27:49 -0800
>
>Do you have any Stamp experience at all? If yes, this is an easy
>project. You'll have to pull code from other demo files, but here's
>the
>strategy:
>
> 1) wait for button 1 to be pressed
> 2) clear DS1302 minuts and seconds registers to zeros
> 3) wait for button 2 to be presses
> -- scan and display mins/secs?
> 4) save "segement" time
> 5) reset DS1302
> 6) got to step 3
>
>-- Jon Williams
>-- Applications Engineer, Parallax
>-- Dallas Office
>
>
>
Original Message
>From: thomasvankerkhove [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=yAYOuHArShfKOzx4Ye276_8k4Tt2NdXqg4HzZ9iiZNKwMrKADf_94O_N6PoWhdTyAYGRpKhkJxYIe4rkR-Gvc6pryI6F]thomasvankerkhove@h...[/url
>Sent: Tuesday, February 24, 2004 11:11 AM
>To: basicstamps@yahoogroups.com
>Subject: [noparse][[/noparse]basicstamps] Race Timer
>
>
>H E L P H E L P H E L P!!! I have to build a stopwatch for car
>racing. It has to be like this: When I push a button the clock has to
>start counting (minutes and seconds), when another button is pushed the
>clock has to save the time and then start again from 00 min. and 00
>sec. This all has to be made with the bs2, the DS1302 and the BPI- 216L
>LCD. Has anyone ever made something like that? How do connect those
>things? And ,most important, does anybody have a program to make this?
>
>Thanks for helping me out!
>
>Thomas
>
>
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject
>and
>Body of the message will be ignored.
>
>Yahoo! Groups Links
>
>
>
>
>
_________________________________________________________________
Online gamen ? http://www.msn.be/games/online/
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject
and Body of the message will be ignored.
Yahoo! Groups Links
This message has been scanned by WebShield. Please report SPAM to
abuse@p....