I tried to reduce the power consumption of 6500 in my product, and configured the register according to the manual, but the current is still 1.5ma, the following is my configuration: What is the problem?
uint8_t tempReg[4] = {0}; // 取读出的值
mpu6050_register_write(25, 0);
mpu6050_register_write(26, 0); mpu6050_register_write(27, 3);
mpu6050_register_write(106, inData[4]);
mpu6050_register_write(0x1C, 0);
mpu6050_register_read(107, tempReg, 1);
mpu6050_register_write(107, (tempReg[0] & 0xAF));
mpu6050_register_write(108, 0x7); // 禁用陀螺仪 使用加速度 唤醒检测周期1.25HZ
mpu6050_register_read(108, tempReg, 1);
mpu6050_register_write(29, 0x1); //Set Accel LPF setting to 184 Hz Bandwidth
mpu6050_register_read(56, tempReg, 1);
mpu6050_register_write(56, (tempReg[0] | 0x40)); //Register 56 – Interrupt Enable
mpu6050_register_read(105, tempReg, 1);
mpu6050_register_write(105, (tempReg[0] | 0xc0)); //Enable Accel Hardware Intelligence:
mpu6050_register_write(0x1f, 0x1); // Set Motion Threshold 中断阈值设置
mpu6050_register_write(30, 2); // Sets the frequency of waking up the chip 31.25hz 低功耗采样频率
mpu6050_register_read(107, tempReg, 1);
mpu6050_register_write(107, (tempReg[0] | 0x28)); // Enable Cycle Mode (Accel Low Power Mode) disable temperature 启动循环模式
And ensure that the read value is the same as the written value (successful write).、
Hope to get some suggestions for improvement.
look forward to hearing from you!
Hello,
Unfortunately, I cannot debug your code since I am not familiar with your setup and environment. I suggest following datasheet for your design.