Building the Arduino project

In this paragraph, we will implement the Arduino project. The first step is connecting the RGB LED strip to Arduino, as described in the following figure:

As you can see, the wiring is very simple. The WS2812 peripherals have only one data pin that is connected to the Arduino pin 5 (PWM).

Do not forget to connect the ground all together to have a common reference.

Now it is time to start developing the code. To handle the RGB LED strip we will use a library developed by Adafruit that makes it very easy to manage every RGB LED available on the strip. You can directly use the source code of this sketch and upload ...

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.