I2Cdevlib Forums

# immunity

Members

3

done
2. ## acceleration in m/s^2

Dont know if what i am saying is correct but You get outpu X Y Z ( 3 axis) 2 bytes for each axe each value ( 2bytes) is signed so you convert them to -32768 till +32768 depend on your scale ( -+2G 4G 8G 16G) you divine your output. for example for 16G you divine output/2048 (if you have stable the sensor Z axe will show you 1 gravity , so if it show you 2048 the accelerometer is on +-16G mode) You get samples in internal, if you get every 0.001sec you -> velocityZ =accelerationZ*0.001*G => velocityZ=accelerationZ*0.001*9.8 G=9.8m/s2 But Sensor are not accurate your sample interal is not enough so the velicity probably will be far from real (and distance quad far )
3. ## Newbie help with raw data (mpu6050 with CC2541 and BLE)

Hello, i have bought this one http://www.aliexpress.com/snapshot/6275887994.htmlto start experiment with accelerometer/gyroscope althought i am able to measure temperature and air pressure BMP180 (as article suggest) - BIG endian 4 bytes for temp 4 bytes for air pressure. I have problem on understanding the values from mpu6050. While article is talking about BIG endian of 14 bytes the characteristic return 20 bytes from mp6050 Experiment : I left sensor still and then I tried to move it left and right (probably on angle so ax and ay will have changes) my raw data is ax ay and az must be correct ?(Z measured the gravity 2042 points /2048 -> 0.99g) high value of ax and ay like 64769 is negative (-65536 ) = -767 Dont know if my speculations are correct, but anyway i cant figure out which bytes are gyroscope (i tried another expirement with only rotation around z axis and ...) Anyone could help? thank you very much Bluetooth read :64 00 6D 00 FA 07 FF FF 00 00 00 00 EA 2B 1D 00 E6 FD 7E D1 ax ay az aTemp gx gy gz sensor is still 100 109 2042 0 29 64998 53630 65 00 6C 00 FB 07 00 00 FF FF 00 00 EB 2B 1A 00 D8 FD 7F D1 ax ay az aTemp gx gy gz sensor is still 101 108 2043 0 26 64984 53631 71 03 01 FD 6B 08 CD FF E3 FF 33 00 70 2C 3C FF 3A 00 F3 D1 ax ay az aTemp gx gy gz sensor move left right 881 64769 2155 0 65340 58 53747 E8 01 D4 FC 98 07 C9 FF CC FF B6 FF CC 2D 21 EA 0E 0B 9C DA ax ay az aTemp gx gy gz 488 64724 1944 0 59937 2830 55964 58 FE EF FE 4E 06 1F 00 FF FF D3 FF 97 26 D3 F6 FE 03 EF CD ax ay az aTemp gx gy gz 65112 65263 1614 0 63187 1022 52719 CD FE 90 FE 00 08 04 00 0F 00 F8 FF 48 23 01 F9 1E 03 28 CB ax ay az aTemp gx gy gz 65229 65168 2048 0 63745 798 52008 AD 00 85 00 F0 07 00 00 00 00 00 00 86 2A 8E FF C6 FC 47 D0 ax ay az aTemp gx gy gz sensor is still 173 133 2032 133 65422 64710 53319 AE 00 86 00 F1 07 00 00 00 00 00 00 87 2A 91 FF C7 FC 48 D0 ax ay az aTemp gx gy gz 174 134 2033 134 65425 64711 53320 AE 00 85 00 F3 07 00 00 00 00 00 00 88 2A 93 FF C7 FC 49 D0 ax ay az aTemp gx gy gz 174 133 2035 135 65427 64711 53321 myfile.txt
×