To get the orientation of the Flamingo module user in 3D space and send the data via BLE.
Hardware:
Setup:
- Follow the sparkfun nrf52840 hookup guide
- In the /nrf52/ver_num/variants folder, change the pin assignment for the I2C pins, because the original pins need a QWIC connector. If you have the connector, you don't need to do this step. I chose Pin 4 for SDA and Pin 5 for SCL. (this directory is present in your arduino home folder, when you are copying the variants folder for the above step).
- Add the Adafruit 9DOF and Adafruit BNO055 libraries via the arduino library manager. The first one should also install Unified Sensors library with it.
How it works:
- Every second, the BLE board (which is also the main controller) polls the BNO055 sensor for orientation data over I2C, and the BNO055 sensor returns the X Y and Z orientation values.
- The controller board then takes this data, resolves it into one of the 8 cardinal directions and transmits it over BLE to a connected device.