Rei Vilo 695 Posted November 21, 2017 Share Posted November 21, 2017 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. (To be continued...) Fmilburn, zeke, Frida and 2 others 5 Quote Link to post Share on other sites
Markers 3 Posted April 25, 2018 Share Posted April 25, 2018 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 Quote Link to post Share on other sites
Rei Vilo 695 Posted April 26, 2018 Author Share Posted April 26, 2018 This is a FAQ. Have you started a thread for your specific case? Quote Link to post Share on other sites
Markers 3 Posted April 26, 2018 Share Posted April 26, 2018 Rei, No, I have not started my own thread - is that what is required? Mark Quote Link to post Share on other sites
Rei Vilo 695 Posted April 26, 2018 Author Share Posted April 26, 2018 What about I2C and MMA8452/MMA8451 accelerometer? This thread is about a check list for I²C, not specific cases. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.