• ProgrammingGo

    Hi I have a question based on the Bluetooth communication between Ti Sensortags and Pythonista.
    Since I can send only max 20Bytes per packets with the sensor tag, I gave a look in the firmware of the Boards and there was a way to increase the MTU Size what I apparently did. --> This is the link of Ti where it was described: https://e2e.ti.com/support/wireless-connectivity/bluetooth/f/538/t/885399

    But how they are describing there I need an MTU exchange request. It means not only the Sensortag needs to have this but as well the phone. I tried it but I cannot receive the extended data package. Do you know how to do it on the iPhone with pythonista?

    posted in Pythonista read more
  • ProgrammingGo

    okay, I will give a trial. What for me is unclear is how I can map the sensor values to the graphic. I mean I know that I have a referential coordinate system and based on that my sensor is moving, but it is not clear how to do it.

    posted in Pythonista read more
  • ProgrammingGo

    @cvp Hi cvp thank you soo much. I will give a look on that. Thank you for your time. If I will have questions I will write here. I am thinking that it would be better to use quaternions instead of euler angler to avoid gimbal lock. I think there should be a lib for that, right?

    posted in Pythonista read more
  • ProgrammingGo

    Hi guys, thank you soo much for your support. I need some time to go through the code, because I want to understand it. Thank you soo much and don't worry @cvp it is perfectly okay.

    posted in Pythonista read more
  • ProgrammingGo

    Okay thank you soo much! Could I display human body as well?

    posted in Pythonista read more
  • ProgrammingGo

    I know how to get the data, the problem is how to do the animation. Or what do you mean by problem with the data?

    posted in Pythonista read more
  • ProgrammingGo

    Hi thank you for your feedback,
    I want to depict a cube that is moving based on the incoming data from the wearable sensor. Maybe I could use Euler angles and Quaternions. I think it should be 3d. An example of something similar to that I want to do is this video: link text

    posted in Pythonista read more
  • ProgrammingGo

    Hi,

    I wanted to ask if they are any examples of how to make up an animation moving based on incoming orientation data that is sent via Bluetooth from a wearable sensor?

    I tried to use pygame but it did not work? I checked scene but it looks like it is not the right one.

    posted in Pythonista read more
  • ProgrammingGo

    Hi,

    I am using several CC2650 STK and I wanted to use kafka (producer and consumer) for data stream processing. I was trying to integrate the producer and consumer in the app, but it seems to me that I need to use threads to use Producer and Consumer simultaneously in the same app to be able to sending data to kafka and listening for answers. I was trying to separately implement them (two different apps) and it worked, but bundle them together I need to use threads. My problem is that looking at the given Sensortag example a delegate is used, so creating to classes and use threading is not working. Do you know how I can get solve the problem?

    posted in Pythonista read more
  • ProgrammingGo

    Hi, I tried out to set up 16g range to the accelerometer, activating only accelerometer with range of 16g like the following: bytes([0b00111000, 0b00000011] and the to convert the raw data I used the formula stated in the wiki of TI: http://processors.wiki.ti.com/index.php/CC2650_SensorTag_User's_Guide#Movement_Sensor

    ---> v = (raw(data * 1.0) / (32768/16) for every axes and the output seems to be not right because in static position I get the following values for x, y, z: 1.9414, 0.0786, 0.225. Normally the first value(x) should be around 0.981. When I am changing the configuration to bytes([0b00111000, 0b00000010] which should be 8G range and use the following formula: v = (raw(data * 1.0) / (32768/8) then seems to be correct and in static position I have following values: 0.920 , 0.005, 0.200. Do you know what is the problem? I checked the formula and the settings but it should be right. The problem is well known, but not solved , See here: https://evothings.com/forum/viewtopic.php?t=1875

    https://github.com/sandeepmistry/node-sensortag/issues/62

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!