I have an IMU sensor (MPU 6050) connected with arduino UNO. Pin maps are as follows:
MPU6050 --> Arduino
Vcc --> Vcc
Gnd --> Gnd
SCL --> A5
SDA --> A4
(Not using any pull up resistors)
I am using jeff rowberg's MPU6050 library to get data from sensor. To test the sensor, I am using the raw value example sketch from the library. I am getting readings for both the accelerometer and the gyroscopes.
The problem is after some time the serial monitor just stops printing data. I have tried to figure it out but have not succeeded in solving the problem. It could be due to one of two reasons:
- The MPU6050 stops giving sensor values
- There is a problem with the serial monitor
As far as I have figured, the sensor is giving values because when I restart the serial monitor, the data starts to print again on the serial monitor and stops printing after same duration of time as it did before restarting the monitor.
I have tried the serial monitor of the arduino IDE and hyperterminal. In both cases the data stops printing after some time.
Any idea, what causes the serial monitor to stop printing data? Is it the sensor or the serial monitor?
Help would be greatly appreciated. Thanks in advance.