Changes

Raspberry Pi - Week 4

750 bytes added, 23:09, 26 April 2013
using GPIO with python
===ffmpeg===
*Install this on your computer, not the raspberry pi.**install homebrew**<code>brew install ffmpeg</code>*using ffmpeg to transcode a video file: **<code>ffmpeg -i ~/Movies/dogkiss.mov dogkiss.mp4</code>
== Scripting Video Playback ==
[http://wiki.roberttwomey.com/images/a/ad/Video_loop.tar video_loop.tar]
*We can send the hotkey controls via STDIN in python:
**http://stackoverflow.com/questions/12755968/sending-arrow-keys-to-popen
*[shell script to play a directory of files. (good at corporate conventions)**http://wikiwww.roberttwomeycenolan.com/images2013/a03/adlooping-video-playlist-omxplayer-raspberry-pi/Video_loop.tar video_loop.tar]
== GPIO ==
*What are the pins?
**http://elinux.org/RPi_Low-level_peripherals
*Handy printable reference
**Raspberry Leaf - http://www.doctormonk.com/2013/02/raspberry-pi-and-breadboard-raspberry.html
*Other headers, not yet populated
**P5, etc...
===Note on voltage Levels===
*RPi is 3.3V.
*pin over-voltage protection circuits - http://elinux.org/RPi_Tutorial_EGHS:GPIO_Protection_Circuits
==Tutorials==*light example Single LED- https://projects.drogon.net/raspberry-pi/gpio-examples/tux-crossing/gpio-examples-1-a-single-led/**uses wiringPI, command line tool, for ex:<code>gpio</code>**installed using git GPIO examples- https://projects.drogon.net/raspberry-pi/wiringpi/downloadgpio-and-installexamples/===through python===*follow adafruit - httpLCD interface https://learnprojects.adafruitdrogon.comnet/adafruits-raspberry-pi-lesson-4-/gpio-setupexamples/overview**Rpi.GPIO lcd- interface/**requires python-dev**===using GPIO with python-rpi.gpio===
*https://code.google.com/p/raspberry-gpio-python/
===Logic Level Conversion===**<code>sudo apt-get update</code>**<code>sudo apt-get install python-dev</code>**<code>sudo apt-get install python-rpi.gpio</code>*Examples - https://code.google.com/p/raspberry-gpio-python/wiki/Examples**Basic Usage**Inputs**Outputs**PWM*RPi is 3adafruit - http://learn.3Vadafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/overview