Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading Accelerometer Data from SensorTag CC2650 #491

Open
goru89 opened this issue Jul 8, 2022 · 0 comments
Open

Reading Accelerometer Data from SensorTag CC2650 #491

goru89 opened this issue Jul 8, 2022 · 0 comments

Comments

@goru89
Copy link

goru89 commented Jul 8, 2022

I am working on a project which involves reading accelerometer data from the SensorTag using Python script from Raspberry PI. I am using BluePy library to do the same. But it seems the data I am fetching is wrong after conversion to 'g' terms when I compare with the data I get on smartphone (which seems to be right). So, I just wanted to confirm I am doing everything right. I am referring

https://usermanual.wiki/Document/CC265020SensorTag20Users20Guide2020Texas20Instruments20Wiki.2070227354.pdf

I would need confirmation for three things :

  1. Because I need only Acclerometer Service with 16G, I am writing (00011101 11000000) or 0x1D,0xC0 as byte array to confirguration ( f000aa82-0451-4000-b000-000000000000) based on the table given below. Is this right ?

image

  1. Secondly, I am receiving a packed bytes data as raw value and I am unpacking this as struct.unpack( '<hhhhhhhhh',val ) and I am taking the [3],[4] and [5] elements of this unpacked array ( h is 2 bytes each ) as x-axis , y axis and z- axis.

  2. Third, each of the axis values are converted to g using the equation ( axis*1.0 ) / ( 32768/16 ) .

Can someone help me and let me know if I am heading the right way. I had been stuck on this for a week. Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant