2023-08-09 12:27 PM
Hi,
I am working on interfacing an STM32F405 with the ASM330lhh and have been able to utilize both I2C and SPI communication to the chip. I am able to turn on and read the accelerometer and temperature as well as the status bit become 0x05 but trying to turn on the gyroscope with and without the accelerometer already activated I get no status bit and no data is outputted via the gyro's registers.
I am writing 0x11,0x60 to turn on the gyro and reading the registers starting at 0x22. one thing to note is that when turning on the gyroscope while using I2C the entire line breaks after modifying the register, on SPI this doesn't happen but there is no change in the gyro data.
Solved! Go to Solution.
2023-08-23 11:31 AM
The gyroscope was not provided power
2023-08-09 04:58 PM
Have you checked the interaction of other registers? (Unfortunately the ST documents may have been written very succinctly and every comma may be important)
2023-08-10 07:45 AM
I'm not sure what you mean by this, but one thing I have noticed after further testing after setting the 0x11 register to 0x60 when reading back the register once it shows as 0x60 then its value resets to zero, this hasn't been an issue with the accelerometer and maybe it was writing a 0x01 bit to register 0x12 which would cause a system reboot but after making sure to include 0x04 to be sent in the sequence after the 0x60 it still resets all registers
2023-08-23 11:31 AM
The gyroscope was not provided power
2024-10-31 08:05 PM
I also encountered a similar problem, I read the value of 0X11 after writing 0X11, 0X40, and found that the value inside is 0X00, which indicates that I did not write successfully, but other registers I can write successfully, what is the problem?