This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

XY coordinates

In using the Thingy52 I can't figure out how to just get the just XY coordinates from the motion sensor - or any other sensor.  I'm trying to figure out if I can capture motion from the thingy. Any ideas? 

I've tried to understand the following to no avail:

  • Looking at the xyzw elements in the quaternionorientation and can't figure out how to just translate xy values
  • Looking xyz elements in the gyroscope, I don't think this will give me what I'm looking for
  • The accelerometer or compass will definitely not give me what I'm looking for.

Any ideas? Is this even possible with the thingy or should I be looking at something else.

Thx!

Smithy

Parents
  • What I can't figure out is how to display the gyroscope data to some kind of coordinates.

    For example -  this is the gyro data that I captured when pulling the thingy on just one axis. How can I convert this to XY and convert it into an image?

    gyroscope, -0.19189453125, -0.24072265625, 0.05224609375, unit: "deg/s"

    gyroscope, 0.0283203125, -0.0146484375, 0.00830078125, unit: "deg/s"

    gyroscope, -0.0927734375, 0.03515625, -0.19677734375, unit: "deg/s"

    gyroscope, -0.1787109375, 0.0732421875, 0.193359375, unit: "deg/s"

    gyroscope, -0.07177734375, 0.0673828125, 0.16943359375, unit: "deg/s"

    gyroscope, -0.06982421875, 0.0703125, 0.13818359375, unit: "deg/s"

    gyroscope, 0.05908203125, 0.05908203125, 0.1171875, unit: "deg/s"

    gyroscope, 0.0712890625, 0.04541015625, 0.00146484375, unit: "deg/s"

    gyroscope, 0.01513671875, -0.044921875, 0.05419921875, unit: "deg/s"

    gyroscope, 0.01025390625, 0.07421875, 0.025390625, unit: "deg/s"

    Thx!

    Smithy

  • The gyroscope values you post are the x, y, z values, but these are rotation values for each of the 3 axes of the gyroscope. I'm not sure if they can be converted into the XY plane in an image directly like it sounds like you want. 

    If you want to track movement, I believe that accelerometer data is the best option. You need to do some calculations on the acceleration values to convert this into how far you have moved in the XY plane. We do not provide libraries for doing this, but you may get DSP libraries from the sensor manufacturer that can provide this for you.

Reply
  • The gyroscope values you post are the x, y, z values, but these are rotation values for each of the 3 axes of the gyroscope. I'm not sure if they can be converted into the XY plane in an image directly like it sounds like you want. 

    If you want to track movement, I believe that accelerometer data is the best option. You need to do some calculations on the acceleration values to convert this into how far you have moved in the XY plane. We do not provide libraries for doing this, but you may get DSP libraries from the sensor manufacturer that can provide this for you.

Children
No Data
Related