Instructions
IDUINO for maker’s life
www.openplatform.cc 65
lastShockTime = millis(); // record the time of the shock
if (!bAlarm){
Serial.println("IDUINO Shock module");
bAlarm = true;
}
}
else
{
if( (millis()-lastShockTime) > shockAlarmTime && bAlarm){
Serial.println("no alarm");
bAlarm = false;
}
}
}
******Code End******
Module24: Rotary Encode Module (SE055)
1 Introduction
Rotary encoder is a rotary input device (as in knob) that provides an indication of how
much the knob has been rotated AND what direction it is rotating in.It’s a great device for
stepper and servo motor control. You could also use it to control devices like digital
potentiometers.