=========
The Neblina™ module is a low-power self-contained AHRS, VRU and IMU with Bluetooth® SMART connectivity developed by Motsai. The miniature board built with the latest HDI PCB technology, features a high-performance patent-pending sensor fusion algorithm on-board, that makes it perfect for wearable technology devices in applications such as biomechanical analysis, sports performance analytics, remote physical therapy monitoring, quantified self , health and fitness tracking, among others.
The ProMotion Development Kit serves as a reference design for Neblina integration; adding storage, micro-USB port, battery, and I/O expansion to the Neblina. A NOR flash recorder and an EEPROM module are also included on the ProMotion board. The development kit with the extensive software support allows system integrators and evaluators to start development within minutes.
This repository is part of the development kit that provides a Swift interface to interact with and simulate the behaviour of Neblina.
- Have on hand a Neblina module or Promotion Kit
- An iPad or iPhone and a Mac computer with Bluetooth LE capability.
- Follow the hardware Quick Start guide to make sure that the Neblina module or Promotion kit is powered on and functionnal.
- Clone or download this repo.
- XCode 8 is required to compile
Download or Clone this repo using the command
$ git clone https://github.com/Motsai/neblina-motiondemo-swift.git
Open the NebCtrlPanel project (iOS or OSX), compile and execute the App. The initial screen will list all available Neblina devices. Select one of the Neblina that shows up.
iPhone Screen Shot | OSX Screen Shot |
---|---|
The iPhone & iPad will switch to the command screen. The "BLE Data Port" switch will be on if the communication with Neblina is successful. Switch on the Quaternion stream. The quaternion data should be displayed at the bottom of the screen.
iPhone Screen Shot | iPad Screen Shot |
---|---|
The project NebTutorial1 is the starting point to get a feel of how to connect to the Neblina via Bluetooth and retreive data. It is a simple iPhone App that shows a TableView with a list of detected Neblina device, a button to enable Euler Angle Stream and a TextField to display the Euler data.
In order to get swift compiler to compile with C defined constant, we need to specify a bridging header. This is done going into Build Settings and set the Object-C Bridging Header with "Neblina-Bridging-Header.h". This Neblina-Bridging-Header.h header file located in src folder of the root of this repository. See Xcode screen shot bellow for more details.
Beside the bridging head, the following files are also needed to be added to the project. They are located in src folder from the root of this repo.
- FusionEngineDataTypes.h
- Neblina-Bridging-Header.h
- neblina.h
- Neblina.swift
- ProMotion.h