Reading/interpreting tach signals from treadmill (speed/incline)

  rpm = 60*(1000000/time);

Had rpm set as float in one of my last test when converting. Decided print the full value but forgot to change the type.

  time = (micros() - time_last);
  time_last = micros();

Bad copy/paste job from: Arduino Tachometer - Software | PyroElectro - News, Projects & Tutorials

Good catches both but even with those changes I seem to get some crazy readings. For instance, sensorInterrupt isn't even called until I push to what I'm assuming is close to 4 mph.

  • thanks