Skip to content

Most visited

Recently visited

navigation

Raspberry Pi 3 Starter Kit for Android Things

Follow these instructions to set up your Raspberry Pi 3 Starter Kit.

What's in the box

Open the box and make sure you have all of the components in the kit.

inventory
Bubble_number_01Raspberry Pi 3 development board Bubble_number_02Micro SD card with adapter
Bubble_number_03Rainbow HAT Bubble_number_04Plastic bolts (x4) and nuts (at least x4)
Bubble_number_05Plastic wrench Bubble_number_06Plastic case layers (x5)
Bubble_number_07Power adapter Bubble_number_08Power outlet adapters (x3)

Connect the parts

Connect the parts in the following order.

Protective case

The case encloses the Raspberry Pi and protects it.

case_step1

Locate the two clear plastic layers for the case. Each layer has a white protective film on one side. Use your fingernail to peel off this film.
case_step2

All of the plastic layers are numbered in the top left corner except for one (the top layer). Place the unnumbered layer aside for now. Find the layer with a "0" on it and place it so that the number is in the top left corner facing up.
case_step3

Find the layer with a "1" on it and place it on top of layer 0. Find the layer with a "2" on it and place it on top of layer 1. Make sure that the numbers are lined up in the top left corner.
case_step4

Place the Raspberry Pi so that it rests inside layer 2.
case_step5

Find the layer with a "3" on it and place it on top of the Raspberry Pi. Place the unnumbered layer on top of layer 3. Make sure that the numbers are lined up in the top left corner.
case_step6

Insert the four plastic bolts into the four corner holes in the case. Attach a nut to each of the bolts underneath the case. You can press down on the head of each bolt and use the included plastic wrench to tighten the nut.

Rainbow HAT

Connect the Rainbow HAT to the Raspberry Pi.

hat_step1

Locate the Rainbow HAT. The HAT has a 40-pin female connector. The Raspberry Pi has a 40-pin male connector. You will connect these together in the next step.
hat_step2

Gently press the connector on the back of the Rainbow HAT onto the connector on the Raspberry Pi. Be sure to press straight down.

Power adapter

The power adapter may not have the right outlet adapter for your location. Do the following to change the outlet adapter (if needed).

power_step1

Press down on the plastic tab below the outlet posts.
power_step2

Gently slide the outlet adapter off of the power adapter.
power_step3

Locate the correct outlet adapter for your location. Slide it onto the power adapter.
power_step4

Gently press the outlet adapter until it locks into place. You should hear a click.

Final result

Your kit is now assembled. You will insert the micro SD card and connect the power cable in the installation instructions below.

final_result

Install Android Things

Follow the hardware setup instructions to flash the latest version of Android Things on your Raspberry Pi development board.

Follow these instructions to download and run a sample that blinks one of the HAT's LEDs.

  1. Download and unzip the sample-button project to the directory of your choice.

  2. Run the project using either of the following:

    • In Android Studio, select File > Open and select the directory where you unzipped the sample. Select Run > Run 'app'.

    • From the command line:

      cd sample-button-master
      ./gradlew assembleDebug
      adb install -g -r app/build/outputs/apk/app-debug.apk
      adb shell am start com.example.androidthings.button/.ButtonActivity
      
  3. Press the "A" button on the Rainbow HAT and the red LED will light up.

Next steps

Feedback

You can report bugs and suggest new features with the Android Things issue tracker.

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

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

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 short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)