Shop OBEX P1 Docs P2 Docs Learn Events
F3F RC slope racing timer — Parallax Forums

F3F RC slope racing timer

rpleymrpleym Posts: 2
edited 2008-04-30 04:11 in BASIC Stamp
Hello

I'm planning a project to make a timing system for F3F competition. This is a RC glider slope racing competition, where you basically set up a course which is 100 m long, and fly back and forth in this course 10 times as fast as you can. In each end of the course there is a referee who pushes a button when the plane passes him, which sounds a buzzer behind the pilot so that he knows when to turn.

What I want to make is a timer that starts when the first button is pushed (referee 1), then counts laps and stops when referee 1 is passed again·at the end of·the 10'th lap.·I also need a simple LCD display of course, to display the results.

I was thinking I could do this with a BS1 with an external timer chip, but I'm not sure. Any tips would be greatly appreciated [noparse]:)[/noparse]

Which timer chip should I use? I need about 1/10·sec resolution I think

- Richard Pleym

Comments

  • rpleymrpleym Posts: 2
    edited 2008-04-29 06:23
    I'm having trouble finding a RTC chip that can give 1/10 and 1/100 sec which isn't surface mounted, any hints?
    ·
  • ercoerco Posts: 20,259
    edited 2008-04-30 04:11
    You can do it just using the BS1 and calibrated timing loops, without any external RTC.

    Your code will have several nested for-next loops (maybe with short pauses) that count the seconds and minutes. You'll experimentally determine the loop size by comparing with a real stopwatch. Depending on the total timing interval, you could calibrate it within reasonable limits, perhaps 1/10 second. You'll have if-then statements monitoring the pushbutton inside your loops. Write your code so that your loop execution speed doesn't change if & when·the button is pressed, and wait to output data to a serial LCD until your timing is finished.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·"If you build it, they will come."
Sign In or Register to comment.