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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×