100 likes | 225 Vues
Linux for Dessert. Experimenting with the Raspberry Pi. Jeff Jirsa. Linux for Dessert: Experimenting with the Raspberry Pi Introduction. About this presentation What is it? What do I need/want? Demo What Languages can I use? What is the GPIO? Resources.
E N D
Linux for Dessert Experimenting with the Raspberry Pi Jeff Jirsa
Linux for Dessert:Experimenting with the Raspberry PiIntroduction • About this presentation • What is it? • What do I need/want? • Demo • What Languages can I use? • What is the GPIO? • Resources
Linux for Dessert:Experimenting with the Raspberry Pi About this presentation • Following the Larry Wall motto(s) • There is more than one way to do it.http://c2.com/cgi/wiki?ThereIsMoreThanOneWayToDoIt • Virtues of a programmer • Laziness – The quality that makes you go to great effort to reduce overall energy expenditure. It makes you write labor-saving programs that other people will find useful, and document what you wrote so you don't have to answer so many questions about it. Hence, the first great virtue of a programmer. Also hence, this book. See also impatience and hubris. • Impatience – The anger you feel when the computer is being lazy. This makes you write programs that don't just react to your needs, but anticipate them. Or at least pretend to. Hence, the second great virtue of a programmer. See also laziness and hubris. • Hubris – Excessive pride, the sort of thing Zeus zaps you for. Also the quality that makes you write (and maintain) programs that other people won't want to say bad things about. Hence, the third great virtue of a programmer. See also laziness and impatience.
Linux for Dessert:Experimenting with the Raspberry PiWhat is it? • A credit card sized single board computer • http://en.wikipedia.org/wiki/Raspberry_Pi • http://elinux.org/Rpi_Datasheet_201_Raspberry_Pi_Computer • http://elinux.org/RPi_Hardware • http://elinux.org/R-Pi_Hub • http://www.element14.com/community/docs/DOC-43016/l/broadcom-datasheet-for-bcm2835-soc-used-in-raspberry-pi • Other single board computers • http://en.wikipedia.org/wiki/List_of_single-board_computers
Linux for Dessert:Experimenting with the Raspberry PiWhat do I need? • A Raspberry Pi • A SD memory card • http://www.sakoman.com/OMAP/microsd-card-perfomance-test-results.html • A Micro USB Power adapter • A keyboard • A mouse (for GUI programs) • Links • Make sure that everything will work!: • http://elinux.org/RPi_VerifiedPeripherals • http://elinux.org/Rpi_Low-level_peripherals
Linux for Dessert:Experimenting with the Raspberry PiWhat do I want? • Need is relative! • A case • http://elinux.org/RPi_Cases • http://www.adafruit.com/products/859 • Peripherals • Keyboards, mice, USB Hubs, Wifi adapters • http://elinux.org/RPi_VerifiedPeripherals • http://elinux.org/Rpi_Low-level_peripherals
Linux for Dessert:Experimenting with the Raspberry PiDemo 1 • Get the Raspian Image • http://www.raspberrypi.org/downloads • If your working PC is running Linux • Follow the instructions at: • http://elinux.org/RPi_Easy_SD_Card_Setup#Copying_an_image_to_the_SD_Card_in_Linux_.28command_line.29 • If your working PC is running Windows • Get the Windows Disk Imager • http://www.softpedia.com/get/CD-DVD-Tools/Data-CD-DVD-Burning/Win32-Disk-Imager.shtml • Burn the image file
Linux for Dessert:Experimenting with the Raspberry PiDemo • Insert the SD card into the slot on the Pi • Plug in the power cord (boot) • Wait… • Have fun!
Linux for Dessert:Experimenting with the Raspberry PiWhat is the GPIO? • Stands for General Purpose Input/Output • It allows peripherals and expansion boards (such as the Gertboard to access the CPU by exposing the inputs and outputs. • C language library included to read and write to the GPIO interface • Works with other languages • C#, Java, Perl, Python, Ruby, Shell, Scratch • http://en.wikipedia.org/wiki/Scratch_(programming_language) • Examples on this page • http://elinux.org/RPi_Low-level_peripherals • http://www.raspberrypi.org/archives/1471
Linux for Dessert:Experimenting with the Raspberry PiResources • Web sites • http://www.raspberry • FAQs • http://www.h2g2.com/approved_entry/A13735596 • http://www.raspberrypi.org/faqs • Magazines • Linux User • http://www.linuxuser.co.uk • Linux Format • http://www.linuxformat.com • Online • Youtube • http://www.themagpi.com • Tutorials • Youtube – search for Raspberry Pi • Raspberry Pi for beginners • Plenty of more videos!