Download - Rasp i Hacks
![Page 1: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/1.jpg)
Ruth Suehle Tom Callaway@suehle @spotrh
Presented by
Raspberry Pi Hacks
![Page 2: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/2.jpg)
The history of the RasPiEarly 2006 concept based on Atmel ATmega644
Designed for educational use
Intended for Python (but of course is friendly to all)
![Page 3: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/3.jpg)
Pop quiz!
![Page 4: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/4.jpg)
![Page 5: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/5.jpg)
Slicing up the Pi
![Page 6: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/6.jpg)
Slicing up the Pi
![Page 7: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/7.jpg)
Find your Picat /proc/cpuinfo
Processor : ARMv6compatible processor rev 7 (v6l)
CPU architecture: 7
[...]
Hardware : BCM2708
Revision : 000e
Serial : 0000000011185abc
![Page 8: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/8.jpg)
Buying partsElement14 (newark.com)
Adafruit.com
MakerShed.com
DX.com
Sparkfun.com (for parts)
Amazon
And in a pinch... Radio Shack
![Page 9: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/9.jpg)
Getting started1. Get the right SD card
2. Get the right distro
3. Don't break off C6
4. ???
5. Profit!
![Page 10: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/10.jpg)
1. Get the right SD cardMost quality cards are OK
Micro with adapter?
elinux.org/RPi_SD_cards
![Page 11: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/11.jpg)
Display optionsHDMI 1.3 and 1.4 supported; audio and video output, does not support HDMI input
PAL and NTSC supported through RCA with audio through 3.5 mm to red/white RCA connector
DSI
No VGA
![Page 12: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/12.jpg)
Fun display alternativesAtrix Lapdock
Kindleberry Piwww.ponnuki.net2012/09/kindleberry-pi/
![Page 13: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/13.jpg)
TouchscreensOoh, look! DSI connector!
Mimo 720
USB DisplayLink Framebuffer Driver CONFIG_FB_UDL/udlfb.ko
USB DisplayLink Kernel Mode Setting (KMS) driver CONFIG_DRM_UDL/udl.ko
Won't work with OpenELEC without rebuilding the kernel
![Page 14: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/14.jpg)
Couture kernelrpi-3.2.27
rpi-3.6.y (.11)
rpi-3.8.y, rpi-3.9.y, rpi-3.10.y, rpi-3.11.y
$ git clone git://github.com/raspberrypi/linux.git
$ tar xvfz rpi3.6.y.tar.gz
$ make mrproper
![Page 15: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/15.jpg)
![Page 16: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/16.jpg)
2. Get the right distroPidora (of course)
Raspbian
Moebius
RaspBMC
Occidentalis
![Page 17: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/17.jpg)
2.14 Or get braveAndroid Arch ARM AROS
Chromium OS Debian Squeeze Firefox OS FreeBSD Gentoo Haiku IPFire NetBSD PiBang Plan 9 from Bell Labs QtonPi
RISC Slackware ARM Squeezed ARM Puppy WebOS
![Page 18: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/18.jpg)
PidoraGraphical firstboot configuration (with additional modules specifically made for the Raspberry Pi)
Compact initial image size (for fast downloads) and auto-resize (for max storage afterwards)
Auto swap creation available to allow for larger memory usage
C, Python, & Perl included in the SD card image
Includes libraries capable of supporting external hardware such as motors and robotics (via GPIO, I2C, SPI)
For graphical operation, Gedit text editor can be used with plugins (python console, file manager, syntax highlighting) to serve as a mini-graphical IDE
![Page 19: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/19.jpg)
NOOBSNew Out Of Box Software
![Page 20: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/20.jpg)
Android on your Pi
+
http://androidpi.wikia.com
![Page 21: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/21.jpg)
Installing itFedora ARM installer
fedoraproject.org/wiki/Fedora_ARM_Installer
yum install fedora-arm-installer
![Page 22: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/22.jpg)
Installing itFedora ARM installer
fedoraproject.org/wiki/Fedora_ARM_Installer
yum install fedora-arm-installer
On a Mac, Rpi-sd card builder or RasPiWrite
Google “Rpi-sd builder”
github.com/exaviorn/RasPiWrite
![Page 23: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/23.jpg)
1 + 2 – worrying =Buy pre-loaded
![Page 24: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/24.jpg)
Power5V. 5V. 5V.
Why you shouldn't use iPhones
Your laptop's USB port is not the droid you're looking for
Put a power brick on your shopping list
Did I mention C6?
![Page 25: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/25.jpg)
Write down these words
220 uF 16v electrolytic capacitor
![Page 26: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/26.jpg)
Add an off switch
![Page 27: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/27.jpg)
Johnny Five alive!
![Page 28: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/28.jpg)
Test your might! (In volts)
![Page 29: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/29.jpg)
Test your might! (In volts)
![Page 30: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/30.jpg)
Decode the LEDsD5 OK (Rev 1.0) ACT (Rev 2.0) Green SD card access, connected to GPIO 16
D6 PWR Red 3.3 V Power, connected to 3V3
D7 FDX Green Full Duplex LAN
D8 LNK Green Link/Activity LAN
D9 10M (Rev 1.0) 100 (Rev 2.0) Yellow 10/100Mbit LAN
![Page 31: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/31.jpg)
Why didn't it start?Red light off = No power
Red light on, green light off = The Pi can't read the image on the card. The voltage is below 5V.
Green light blinks 3 times = start.elf was not found
Green light blinks 4 times = start.elf did not launch
Green light blinks 7 times = kernel.img was not found
![Page 32: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/32.jpg)
GPIOhttp://elinux.org/RPi_Low-level_peripherals
![Page 33: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/33.jpg)
Raspberry Leaf
http://www.doctormonk.com/2013/02/raspberry-pi-and-breadboard-raspberry.html
![Page 34: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/34.jpg)
Building a cross-compilerYou could use an existing one... or you could DIY with crosstool-ng (crosstool-ng.org)
Get kernel source: github.com/raspberrypi/linux
![Page 35: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/35.jpg)
Blah blah blah.Stop saying words andshow us pretty pictures
of cool thingspeople made.
![Page 36: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/36.jpg)
Case closed.Make one
3D print one
Buy one
(or use the one it comes in)
![Page 37: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/37.jpg)
Not bigger on the inside.
![Page 38: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/38.jpg)
Temple of Pi
![Page 39: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/39.jpg)
Lego my Pi-go...?
Brian Gillespie
![Page 40: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/40.jpg)
Or just buy it.
http://www.thedailybrick.co.uk/lego-sets/custom/lego-custom-raspberry-pi-case.html
![Page 41: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/41.jpg)
Aren't you a little small for an HTPC?
RaspBMC/XBMC
1080p
Share over NFS, SMB, FTP, HTTP, USB, XYZ, and other acronyms
Install to SD, USB, or run off NFS Embedded Samba TVHeadend FTP SSH
![Page 42: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/42.jpg)
Can you do it?
![Page 43: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/43.jpg)
PiBoy
![Page 44: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/44.jpg)
PIP-Boy 3000
![Page 45: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/45.jpg)
RIP Pi-PIP-Boy
http://blog.ryangrieve.com/the-raspberry-pipboy/
![Page 46: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/46.jpg)
Emulating your childhood
![Page 47: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/47.jpg)
SpritesMods.com
![Page 48: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/48.jpg)
Teeny arcade!
![Page 49: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/49.jpg)
www.instructables.com/id/Coffee-Table-Pi
![Page 50: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/50.jpg)
Scratch an itch
![Page 51: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/51.jpg)
Googler Coder
![Page 52: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/52.jpg)
Googler Coder
![Page 53: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/53.jpg)
Googler Coder
![Page 54: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/54.jpg)
Powering Potential
PoweringPotential.org
![Page 55: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/55.jpg)
PiLoreanfortoffee.org.uk/raspberry-pi-delorean/
![Page 56: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/56.jpg)
PiLorean
http://www.youtube.com/watch?v=ncXxBmbuFII
![Page 57: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/57.jpg)
LCARS Home Automation
http://www.youtube.com/watch?v=176YaM5jta4
![Page 58: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/58.jpg)
Ice cream with your Pi
![Page 59: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/59.jpg)
Ice cream with your Pi
![Page 60: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/60.jpg)
Coffee ordering
http://www.youtube.com/watch?v=BQBOPGSfFwY
![Page 61: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/61.jpg)
Control Christmas lights
![Page 62: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/62.jpg)
Best Valentine EVER
![Page 63: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/63.jpg)
![Page 64: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/64.jpg)
![Page 65: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/65.jpg)
![Page 66: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/66.jpg)
More ideasSamba
Remote print server
LEGO robot
Temperature sensor
Light sensor
Listen to aircraft transponders
Spotify (Pi MusicBox)
Control 3D printer
![Page 67: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/67.jpg)
Resourceslearn.adafruit.com
elinux.org
instructables.com
Beginner's Guide to Raspberry Pi
Raspberry Pi Hacks
Contact:
@suehle | [email protected]
@spotrh | [email protected]
![Page 68: Rasp i Hacks](https://reader033.vdocuments.us/reader033/viewer/2022051020/563dba04550346aa9aa1fd77/html5/thumbnails/68.jpg)
t
Download slides:rsuehle.fedorapeople.org/raspi
Get the book:http://oreil.ly/raspberry_pi_hacks