Power off LSM6DSO Sensor between measurements

Hello,
I want to switch off the power supply to my LSM6DSO IMU between measurements. The measurements only take place once a minute. If I operate it permanently with voltage, it would consume about 200uA. To save this, I switched off the voltage. Unfortunately this does not work, I no longer get any values back when I query the sensor. I tried it with different delays between switching on and measuring, but 0 values are always displayed. If I constantly power the IMU, everything works.
You can watch it briefly in a video. www.youtube.com/watch


nrf connect sdk 2.1.2

What do I have to change to make this work? or how can I initialize the lsm6dso manually?

Best regards, Jonas

		gpio_pin_set(gpio_dev, VDD_PIN_IMU, 1);
		k_sleep(K_MSEC(10));
		remap_pins_imu();
		pm_device_action_run(imu_dev,PM_DEVICE_ACTION_TURN_ON);		
		get_rotation(imu_dev);
		pm_device_action_run(imu_dev,PM_DEVICE_ACTION_TURN_OFF);
		k_sleep(K_MSEC(10));
		// gpio_pin_set(gpio_dev, VDD_PIN_IMU, 0);
dynamic_pinctrl_evaluation.zip

Related