=========
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 Neblina™ Development Kit serves as a reference design for Neblina™ integration, I/O expansion and an onboard Debug J-Tag for custom firmware development. 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 the Neblina™.
- Have on hand a Neblina™ module or Development Kit
- An iPad or iPhone and a Mac computer with Bluetooth LE capability.
- Clone or download this repo.
- XCode 8 is required to compile
- iOS/OSX programming skills
Follow the hardware Quick Start guide to make sure that the Neblina™ module or Development Kit is powered on and functional.
Download or Clone this repo using the command
$ git clone https://github.com/Motsai/neblina-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.
- neblinaFusion.h
- Neblina-Bridging-Header.h
- neblina.h
- Neblina.swift
- NeblinaControl.swift