2020-01-29 06:28 AM
I am using the LSM9DS1 in our application with no problems normally. The gyro, axl and mag sensor all operating as requied. All written settings e.g. +/- range are set ok, and all registers read are giving the right outputs as device is moved around etc.
However when I try to turn the device off with the following code is still draws around 5mA all the time. I de-soldered the LSM9DS1 from one board which confirms that it is the LSM9DS1 drawing this power, even after the below commands are run.
How do I put the device to sleep? If it is not possible we will need to use an alternative device.
Have tried;
configureAXL(0x10,0x00); //CTRL_REG1_G (10h) power down
configureAXL(0x20,0x00); //CTRL_REG6_XL (20h) power down
configureMAG(0x22,0x03);
And
configureAXL(0x23,0x44); //CTRL_REG9 (23h) gyro sleep
configureAXL(0x10,0x00); //CTRL_REG1_G (10h) power down
configureAXL(0x20,0x00); //CTRL_REG6_XL (20h) power down
configureMAG(0x22,0x03);
Thanks
Phil
2020-02-01 01:16 AM
Issue was that the MCU connected to the device had an internal pull-up enabled which was drawning a lot of current for some reason.