alex0andros 0 Posted July 2, 2017 Share Posted July 2, 2017 Hello everyone. I'm a beginner and doing some project with the MSP430 2553. I connected the MMA7455 and used different libraries to get some data, but I'm doing something wrong. Perhaps I use the wrong ports, or the wrong configuration, or I don't know what I'm missing. With the libraries I get to show text in the terminal, but the values are always 0. I would be grateful if someone could help me out, I'm for days on this problem. SCL -> 1.6 SDA -> 1.7 Libraries I used: https://playground.arduino.cc/Main/MMA7455 https://arduino-info.wikispaces.com/accelerometer-MMA7455 Attached is the doc. MMA7455L.pdf Quote Link to post Share on other sites
energia 484 Posted July 4, 2017 Share Posted July 4, 2017 Try Wire.setModule(0) before calling Wire.begin(). Reason is that the standard changed for the wire pins from ping 14/15 to pin 9/10 a while back. You are better off using pins 14/15 on the G2553 though since Wire on pins 9/10 is a software implementation. So use Wire.setModule() before Wire.begin() to allocate Wire to the hardware supported I2C pins. alex0andros 1 Quote Link to post Share on other sites
alex0andros 0 Posted July 5, 2017 Author Share Posted July 5, 2017 Hello, thank you for your answer. I tried this yesterday night and it worked. Today it doesn't work. This thing will drive me crazy, I know it. Nevertheless, your tip was the closest thing I got to getting it work, so I am grateful. Have a nice day. 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.