[SOLVED] Arduino resetting when disconnected (via Serial USB-link )

Without seeing what you had, it is hard to say if it was correctly used… each “named” timer object can have up to 16 individual timers:

Something to note, having “corresponding” timer points can end up with the occasional “rush hour” of multiple timed functions being simultaneously called… so I tend to space out all my timers accordingly.


// ===== Timer Setup =====
  timer.setInterval(200L, whiteLED);  // White LED button monitor on CodeShield
  timer.setInterval(350L, PingSensor);  // Up Time Widget
  timer.setInterval(450L, SuperCapVoltage);  // Super Cap charge display
  timer.setInterval(650L, PIR);  // PIR motion routine - switched
  timer.setInterval(995L, clockDisplay);  // Time and Date Widget
  timer.setInterval(1600L, AnalogSensors);  // Misc analog sensors on CodeShield
  timer.setInterval(5000L, HeartBeat);  // Heartbeat LED
  timer.setTimer(10000L, StartUpEmail, 1);  // Send Start Up Email, once.
  //  timer.setInterval(15000, reconnectBlynk); // check every 15 seconds if we are connected to the server
  timer.setInterval(20010L, thermTemp);  // Thermistor  on CodeShield
  timer.setInterval(60000L, sendUptime);  // Up Time Widget
1 Like