1300 187 187
 
Programming the Raspberry Pi : Getting Started with Python - Simon Monk

Programming the Raspberry Pi

Getting Started with Python

Paperback

Published: 20th November 2012
In Stock. Usually ships in 3-4 business days
RRP $21.95
$17.40
21%
OFF

Create innovative programs and fun games on your tiny yet powerful Raspberry Pi. In this book, electronics guru Simon Monk explains the basics of Raspberry Pi application development, while providing hands-on examples and ready-to-use scripts. See how to set up hardware and software, write and debug applications, create user-friendly interfaces, and control external electronics. Do-it-yourself projects include a hangman game, an LED clock, and a software-controlled roving robot.

  • Boot up and configure your Raspberry Pi
  • Navigate files, folders, and menus
  • Create Python programs using the IDLE editor
  • Work with strings, lists, and functions
  • Use and write your own libraries, modules, and classes
  • Add Web features to your programs
  • Develop interactive games with Pygame
  • Interface with devices through the GPIO port
  • Build a Raspberry Pi Robot and LED Clock
  • Build professional-quality GUIs using Tkinter
About the Author

Dr. Simon Monk has a degree in Cybernetics and Computer Science and a PhD in Software Engineering. He spent several years as an academic before he returned to industry, co-founding the mobile software company Momote Ltd. Dr. Monk has been an active electronics hobbyist since his early teens and is a full-time writer on hobby electronics and open source hardware. He is the author of numerous electronics books, including 30 Arduino Projects for the Evil Genius and Arduino + Android Projects for the Evil Genius, as well as co-author of Practical Electronics for Inventors, Third Edition.

Acknowledgmentsp. xv
Introductionp. xvii
Introductionp. 1
What Is the Raspberry Pi?p. 1
What Can You Do with a Raspberry Pi?p. 3
A Tour of the Raspberry Pip. 3
Setting Up Your Raspberry Pip. 5
Buying What You Needp. 5
Connecting Everything Togetherp. 11
Booting Upp. 12
Summaryp. 13
Getting Startedp. 15
Linuxp. 15
The Desktopp. 16
The Internetp. 18
The Command Linep. 19
Navigating with the Terminalp. 19
sudop. 21
Applicationsp. 22
Internet Resourcesp. 23
Summaryp. 24
Python Basicsp. 25
IDLEp. 25
Python Versionsp. 26
Python Shellp. 26
Editorp. 27
Numbersp. 29
Variablesp. 30
For Loopsp. 31
Simulating Dicep. 32
Ifp. 34
Comparisonsp. 35
Being Logicalp. 36
Elsep. 37
Whilep. 38
Summaryp. 39
Strings, Lists, and Dictionariesp. 41
String Theoryp. 41
Listsp. 43
Functionsp. 46
Hangmanp. 48
Dictionariesp. 55
Tuplesp. 56
Multiple Assignmentp. 57
Multiple Return Valuesp. 57
Exceptionsp. 58
Summary of Functionsp. 58
Numbersp. 58
Stringsp. 59
Listsp. 61
Dictionariesp. 61
Type Conversionsp. 62
Summaryp. 63
Modules, Classes, and Methodsp. 65
Modulesp. 65
Using Modulesp. 66
Useful Python Librariesp. 67
Installing New Modulesp. 67
Object Orientationp. 69
Defining Classesp. 69
Inheritancep. 71
Summaryp. 74
Files and the Internetp. 75
Filesp. 75
Reading Filesp. 75
Reading Big Filesp. 77
Writing Filesp. 78
The File Systemp. 79
Picklingp. 80
Internetp. 81
Summaryp. 83
Graphical User Interfacesp. 85
Tkinterp. 85
Hello Worldp. 85
Temperature Converterp. 86
Other GUI Widgetsp. 90
Checkbuttonp. 91
Listboxp. 91
Spinboxp. 92
Layoutsp. 92
Scrollbarp. 96
Dialogsp. 97
Color Chooserp. 98
File Chooserp. 99
Menusp. 99
The Canvasp. 100
Summaryp. 101
Games Programmingp. 103
What Is Pygame?p. 103
Hello Pygamep. 104
A Raspberry Gamep. 106
Following the Mousep. 106
One Raspberryp. 108
Catch Detection and Scoringp. 109
Timingp. 110
Lots of Raspberriesp. 111
Summaryp. 114
Interfacing Hardwarep. 115
GPIO Pin Connectionsp. 115
Direct Connection to GPIO Pinsp. 117
Expansion Boardsp. 117
Pi Facep. 117
Slice of PI/Op. 119
RaspiRobotBoardp. 120
Gertboardp. 121
Prototyping Boardsp. 122
Pi Cobblerp. 122
Pi Platep. 122
Humble Pip. 123
Arduino and the Pip. 124
Arduino and Pi Talkp. 125
Summaryp. 128
Prototyping Project (Clock)p. 129
What You Needp. 130
Hardware Assemblyp. 130
Softwarep. 132
Phase Twop. 134
Summaryp. 137
The RaspiRobotp. 139
What You Needp. 140
A Basic Roverp. 141
Hardware Assemblyp. 141
About the Softwarep. 145
Adding a Range Finder and Screenp. 147
Assemble the Range Finder Serial Adapterp. 147
Attach the Screenp. 147
Update the Softwarep. 149
Run Itp. 150
Revised Softwarep. 150
Summaryp. 152
What Nextp. 153
Linux Resourcesp. 153
Python Resourcesp. 153
Raspberry Pi Resourcesp. 154
Other Programming Languagesp. 155
Scratchp. 155
Cp. 155
Applications and Projectsp. 157
Media Center (Rasbmc)p. 157
Home Automationp. 158
Summaryp. 158
Indexp. 159
Table of Contents provided by Ingram. All Rights Reserved.

ISBN: 9780071807838
ISBN-10: 0071807837
Audience: General
Format: Paperback
Language: English
Number Of Pages: 192
Published: 20th November 2012
Dimensions (cm): 22.8 x 15.4  x 1.4
Weight (kg): 0.25