Jump to content
Rei Vilo

I²C Check-List

Recommended Posts

Quote

 

My I²C device doesn't work with Energia but works on Arduino...

 

Check the usual suspects:

  • Is the I²C bus initialised?
Wire.begin();
  • Does the I²C device run at 3.3V?

Otherwise, use a logic-level converter.

  • Are pull-ups installed?

Try 10, 4.7 or 2.2 kΩ for the SDA and SCL lines.

  • In case the LaunchPad provides multiple I²C ports, is the correct port selected?

Try 

    Wire.setModule(0); // or other port number
    Wire.begin();
  • Still nothing?

Use a logic analyser to trace the signals on the I²C port.

3647962_orig.png.2be967c277e17425d32687c8ac9b3b04.png

(To be continued...)

Share this post


Link to post
Share on other sites

Hi Rei,

Thanks for your response.  I have visited that link many times but the info is a bit sparse, and has not helped me.

Do you have any more specific advice please?

Thanks,

Mark

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...