1

I am currently working with Windows 10 IoT and RaspberryPi 3b + MPU6050 connected over I2C.

While looking around I found windows.devices.sensors.accelerometer and windows.devices.sensors.gyrometer. I think these classes can be used on Windows Phones to access Sensorreadings, so I was wondering:

Is it possible to integrate my MPU6050 sensor-boards accelerometer and gyroscope to work with these classes?

Stephan
  • 143
  • 1
  • 8

1 Answers1

1

To connect MPU6050 with Windows IoT Core via I2C you can refer to "Windows 10: How to use IoT extension for Raspberry Pi 2 (part 2)" and "MPU6050 Accelerometer on Windows 10 Raspberry 2".

If you want to check windows.devices.sensors.accelerometer API work or not you can refer to "UWP sample - Accelerometer sample". But to use these API the sensor need be supported. You may need related driver.

The driver for a sensor must indicate that the hardware is integrated with the PC chassis for it to be accessible via this namespace. Sensors not marked as PC-integrated, even if they are of a supported type, will not be accessible. Driver developers can refer to SensorConnectionType enumeration for more details. (Windows.Devices.Sensors Namespace)

Rita Han
  • 9,574
  • 1
  • 11
  • 24
  • Do you know where to find the related driver? – Stephan Mar 06 '19 at 11:00
  • 1
    @Stephan You can contact the MPU reseller to see if they can provide a driver. It is suggested to use Windows.Devices.I2c API to control the MPU. It is more simple to implement. – Rita Han Mar 07 '19 at 01:15