Skip to content

Most visited

Recently visited


Peripheral Driver Library

The Peripheral Driver Library offers support in integrating common sensors and actuators into your app. The library contains prewritten user drivers for popular peripherals available for supported Android Things hardware.

Building apps for Android Things involves integrating with common hardware components and peripherals. Many of these peripherals utilize additional protocols on top of the low-level Peripheral I/O that is specific to their use case. Implementing these protocols can be time consuming and error prone.

The goal of the Peripheral Driver Library is to simplify the integration of these hardware components into an Android Things app. It exposes a high level API that abstracts the communication logic and state management of each peripheral. For supported types, the library also connects the peripherals with the Android framework through the User Driver APIs.

The Peripheral Driver Library is open-sourced and available on GitHub. For examples using each driver in your apps, see the driver samples.

This site uses cookies to store your preferences for site-specific language and display options.


This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.