Shop OBEX P1 Docs P2 Docs Learn Events
I need help with timing loops — Parallax Forums

I need help with timing loops

ArchiverArchiver Posts: 46,084
edited 2003-11-13 05:19 in General Discussion
Hi:

I'm new to stamps. I'm using some infrared sensors connected to my
stamp to control a bank of led lights. I need to keep track of time
between sensors being tripped while the program is still performing
logic to control the lights. Can anyone help me with this? Thank
you.

-Jeff

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-11-13 05:19
    Hi Jeff, I'll take a stab at it, need some details.
    Maybe state mashine approach would do , depending on what you are
    trying to accomplish.

    --- In basicstamps@yahoogroups.com, "jeffaary" <jeffaary@a...> wrote:
    > Hi:
    >
    > I'm new to stamps. I'm using some infrared sensors connected to my
    > stamp to control a bank of led lights. I need to keep track of
    time

    Real time triggers or just relative values you could convert to real
    time later? Either case, what are min max values expected?


    > between sensors being tripped

    Are you also looking for indication of sequence of triggers,
    Is this an ongoing process or just one series of events?




    while the program is still performing
    > logic to control the lights.
    What logic? On and off?

    Can anyone help me with this? Thank
    > you.
    >
    > -Jeff
Sign In or Register to comment.