© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
A. ColubriProcessing for Androidhttps://doi.org/10.1007/978-1-4842-9585-4_8

8. Driving Graphics and Sound with Sensor Data

Andrés Colubri1  
(1)
University of Massachusetts, Worcester, MA, USA
 

With the basics of reading sensor data already covered in the previous chapter, we will now learn 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, with the ...

Get Processing for Android: Create Mobile, Sensor-aware, and XR 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.