[Solved] Time elapsed since event triggered
i having trouble measuring amount of time has passed since event has occurred. i thought understood how use millis() function measure elapsed time, not. i trying measure amount of time has passed since voltage value strain gauge greater "activationvoltage" (which determined using potentiometer). if elapsed time greater specified interval value, want event occur. please @ code below , let me know doing wrong. thank you. code: [select] // transmitter code #include <virtualwire.h> int elapsedtime; int interval = 1000; unsigned long previousmillis; void setup() { serial.begin(9600); // debugging only serial.println("setup"); // initialise io , isr vw_set_ptt_inverted(true); // required dr3100 vw_setup(2000); // bits per sec vw_set_tx_pin(3); pinmode(8, input); } void loop() { char *msg; ...