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
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Raspberry Pi B+ I2C cannot work
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 14 replies
  • Subscribers 676 subscribers
  • Views 4150 views
  • Users 0 members are here
  • raspberry_pi
Related

Raspberry Pi B+ I2C cannot work

pi-destroyer
pi-destroyer over 9 years ago

My raspberry pi cannot detect device. When I issued command "sudo i2cdetect -y 1", then I will always get:

 

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00:          03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f

10: 10 11 12 13 14 15 16 17 18 19 1a UU 1c 1d 1e 1f

20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f

30: 30 31 32 33 34 35 36 37 38 39 3a UU 3c 3d 3e 3f

40: 40 41 42 43 44 45 46 47 48 49 4a 4b UU UU 4e 4f

50: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f

60: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f

70: 70 71 72 73 74 75 76 77

 

I am not sure it is a hardware or software issue.

 

Can anyone help me on this please?

Thanks.

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

    you do have pull up resistors right......

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • rew
    rew over 9 years ago in reply to Robert Peter Oakes

    Because he's using the raspberry pi with built-in pullup resistors, I very much doubt that he desoldered them. (Nowadays they are hard-to-find as there is no schematic... [update: If you know what you're looking for, you can find them. R23, R24 on the pi3]).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Robert Peter Oakes
    Robert Peter Oakes over 9 years ago in reply to rew

    The built in pullup resistors are part of the BMC chip set and are used for inputs on the GPIO etc. I am not confident that when the pins are used for dedicated I2C that the pullups are enabled as they will be the wrong value probably and in the past I have had to add my own to make it work with some ADC/DAC chips I have tried. + I2C standard calls for open collector operation and the pull ups often will be placed at the end of the line, or several high value ones along the line (No preferred!).

     

    Either way it may be worth putting a couple of 10K pullups to 3V3 to see if it helps. I have yet to have I2C not work fo me when this is done.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • rew
    rew over 9 years ago in reply to Robert Peter Oakes

    The pullups in the chip are usually in the 50kOhm range. Those are insufficient to use as I2C pullup resistors. Most processors configure the pins as "open drain" when using them as I2C, so often not even the internal pullups are active. On both of these things, I don't know the exact facts on the broadcom.

     

    However what I do know for sure is that the raspberry pi PCB has a pullup to 3.3V on both (*) I2C lines. They are R23 and R24 on the raspberry pi 2 and 3, they are the unmarked resistors between the "GPIO" label and the SD card slot on the pi zero, they are documented as being 1.8k on the raspberry pi 1, and they measure as just under (i.e. they could very well be exactly) 1.8k on my pi 3.

     

     

    (*) Actually, I suspect "all four".

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • rew
    rew over 9 years ago in reply to Robert Peter Oakes

    The pullups in the chip are usually in the 50kOhm range. Those are insufficient to use as I2C pullup resistors. Most processors configure the pins as "open drain" when using them as I2C, so often not even the internal pullups are active. On both of these things, I don't know the exact facts on the broadcom.

     

    However what I do know for sure is that the raspberry pi PCB has a pullup to 3.3V on both (*) I2C lines. They are R23 and R24 on the raspberry pi 2 and 3, they are the unmarked resistors between the "GPIO" label and the SD card slot on the pi zero, they are documented as being 1.8k on the raspberry pi 1, and they measure as just under (i.e. they could very well be exactly) 1.8k on my pi 3.

     

     

    (*) Actually, I suspect "all four".

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Robert Peter Oakes
    Robert Peter Oakes over 9 years ago in reply to rew

    Well that is good news then, but in the past I have still had to add pull ups to get things working so next time im doing that I will dig further

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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