title: Arduino Accelerometer mpu6050, No raw data
body: <p>I am working on a project which uses an accelerometer with an arduino Nano. </p>
  
  <p>I am using the MPU6050. However I have the <strong>same static values</strong> wether I move the MPU6050 or not... I only get <strong>-1</strong>. That's really frustrating considering that all the tutorials I have watched achieve to retrieve data. </p>
  
  <p>To begin with, I connected the MPU6050 with the arduino like so :
  <a href="https://i.stack.imgur.com/bbOEI.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bbOEI.jpg" alt="enter image description here"></a></p>
  
  <p>Then I used the official code <a href="https://playground.arduino.cc/Main/MPU-6050#short" rel="nofollow noreferrer">https://playground.arduino.cc/Main/MPU-6050#short</a>
  that is to say this one :</p>
  
  <p><a href="https://i.stack.imgur.com/5UOnH.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5UOnH.jpg" alt="enter image description here"></a></p>
  
  <p>And that's what I get ... </p>
  
  <p><a href="https://i.stack.imgur.com/Krw4s.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Krw4s.jpg" alt="enter image description here"></a></p>
  
  <p>I bought a new one, but I still have the same issue...</p>
  
  <p>If someone has any Idea, I would really appreciate !</p>
  
  <p>Thanks</p>