title: Send data from Arduino to Pi over serial communication
body: <p>What is the problem and why do we need to do this?</p>
  
  <p>I recently purchased an MPU6050 breakout board. I tried it with my Arduino Uno, and with my Raspberry Pi 3.</p>
  
  <p>It gives this weird output with Raspberry (without any motion / in stable condition)!</p>
  
  <pre><code>InvenSense MPU-6050
  Rpi start 2018
  Output range : 68, error = 0
  control ratio : 0, error = 0
  
  MPU-6050
  Read accel, temp and gyro, error = 0
  accel x,y,z: 1944, 368, 15608
  temperature: 30.576 degrees Celsius
  gyro x,y,z : -34, -204, -247, 
  
  MPU-6050
  Read accel, temp and gyro, error = 0
  accel x,y,z: 1952, 364, 15304
  temperature: 30.435 degrees Celsius
  gyro x,y,z : -38, -216, -274, 
  
  MPU-6050
  Read accel, temp and gyro, error = 0
  accel x,y,z: 1864, 388, 15356
  temperature: 30.482 degrees Celsius
  gyro x,y,z : -34, -233, -278, 
  
  MPU-6050
  Read accel, temp and gyro, error = 0
  accel x,y,z: 1888, 324, 15260
  temperature: 30.576 degrees Celsius
  gyro x,y,z : -14, -220, -261, 
  </code></pre>
  
  <p>Similarly, I have tried with Arduino, and it's working fine.</p>
  
  <pre><code>MPU-6050
  Read accel, temp and gyro, error = 0
  accel x,y,z: 1, 4, 1
  temperature: 30.4 degrees Celsius
  gyro x,y,z : -3, -15, -7, 
  
  MPU-6050
  Read accel, temp and gyro, error = 0
  accel x,y,z: 1, 4, 1
  temperature: 30.4 degrees Celsius
  gyro x,y,z : -3, -15, -7, 
  
  MPU-6050
  Read accel, temp and gyro, error = 0
  accel x,y,z: 1, 4, 1
  temperature: 30.5 degrees Celsius
  gyro x,y,z : -3, -15, -7,
  </code></pre>
  
  <p>Now, I got a proper reading from Arduino. Here is the problem!</p>
  
  <p>I don't know how to sent proper data from Arduino to pi (USB Serial communication).</p>