The arduino code for one of my other projects, where i try to emulate Vive controllers with Leap Motion, and an Arduino based custom built controller
This is the code of my custom built motion controller, used for my other project, where I try to emulat Vive controllers. The buttons and the orientation are from two of these controllers, and the positional data is from a Leap Motion.
I've built two of these controllers, from an Arduino Nano, an MPU-9255 IMU, and a cheap one-handed controller from ebay. Some photos from the build process can be found here: http://imgur.com/gallery/ihOr1
Thanks for github user rpicopter, for the DMP enabled motion processing library for the MPU9250. I used this, to get the DMP data from my MPU-9255. https://github.com/rpicopter/ArduinoMotionSensorExample