This page contains instructions for writing a basic program on your Raspberry Pi in the context of the CU CSFP RPi Project. We will be writing a small example program that demonstrates some of the capabilities of the RPi. We will primarily be working in Python (v3.2) and will show both basic stand-alone RPi use and use of the Piface Digital I/O board.
A playlist of video segments of this session is available on YouTube
We will be starting with the the Raspbain OS configured as we left it at the end of the first session. If you are using your own RPi or SD Card, you may download a fresh version (sha1) of this configuration and flash it via the normal means.
We will also be using GitHub to distribute and save code for this project. Students are encouraged to sign up for a free GitHub account if they do not already have one.
For our first RPi project, we'll be building a basic Twitter Alarm Clock. What's a Twitter Alarm Clock? It's a device that waits for the number of tweets that match a specific search criteria (hashtag, etc) to exceed a specified threshold (30 tweets, etc), at which point it triggers some action (play a sound, turn on a light, etc).
We'll use Python 3 to build our twitter Alarm clock. the first rev functions as stated above. A second rev will incorporate the Piface Digital to include a "Snooze" button and flashing lights. The base code for the alarm clock is available on GitHub: https://github.com/asayler/TwitterAlarmClock.