dymnz / sEMG

27 stars 12 forks source link

MPU-9250 Roll/Pitch + sEMG ADC #45

Open dymnz opened 6 years ago

dymnz commented 6 years ago

sEMG ADC

teensy3.2 ADC is 3.3v tolerant


MPU angle

dymnz commented 6 years ago

Calibration value:

    magBias[0] = 126.0  * mRes * magCalibration[0]; // save mag biases in G for main program
    magBias[1] = 33.0   * mRes * magCalibration[1];
    magBias[2] = -86.0  * mRes * magCalibration[2];
    magScale[0] = 1.0286195;
    magScale[1] = 0.983897;
    magScale[2] = 0.98867315;

Fusion rate ~400Hz, Gyro rate 200 Hz (writeByte(MPU9250_ADDRESS, SMPLRT_DIV, 0x04);). Yaw drifts

https://github.com/kriswiner/MPU9250/issues/25#issuecomment-299027763

3) insufficient fusion rate--> fusion rate needs to be minimum 4-5x of gyro sample rate, 200 Hz gyro rate means >1 kHz fusion rate

Changed Gyro rate to 100 Hz, Fusion rate ~600Hz. Yaw slow to settle (>10s). May need >1kHz fusion rate @ 200Hz gyro

dymnz commented 6 years ago

Not needed for separate FLX/EXT PRO/SUP test

dymnz commented 6 years ago

float GyroMeasError = PI * (10.0f / 180.0f);

dymnz commented 6 years ago

Issue