 unsigned char motor_rph_low_byte = 0;
 int motor_rph = 0;
 
+SerialCommand sCmd;
 
 void setup() {
   EEPROM_readAnything(0, xv_config);

  EEPROM_writeAnything(0, xv_config);
}



const byte EEPROM_ID = 0x99;  // used to validate EEPROM initialized

double pwm_val = xv_config.pwm_min;  // start slow
double pwm_last;
double motor_rpm;

PID myPID(&motor_rpm, &pwm_val, &xv_config.rpm_setpoint,xv_config.Kp,xv_config.Ki,xv_config.Kd, DIRECT);

