Skip to content

P03: Raspberry Pi Setup

melvinma edited this page Feb 5, 2017 · 18 revisions

List of hardwares

Raspberry Pi List:

  1. Raspberry Pi (Model A+, B+, Pi 2 or 3)
  2. MicroSD card
  3. USB WiFi Adapter to connect Raspberry Pi to Wifi Network (https://www.sparkfun.com/products/13677)
  4. Monitor (or TV) with HDMI connector
  5. HDMI cable
  6. Keyboard : USB keyboard or Wireless keyboard with USB connector
  7. Power to Raspberry Pi

List of Project Specific Needs:

  1. camera : ($29.95 https://www.sparkfun.com/products/14028)
  2. speaker: use headphone jack... or possibly USB
  3. motor: (torque 0.4 newton-meter $9 https://www.sparkfun.com/products/11884)
  4. button: (to trigger the camera)

Raspbian OS Installation

We will only need one person install Raspbian OS onto 3 MicroSD card and then all 3 Raspberry Pi will be powered up. Here is the Raspbian installation instruction:

  • Download NOOBS
  • Create OS installation microSD card
  • Start the OS installation on the Raspberry Pi
  • Setup Wifi on the Raspberry Pi following this document
  • We will install Python 3.5 (because the NOOBS has only 3.4) and a lot of dependencies. Here is the details

Connect to Camera

Installation: https://thepihut.com/blogs/raspberry-pi-tutorials/16021420-how-to-install-use-the-raspberry-pi-camera

Software setup and using Python: https://www.raspberrypi.org/documentation/usage/camera/python/README.md

Connect to Click button

Follow instruction here.

Connect to Speaker

Typical 3.5mm speaker connection. set the default output to that:

amixer cset numid=3 1

1: headphone jack

2: HDMI

Reference: https://www.raspberrypi.org/documentation/configuration/audio-config.md

Connect to Motors

reference: http://razzpisampler.oreilly.com/ch05.html

Install Runtime funbots onto the Raspberry Pi

Directly using git (already installed with OS) to clone the funbots git repository.

Clone this wiki locally