abimann
Member level 4
cannot find how to get MPU6050 factory defaults, might be someone do it ? When I use MPU6050 with Arduino, Arduino change something and after cannot use in FPGA.. But when i have new MPU6050 and use in FPGA it can work with following registers:
add - device address, i reset device in (0x6A), but cannot help
Code:
add & "0" & "00011001" & "00010101";--(0x19) MPU6050_RA_SMPLRT_DIV, 15);
add & "0" & "00011010" & "00000110";--(0x1A)--(0b00000011)
add & "0" & "00011011" & "00001000";--(0x1b)--(0b00001000);//Disable gyro self tests, scale of 500 degrees/s
add & "0" & "00011100" & "00011000";--(0x1c)--(0b00000000); Disable accel self tests, scale of +-16g, no DHPF RA_ACCEL_CONFIG, 0x18);
add & "0" & "01101011" & "00000010";--(0x6B)--(0b00000010);
add & "0" & "01101100" & "00000000";--(0x6C)--(0b00000000);
add & "0" & "01000000" & "00000000";--(0x6A)--(0b00000000);
add & "0" & "00100011" & "11111000";--(0x23)--(0b00000000);-- 100011
add & "1" & "00111011" & "00000000";--59
add & "1" & "00111101" & "00000000";--61
add & "1" & "00111111" & "00000000";--63