The project is very simple and the main idea is while starting from a low-level accelerometer sensor data to end up with some nice visuals utilizing the power of Raspberry Pi 2 with Windows 10 on board through easy to use UWP and DirectX12.
In the project I used following API and libraries, which could be interesting for those who would like to get simple template for their "sensor + 3D" projects:
- Windows::Devices::I2c::I2cDevice to connect to MPU6050 and read accelerometer data. Possible future improvement - use interrupt mode to read data instead of timer polling (see the link in the Contributors section below).
- Direct3D12 UWP Game template project is used as a starting point. It is quite simple to start with but still very open for evolution.
- DirectXTK framework for DirectX12 is used to load and render a 3D model. It works on top of "Direct3D12 UWP Game template project".
- ImGui - very easy to use but very powerful and performant UI framework. I use DirectX12 version of the framework (also see the link in the Contributors section below).
I'm going to use the project as a workshop for future investigations, for example, I would like to connect Xbox360 gamepad to Raspberry Pi 2 to control the model rotation with a stick or even to connect a "raw" 2D stick over ADC and SPI interface to do the same.
Did you replicate this project? Share it!I made one
Love this project? Think it could be improved? Tell us what you think!