© Andrés Colubri 2017

Andrés Colubri, Processing for Android, https://doi.org/10.1007/978-1-4842-2719-0_8

8. Driving Graphics and Sound with Sensor Data

Andrés Colubri

(1)Broad Institute, Cambridge, Massachusetts, USA

With the basics of reading sensor data already covered in the previous chapter, we will now see how to use data from the accelerometer, magnetometer, and gyroscope to generate interactive graphics and sound in our Processing sketches.

Using Ketai to Read Sensor Data

The sensors available in an Android device give us plenty of data about the surroundings of the device. We saw how we can retrieve this data by using either the Android API or the Ketai library, the latter of which makes sensor handling easier. Once the data is available ...

Get Processing for Android: Create Mobile, Sensor-Aware, and VR Applications Using Processing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.