Saturday, November 09, 2013

GHC-Rpi CodeChix workshop (Beginners)

Setup and Notes for Grace Hopper Conference India Hands-on Workshop:  Getting Your Hands Dirty with the RaspberryPi.

These notes are part of the CodeChix RaspberryPi workshop curriculum.

RaspberryPi Setup

  1. Go to raspberrypi.org/downloads and get the Wheezy Raspbian image (get the latest)
  2. Follow the steps to prepare your SD card with the image that you downloaded - http://elinux.org/RPi_Easy_SD_Card_Setup#Using_the_Linux_command_line
  3. Insert the SD card into the Rpi
  4. Connect the Rpi via HDMI to a monitor.  Also, connect a USB keyboard and mouse (if needed).  If you are inclined towards avoiding GUI's (like me), you don't need the mouse.
  5. Power on the Rpi 
  6. Login - Uname: pi, Passwd: raspberry  (don't forget the "p")
  7. Configure settings: sudo raspi-config
  8. Follow the menu and configure your network, keyboard and other peripherals
  9. You can also go use: http://www.raspberrypi.org/quick-start-guide

LED Lights
  1. Install the Python GPIO module - pip install RPi.GPIO
  2. Follow steps and copy over the code sample from here.