element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Help with a ardiuno and gyroscope
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 1 reply
  • Subscribers 401 subscribers
  • Views 291 views
  • Users 0 members are here
  • mpu-6050
  • i2c
  • help
  • gyroscope
  • arduino
Related

Help with a ardiuno and gyroscope

Former Member
Former Member over 11 years ago

I am building a measuring tool for school project and have found this tutorial

Arduino Playground - MPU-6050

I am new to arduino this being my first project, and i have never worked with a I2C bus before.

I looked on videos on youtube, looked in the data sheet for the arduino, and gyroscope, and I have read a loot about how I2C works (I think i got how it works but there maybe something i still don't get)

I hooked the MPU ground to the arduino ground. the Vcc too the Vcc, and the SCL on the gyroscope to analog input 4, and the SDA to analog input 5.

So for using the code from the tutorial i can get a response from the arduino but it looks like this

image

It constantly shift between 2 different reads. (seen top and bottom of the picture). Fx the temperature would constantly shift every other read from 69 degrees to 75 degrees. (which was no way the right read)

At some point it would shift the numbers it changed between. the temperature started with 24 to 36 degrees, but the pattern was the same, a constant shift between to numbers.

This even continued after I unplugged all the wires, so the arduino was no longer in contact with the gyroscope, this makes me to believe the problem is around the sending/receiving code or I2C connection.

If anyone would like to help me or understand what i am missing from the tutorial/I2C setop i would realy like your help.

  • Sign in to reply
  • Cancel
Parents
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago

    See my reply in your other question, quite possibly the same answer fixes here too

     

    I2C connection problems

     

    The article you link to uses a slightly different version of a breakout board that has the connection made for you, the spark-fun board does not so you need to connect the VIO pin to VDD (3.3V) for correct operation.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago

    See my reply in your other question, quite possibly the same answer fixes here too

     

    I2C connection problems

     

    The article you link to uses a slightly different version of a breakout board that has the connection made for you, the spark-fun board does not so you need to connect the VIO pin to VDD (3.3V) for correct operation.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube