and including the lcd library make any sort of delay of a substansial enough value that it could affect the actual response time,
byte test = 10;if(test < 10) test = 20;
int angle = 0;while(angle < 180) Serial.println(sin(angle++/57.295));
unsigned int time = 0; time = micros(); byte test = 10; if(test < 20) test = 20; time = micros() - time; Serial.println(time, DEC); delay(1000);
unsigned int time = 0; time = micros(); int angle = 0; while(angle < 180) Serial.println(sin(angle++/57.295)); time = micros() - time; Serial.println(time, DEC); delay(1000);
Can the arduino actually control outputs that fast, or are there bottlenecks somewhere? Like say for example you had an led or other component that could actually operate that fast, could you actually turn it on for 3 microseconds and back off? Or accurately change the duration a millionth of a second at a time (like from 31 microseconds to 32 microseconds).
Also say you have the most simplest photo flash type code of all, no delays, just a simple "when input #1 is high, make output #1 high". What sort of timeframe does it take for it to actually register the input and produce the output? Is it within the range of mere nanoseconds, or microseconds, or what?
One nanosecond is roughly a light-foot.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16