Time measurement
I connected an IR detector to my basic stamp and I’m using an infrared emitting LED to send messages to the detector·also using the·basic stamp, but I want to measure the time it takes per sending/receiving loop. So how do I measure how long it takes for an IR message to be sent and received ?
Comments
For the case you mentioned, you need to couple the send/receive loops so, as soon as the detector sees an IR message, the sending routine stops and when the detector stops seeing the IR message, the sending starts up again. What you're mostly measuring is the response time of the IR detector.
One does all the IR stuff, the other just counts the time between the signal to send the IR message and the time the first one says "Okay, got it".
[noparse][[/noparse]I haven't done anything like this - just speculating aloud, and waiting for the smarter/more experienced folks to step in]