Coder Social home page Coder Social logo

openbci-androidapp's Introduction

OpenBCI-AndroidApp

This Android application demonstrates the capability of interfacing an RFduino with an Android app to store processed data as comma separated values onto the file system.

This work is based on the work done by Lann Martin found here: https://github.com/lann/RFDuinoTest

Description

MainActivity: the main activity class for the Android app

SaveBytesToFile: an AsyncTask to store processed data onto a file

RFduinoService: Android service to connect, display data, and display GATT services and characteristics supported by the RFduino via the Android BLE API

OpenBCIDataConversion: helper class to convert byte data received from RFduino into microvolt values

FormatDataForFile: helper class to convert the process data into comma separated values

BluetoothHelper: RFduino specific Bluetooth computation

HexAsciiHelper: helper class to convert bytes to hex/ASCII values

Usage

-Turn on the Bluetooth using the “Enable Bluetooth" button

-Press “Scan” to begin a BLE scan for GATT servers on devices

-When an RFduino is found, some of the device information will be displayed under “Device Info”

-Press “Connect” to connect to the RFduino

-You can either type in your command using the text input provided or press “Start” to send a “b” (begin) command to the RFduino

-Click “Stop” to send a “s” (stop) command to the RFduino

-Press “View File” to open the data file for the current session and use your favorite text viewer to view the “.csv” file

Note: All files are stored under an “OpenBCI” folder in the file system. The files are name “openbci” where the time stamp is in the "yyyy_MM_dd_HH_mm_ss" format.

References

https://developer.android.com/guide/topics/connectivity/bluetooth-le.html

https://developer.bluetooth.org/TechnologyOverview/Pages/BLE.aspx

openbci-androidapp's People

Contributors

yeah-sir avatar

Watchers

James Cloos avatar Liangfu Chen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.