• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Low Power RF & Wireless Connectivity » Bluetooth® Applications » eZ430-RF2560 accelerometer data issue
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

eZ430-RF2560 accelerometer data issue

eZ430-RF2560 accelerometer data issue

This question is answered
Won-Jae Yi
Posted by Won-Jae Yi
on Apr 18 2012 14:23 PM
Prodigy130 points

I'm using eZ430-RF2560 and collect accelerometer data through Bluetooth.

I see unusual data activity on the accelerometer data.

It is as follows:

received data => ID : 7A:40		x : 1.0	y : 56.0	z : 0.0
received data => ID : 7A:40 x : 1.0 y : 56.0 z : 0.0
received data => ID : 7A:40 x : 0.0 y : 56.0 z : 2.0
received data => ID : 7A:40 x : 1.0 y : 56.0 z : 0.0
received data => ID : 7A:40 x : 0.0 y : 56.0 z : 2.0
received data => ID : 7A:40 x : 1.0 y : 56.0 z : 0.0
received data => ID : 7A:40 x : -128.0 y : 55.0 z : 1.0 <-- X jumps
received data => ID : 7A:40 x : -128.0 y : 55.0 z : 1.0 <- x jumps
received data => ID : 7A:40 x : -1.0 y : 55.0 z : 1.0
received data => ID : 7A:40 x : -1.0 y : 55.0 z : 1.0
received data => ID : 7A:40		x : 1.0	y : 55.0	z : 0.0
received data => ID : 7A:40 x : 0.0 y : 55.0 z : 0.0
received data => ID : 7A:40 x : 127.0 y : 55.0 z : 1.0 <<- X jumps
received data => ID : 7A:40 x : 1.0 y : 55.0 z : 0.0
received data => ID : 7A:40 x : 0.0 y : 55.0 z : 0.0
received data => ID : 7A:40 x : 0.0 y : 55.0 z : 0.0

while testing this data collection, I did not move the board but had it stabilized on the desk and I see a spike going wild from 0 to 127, and 1 to -128.
I do not understand this behavior of the board. 8bit accelerometer (CMA3000) on-board should generate data between -128 ~ +127.
However, -128, +127 could be 0s in this case. But there's no clear way of explaining it why.
Please explain why this is happening. Thanks in advance...
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Miguel
    Posted by Miguel
    on Apr 18 2012 17:49 PM
    Suggested Answer
    Genius11535 points

    Won,

    I would recommend looking at the CMA3000 Errata. From the application perspective, the accelerometer app is just reading the value straightforward from the CMA3000.

    Regards,

    Miguel

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Won-Jae Yi
    Posted by Won-Jae Yi
    on Apr 19 2012 11:23 AM
    Prodigy130 points

    Miguel,

    Thanks for the information. I personally contacted VTI for this particular issue.

    It maybe the ADC's issue since it's only a 8-bit accelerometer.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Miguel
    Posted by Miguel
    on Apr 19 2012 11:46 AM
    Genius11535 points

    Do you mean the CMA3000 ADCs, right?

    Rgds,

    Miguel

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Won-Jae Yi
    Posted by Won-Jae Yi
    on Apr 19 2012 11:50 AM
    Verified Answer
    Verified by Miguel
    Prodigy130 points

    Yes, that's what I'm guessing. If on the application itself does not have any issue (I agree with you that it is only just receiving what's coming in), it must be the CMA3000 generating odd numbers.

    Also, when i test with the sample keyboard event generator application from TI, the received x and y axis data jumps around.

    The result above is after when I reconfigured the function by removing all scaling statements in IAR workbench.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • srisenthilkumar chandrasekaran
    Posted by srisenthilkumar chandrasekaran
    on Apr 22 2012 06:57 AM
    Intellectual425 points

    Hi Won-Jae Yi,

    Hal_accl.c file reads 8 bit accelerometer (register thorugh i2c) value and then convert into 16 bit value by using halAccRawAdjust function call.

    Initially you could comment out this function call and verify the accelerometer raw values. normally + or - 10 could be resolution.

     

    Regards

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Won-Jae Yi
    Posted by Won-Jae Yi
    on Apr 23 2012 11:36 AM
    Prodigy130 points

    Hello,

    Unfortunately, I don't think you and I are looking at the same sample application. I'm using ez430-accl sample project file given from TI and does not have halAccRawAdjust function in anywhere in this project.

    I am aware of the bit conversions and I'm still thinking this is the cause.

    However, I adjusted sampling rate of the accelerometer from 400Hz to 100Hz, and the weird value does not appear. (STRANGE!!)

    VTI personnel informed me that this device (CMA3000-D01) has an ASIC design bug that if data read is not synchronized with the interrupt signal, which causes I2C bus deliver data corruption.

    The odd value is only produced when a axis value is close to 0s. (thus, when the sensor is in stable condition)

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Miguel
    Posted by Miguel
    on Apr 24 2012 23:07 PM
    Genius11535 points

    Won,

    The accl app is reading the accl data in polling mode. You will need to change the hal if you need an interrupt-based approach.

    Regards,

    Miguel

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use