I am running Jeff Rowbergs code on the MPU6050 and there is this one line saying
// initialize serial communication // (115200 chosen because it is required for Teapot Demo output, but it's // really up to you depending on your project) Serial.begin(115200); while (!Serial); // wait for Leonardo enumeration, others continue immediately mpu.initialize();
in the initialization of the sensor. I need to have the code running without opening the Serial monitor. Is there a workaround on this?
I want to restart the Arduino without opening the monitor(It should be stand alone) if the sensor code crashes(Which it does sometimes).
I have the Arduino Yun.