Skip to content
Snippets Groups Projects
Select Git revision
  • c3f507638aa3a270d9485b43b98d7f1167a15dc1
  • master default protected
2 results

sensorapp

user avatar
Augustin Jaujay authored
c3f50763
History

SensorApp

This application is meant to get different data from different sensors and to save them in a csv file on an Android smartphone.
The data that are saved are from GPS, accelerometer, gyroscope, magnetometer, and constraint probes through an Arduino board.

This application has not been tested because of problems with Cordova. We were not able to run the app because Cordova couldn't find Java 8. It is highly possible that it doesn't work.

Prerequisite

  • Apache Cordova framework,
  • All the cordova dependencies,
  • Arduino device and constraint probes.

Installation

  • Install Cordova,
  • Depending on the platform you wants to develop for, you will have to install some dependencies. See them for the Android platform,
  • Assemble the Arduino circuit.

How to run the app

When the project configuration is done, go in your terminal in the project folder and run the command :

cordova run android

If you want to run the app on an Android device, run :

cordova run android --device

When the app is running on the spartphone, you can unplug it from the computer and connect the Arduino board. See Arduino for SensorApp documentation for further information.

For all configuration problems, see Apache Cordova help, which provides all informations.
Cordova is a tough framework and it is quite difficult to make it run.