PI A+, B+, 2, 3
156 GUIDES | 956 PAGES | 22 FEATURED | 15 POPULAR
One of the great things about the Raspberry Pi is how everyone starts with same piece of gear. Since the sound cards are identical on every unit it is trivial to load the drivers and play mp3 files. This guide describes how to connect input buttons and play audio files using a Raspberry Pi with Python. We make use of the Adafruit's Pi Cobbler Breakout Kit and the python module RPi.GPIO. If you have not already used the raspberry pi as a input device this guide will show you how to wire the pull-down resistors to the GPIO pins and buttons.
Teaching the raspberry pi how to read analog inputs is easier than you think. The Pi does not include a hardware analog to digital converter, but a external chip can be used along with some bit banged SPI code in python to control read external analog devies such as (but not limited to): - potentiometer - photocell - force sensitive resistor ( fsr ) - temperature sensor
The combination of connecting a Raspberry Pi to COSM makes creating a internet of things much easier than it has been in the passed. The Pi with it's easy access to ethernet and COSM's drop dead simple usability will graph all sensor data you send to it. This tutorial explains how to connect a analog temperature sensor to the Pi and use a small python script to upload that data for storage and graphing on COSM.