element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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 Learning to find I2C addresses of sensors for Arduino Due
  • 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 Suggested Answer
  • Replies 16 replies
  • Answers 2 answers
  • Subscribers 395 subscribers
  • Views 2486 views
  • Users 0 members are here
Related

Learning to find I2C addresses of sensors for Arduino Due

rahimmuh3
rahimmuh3 over 9 years ago

Hi! My name is Rahim M. and I am a full time Mechanical Engineering student at South Mountain Community College.

 

I am currently taking a Engineering Special Projects class involving ANSR and ASCEND for a weather balloon experiment.

 

My classmates and myself have chosen to use the Arduino Due microprocessor for our project because of its immense power and versatility as a processor, but just about everyone on our team is ignorant to the knowledge of how to program with Arduino, especially with I2C addresses.

 

If anyone out there can give us advice on how to begin finding and programming with I2C addresses for our Arduino Due, it would be very much appreciated.

 

I understand that finding I2C addresses is a rather complicated task, especially for beginners, but we really need the knowledge of how to do this in a simple manner as soon as possible.

 

I look forward to hearing from everyone!!!

 

Thank you.

 

Rahim M.

  • Sign in to reply
  • Cancel

Top Replies

  • Former Member
    Former Member over 9 years ago +2 suggested
    Rahim; There are a couple of excellent tutorials on tronixstuff.com specifically about using I2C and Arduino. It looks like you've already been to Adafruit, so no need to mention that. http://tronixstuff…
  • Robert Peter Oakes
    Robert Peter Oakes over 9 years ago +2
    Here are a bunch of Videos and Posts I have produced in the past that also use / describe I2C The Modular Bench Power Supply ++, Arduino UNO and precision ADC, DAC + MDO3000 I2C debugging Fuel Tank BoosterPack…
  • Former Member
    Former Member over 9 years ago +1
    In order to program the Arduino Due microprocessor you have to have Arduino IDE 1.5 or later which can be found here: https://www.arduino.cc/en/Main/Software#toc3 After installing Arduino 1.5 or later…
Parents
  • shabaz
    0 shabaz over 9 years ago

    Hi Rahim,

     

    The Wikipedia page for I2C explains that devices are either master or slave.

    The microcontroller on the Arduino Due is a master device usually. It doesn't have an I2C address. I2C addressing is for slave devices.

     

    The usual method is to see what integrated circuits (ICs) require I2C interfacing, and then the addresses can be found in the product datasheets for those ICs. You can just type the IC part number in google to get the datasheets.

     

    Does the Arduino Due have peripheral chips on-board that use I2C? I didn't think that was

    the case, but I'm not familiar with it.

     

    If you're interfacing an I2C device to the Arduino Due, then you need to check the datasheet of the device that you are interfacing.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • shabaz
    0 shabaz over 9 years ago

    Hi Rahim,

     

    The Wikipedia page for I2C explains that devices are either master or slave.

    The microcontroller on the Arduino Due is a master device usually. It doesn't have an I2C address. I2C addressing is for slave devices.

     

    The usual method is to see what integrated circuits (ICs) require I2C interfacing, and then the addresses can be found in the product datasheets for those ICs. You can just type the IC part number in google to get the datasheets.

     

    Does the Arduino Due have peripheral chips on-board that use I2C? I didn't think that was

    the case, but I'm not familiar with it.

     

    If you're interfacing an I2C device to the Arduino Due, then you need to check the datasheet of the device that you are interfacing.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • rahimmuh3
    0 rahimmuh3 over 9 years ago in reply to shabaz

    Thank you for your advice shabaz! Well, myself being very inexperienced with Arduino programming and the hardware itself, I really do not know that much about on-board peripheral chips. Right now, the main issue for us is learning the process of Reading and Writing from our I2C senors to our Arduino Due microprocessor, of basically setting up the code for the sensors and microprocessor to communicate.


    Any advice on this would be greatly appreciated.


    Thank you.

     

    Rahim M.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 9 years ago in reply to rahimmuh3

    Hi Rahim,

     

    Sorry for the delayed response (travelling), hopefully you have all the information you need now though from the other responses too.

    Personally I found the I2C specification (publicly available on the Internet) very useful to read, it provides details if you need to implement it from scratch. Ordinarily you don't need to do this, because you have something

    known as an application programming interface (API) so existing code or hardware does the detail of it for you.

    I2C is a very simple protocol, but is quite popular for interfacing basic devices/sensors, and the detail is useful to know for troubleshooting purposes too, even if you use an API.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
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