Event Counting
DataJ
Posts: 23
We have been working on an HO Switching Display which has a mainline,·three turnouts leading to two sidings, and 5 IR Detector/Receiver combinations.· Direction control is handled by an·"H" Bridge.
It seems to me that the key issue to controlling the operation is·by counting the events.· (As each
event increments·this would step the program to the next sub-routine or branch.)
I·have been through all the Parallax publications and located "Counting Events" on page 105 of the
Stamp Works Manual and this appears to be the general idea.
I have attached the code I have written so far, but·the Stamp runs so fast that·counts occur so
quickly that the·program is completed for anything begins.
Any resource information or link would be appreciated.
Thank you,
It seems to me that the key issue to controlling the operation is·by counting the events.· (As each
event increments·this would step the program to the next sub-routine or branch.)
I·have been through all the Parallax publications and located "Counting Events" on page 105 of the
Stamp Works Manual and this appears to be the general idea.
I have attached the code I have written so far, but·the Stamp runs so fast that·counts occur so
quickly that the·program is completed for anything begins.
Any resource information or link would be appreciated.
Thank you,
Comments
You can always slow down your program by putting in pause statements.
Also·brush up on definition, usage and syntax of subroutines.
PS I prefer Z scale.
Cheers Vaclav
PS.· I also have an N-scale set up for Christmas - - I can't see it!! - - Z Scale is microscopic, but I like the space required.
Unfornately, all·this small stuff, whether trains or RC aircraft needs better sight than I have now........
Jim