pulse oximetry and breath sensors.
The exact time measurement when the data is received by the uC, from the two sensors.
Link is below: (In case its not displayed properly, please go to cooking-hacks.com.
According to millis description:
Returns the number of milliseconds since the Arduino board began running the current program.
As I am receiving data from two different sensors, in one program (two analogue ports), there can be a delay due to single thread. (not sure on this 100% though). Or can I be certain that at a particular time, the reading was taken from breath sensor and at the other instance it was taken from pulse oximetry. Pseudo-code below
var alpha = millis();
var dat1 = getDataPulseOxi();
var beta = millis();
var dat2 = getDataBreath();
Now the delay I am talking about is between the execution of 1st instruction and 2nd instruction. Plus the delay which I am in doubt is, getData functions are sending the data to uC continuously. So can I be certain that var aplha will store the time a value is received from Pulse Oximetre and beta will store the time when uC receives a value from breath sensor.
Just to finalize, talking about two delays here. Please let me know, if it makes sense or not.
Yes its purely for research purpose.