Controlling a servomotor in Android Things

Before using the PWM it is important to know how to connect a servo motor to an Android Things board. In this project, we will use only Raspberry Pi 3 because it supports a camera; anyway, you can connect the servo to Intel Edison with Arduino breakout too. The following diagram describes the connections:

The following is an image of the Raspberry Pi3 connected to the servo:

Usually, a servo has only three wires:

  • The power signal that depends on the type of motor (usually between 3.3V and 5V)
  • The ...

Get Android Things Projects 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.