Difference between revisions of "Raspberry Pi - Week 4"

From Robert-Depot
Jump to: navigation, search
(GPIO)
m (GPIO)
Line 32: Line 32:
 
== GPIO ==
 
== GPIO ==
 
*What are the pins?
 
*What are the pins?
*Raspberry Leaf
+
**http://elinux.org/RPi_Low-level_peripherals
**http://www.doctormonk.com/2013/02/raspberry-pi-and-breadboard-raspberry.html
+
*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
 
*pin over-voltage protection circuits - http://elinux.org/RPi_Tutorial_EGHS:GPIO_Protection_Circuits
 
*light example - https://projects.drogon.net/raspberry-pi/gpio-examples/tux-crossing/gpio-examples-1-a-single-led/
 
*light example - 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>
 
**uses wiringPI, command line tool, for ex:<code>gpio</code>
 
**installed using git - https://projects.drogon.net/raspberry-pi/wiringpi/download-and-install/
 
**installed using git - https://projects.drogon.net/raspberry-pi/wiringpi/download-and-install/
===through python===
+
===using pins with python===
 
*follow adafruit - http://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/overview
 
*follow adafruit - http://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/overview
 
**Rpi.GPIO -  
 
**Rpi.GPIO -  
Line 45: Line 49:
 
**python-rpi.gpio
 
**python-rpi.gpio
 
*https://code.google.com/p/raspberry-gpio-python/
 
*https://code.google.com/p/raspberry-gpio-python/
===Logic Level Conversion===
 
*RPi is 3.3V.
 

Revision as of 08:45, 26 April 2013

<<< back to Raspberry Pi

Review

  • Installed software with apt-get. (including festival).
  • Installed and ran VNC to get a remote desktop on the machine.
  • Ran a simple python script to synthesize speech ( example)
  • Another python tutorial: Learn Python the Hard Way

Video Playback

  • Omxplayer is a video player specifically made for the Raspberry PI's GPU made by Edgar (gimli) Hucek from the XBMC project.
    • omxplayer comes pre-installed on our raspbian distribution.
  • Try it out.
  • Copy a movie file to your raspberry pi using scp. The movie needs to be .mp4 format.
    • you can transcode with ffmpeg:
    • ffmpeg -i mouse_brain.wmv mouse_brain.mp4
  • run omxplayer:
    • omxplayer ~/Movies/mouse_brain.mp4
  • You can control playback with a number of hotkeys:

ffmpeg

  • install homebrew
  • brew install ffmpeg

Scripting Video Playback

video_loop.tar

GPIO

Note on voltage Levels

using pins with python