
But ITG3200 and BMA020 are turbulent, does not help tuning PID. I tried 1_7, dev0529 and dev0607.
I've spent with it for several weeks without result.

You advise someone what is wrong?
Code: Select all
void i2c_Gyro_init() {
delay(100);
i2c_rep_start(0XD0+0); // I2C write direction
i2c_write(0x3E); // Power Management register
i2c_write(0x80); // reset device
delay(5);
i2c_rep_start(0XD0+0); // I2C write direction
i2c_write(0x16); // register DLPF_CFG - low pass filter configuration & sample rate
// i2c_write(0x1D); // 10Hz Low Pass Filter Bandwidth - Internal Sample Rate 1kHz
// i2c_write(0x19); // 188Hz Low Pass Filter Bandwidth - Internal Sample Rate 1kHz
i2c_write(0x18); // 256Hz Low Pass Filter Bandwidth - Internal Sample Rate 8kHz
i2c_rep_start(0XD0+0); // I2C write direction
i2c_write(0x3E); // Power Management register
i2c_write(0x01); // PLL with X Gyro reference
delay(100);
gyroPresent = 1;
}
ziss_dm wrote:Hi Stalk,
I forget to ask: What is your cycle time with WMP and ITG?
regards,
ziss_dm
The damped oscillations are irregular (as quakes?), change I (in the range 0.005 to 0.050) and D (10-40) does not work
I do not know if I have exaggerated expectations, I would like greater Quad or Hex carry a camera.