05 March 2013

Our initial aim from a technical perspective is to create a device that could consist of a combination of the following sensors.

  • Light
  • Sound level (db)
  • Vibration
  • 3D movement (accelerometer)
  • Pothole detection (pressure sensor, or tilt sensor, or custom built springy switch)
  • Traffic counting
  • Face/person detection.
  • Body: GSR, heart rate, heart rate variability,
  • GPS detection.
  • Video/Stills camera.

Android device

Despite some reservations about the aesthetics and politics surrounding these devices they already contain the majority of these sensors out of the box.

Scripting Language for Android (S4LA)

Combined we have more experience in Python, Perl, JavaScript so are attempting to use this alpha(!) software that enables scripting languages (Python in this case) to be installed on rooted Android device.

Rooting a Nexus 7

Get Scripting

Overview

  • Very easy to install and use (once device is rooted)
  • Simple API. Two lines of code to access Camera, GPS sensors, etc
  • Flakey. Camera gave Java NullPointer error and GPS returned empty results array
  • Because of simple API and Java code used to access sensors, debugging is a problem.

PhoneGap + PhoneGap Plugins (native Android/Java)

Planning on using PhoneGap as master application and polyfilling missing functionality (currently: camera timelapse & light sensor) with native Android code in PhoneGap Plugin.

Native Development - Camera

PhoneGap Development

Sensors

Potholes / Shake Detection

Difficulties involved in detecting potholes because accelerometer does not detect shifts relative to previous position. Essentially works out 3 axis orientation. Despite this there are a lot of ‘shake’ detection solutions that use accelerometer such for Android and PhoneGap:

Light Sensor

IOIO - Breakout Board for Android

Breakout board designed for use with Android phones and programmable in Java. We intend to use this to extend the available sensors available on the phone. For instance to incoporate Galvanic Skin Response sensors to measure bodily changes in accordance with the journey. Purchased from Sparkfun - https://www.sparkfun.com/products/11343

Docs

Resources



blog comments powered by Disqus