Raspberry Pi User Guide

Raspberry Pi User Guide

Paperback

$22.50 $25.00 Save 10% Current price is $22.5, Original price is $25. You Save 10%.
View All Available Formats & Editions
Use Standard Shipping. For guaranteed delivery by December 24, use Express or Expedited Shipping.

Product Details

ISBN-13: 9781119264361
Publisher: Wiley
Publication date: 08/29/2016
Pages: 312
Sales rank: 151,369
Product dimensions: 7.30(w) x 9.20(h) x 0.60(d)

About the Author

Eben Upton is the co-creator of the Raspberry Pi board, and the co-founder of the UK nonprofit Raspberry Pi Foundation.

Gareth Halfacree is a veteran tech author and an expert on the Raspberry Pi.

Table of Contents

Introduction 1

Programming Is Fun! 1

A Bit of History 3

So What Can You Do with the Raspberry Pi? 8

Part I The Board 11

CHAPTER 1 Meet the Raspberry Pi 13

A Trip Around the Board 13

Model A/B 16

Model A+/B+ 16

Raspberry Pi 2 17

Raspberry Pi 3 18

Raspberry Pi Zero 19

A Bit of Background 20

ARM Versus x86 20

Windows Versus Linux 21

CHAPTER 2 Getting Started with the Raspberry Pi 23

Connecting a Display 23

Composite Video 24

HDMI Video 25

DSI Video 26

Connecting Audio 26

Connecting a Keyboard and Mouse 27

Installing NOOBS on an SD Card 29

Connecting External Storage 30

Connecting the Network 31

Wired Networking 32

Wireless Networking 33

Connecting Power 34

Installing the Operating System 35

Installing Using NOOBS 35

Installing Manually 37

Connecting Bluetooth Devices 41

CHAPTER 3 Linux System Administration 43

Linux: An Overview 43

Linux Basics 46

Introducing Raspbian 46

About Raspbian’s Parent, Debian 51

Alternatives to Raspbian .51

Using External Storage Devices 52

Creating a New User Account 54

File System Layout 54

Logical Layout 55

Physical Layout 57

Installing and Uninstalling Software 57

Managing Software Graphically 57

Managing Software at the Command Line 58

Finding the Software You Want 60

Installing Software 61

Uninstalling Software 62

Upgrading Software 62

Shutting the Pi Down Safely 63

CHAPTER 4 Troubleshooting 65

Keyboard and Mouse Diagnostics 65

Power Diagnostics 66

Display Diagnostics 68

Boot Diagnostics 69

Network Diagnostics 69

CHAPTER 5 Network Configuration 73

Wired Networking 73

Connecting to a Wired Network via the GUI 73

Connecting to a Wired Network via the Console 75

Testing Your Connectivity 76

Wireless Networking 76

Connecting to a Wireless Network via the GUI 77

Connecting to a Wireless Network via the Console 79

CHAPTER 6 The Raspberry Pi Configuration Tool 85

Running the Tool 85

The System Tab 86

Filesystem 86

Password 87

Hostname 88

Boot 88

Auto Login 88

Network at Boot 89

Overscan 89

Rastrack 89

The Interfaces Tab 90

Camera 91

SSH 91

SPI 91

I2C 91

Serial 91

1-Wire 92

Performance 92

Overclock 92

GPU Memory 94

Localisation 94

Locale 94

Timezone 96

Keyboard 96

CHAPTER 7 Advanced Raspberry Pi Configuration 99

Editing Configuration Files via NOOBS 99

Hardware Settings: config.txt 101

Modifying the Display 102

Boot Options 105

Overclocking the Raspberry Pi 106

Disabling L2 Cache 110

Enabling Test Mode 110

Memory Partitioning 111

Software Settings: cmdline.txt 112

Part II Building a Media Centre or Productivity Machine 115

CHAPTER 8 The Pi as a Home Theatre PC 117

Playing Music at the Console 117

Dedicated HTPC with OSMC 119

Streaming Internet Media 122

Streaming Local Network Media 123

Configuring OSMC 124

CHAPTER 9 The Pi as a Productivity Machine 127

Using Cloud-Based Apps 127

Using LibreOffice 130

Image Editing with the Gimp 131

Part III Programming the Pi 135

CHAPTER 10 An Introduction to Scratch 137

Introducing Scratch 137

Example 1: Hello World 138

Example 2: Animation and Sound 141

Example 3: A Simple Game 144

Interfacing Scratch with Hardware .149

Further Reading 152

CHAPTER 11 An Introduction to Python 153

Introducing Python 153

Example 1: Hello World 154

Example 2: Comments, Inputs, Variables, and Loops 159

Example 3: Gaming with pygame 164

Example 4: Python and Networking 172

Further Reading 179

CHAPTER 12 Minecraft Pi Edition 181

Introducing Minecraft Pi Edition 181

Installing Minecraft 182

Running Minecraft 182

Exploration 184

Hacking Minecraft 185

Part IV Hardware Hacking 191

CHAPTER 13 Learning to Hack Hardware 193

Electronic Equipment 193

Reading Resistor Colour Codes 195

Sourcing Components 197

Online Sources 197

Offline Sources 198

Hobby Specialists 199

Moving Up from the Breadboard 199

A Brief Guide to Soldering 202

CHAPTER 14 The GPIO Port 207

Identifying Your Board Revision 207

GPIO Pinout Diagrams 208

GPIO Features 210

UART Serial Bus 211

I2C Bus 211

SPI Bus 211

Using the GPIO Port in Python 212

GPIO Output: Flashing an LED 212

GPIO Input: Reading a Button 216

Soldering the Raspberry Pi Zero’s GPIO Header 220

CHAPTER 15 The Raspberry Pi Camera Module 223

Why Use the Camera Module? 224

Choosing a Camera Module 224

Installing the Camera Module 225

Enabling Camera Mode 228

Capturing Stills 230

Recording Video 232

Command-Line Time-Lapse Photography 233

CHAPTER 16 Add-On Hardware 237

Official Raspberry Pi Case 238

Installation 239

Raspberry Pi 7" Touchscreen Display 240

Installation 241

Sense HAT 244

Installation 245

Programming the Sense HAT 247

Part V Appendixes 251

APPENDIX A Python Recipes 253

Raspberry Snake (Chapter 11, Example 3) 253

IRC User List (Chapter 11, Example 4) 255

GPIO Input and Output (Chapter 14) 257

APPENDIX B Raspberry Pi Camera Module Quick Reference 259

Shared Options 259

Raspistill Options 264

Raspivid Options 266

APPENDIX C HDMI Display Modes 269

Index 277

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews

Raspberry Pi User Guide 5 out of 5 based on 0 ratings. 4 reviews.
FRINGEINDEPENEDENTREVIEW More than 1 year ago
Are you a new Pi user or curious hacker? If you are, this book is for you. Authors Eben Upton and Gareth Halfacree, have done an outstanding job of writing a 3rd edition of a book that provides an introduction to the world of Raspberry Pi. Authors Upton and Halfacree, begin by showing you how to connect your Raspberry Pi to a display, keyboard and mouse; install an operating system; and, jump straight into using the Pi. Next, the authors present a quick primer on how to use the operating system. In addition, they look at some of the most common reasons for the Pi to misbehave and how to fix them. The authors also concentrate on whether you know that your network doesn’t have a Dynamic Host Configuration Protocol server (a system that tells the Pi and other devices on the network how they should connect) or if you want to use a USB wireless adapter with the Pi. Then, they continue by discussing why although raspi-config is designed to be safe, some settings (in particular, the overclock option) can leave your Raspberry Pi unable to boot. The authors then offer a word of warning: Changing the settings on config.txt and cmdline.txt from their defaults, can result in a Pi that doesn’t boot until the files are reverted, in the best case; and, that can physically damage the system, in the worst case. Next, they cover the most popular tasks for a Pi: That of a home theater PC, or HTPC. In addition, the authors show you how the Pi can be used as a day-to-day machine for office and school work, while not harming its usability as a platform for programming and experimentation, by using either locally installed applications or cloud-based services. They also explain why that in order to ensure a Web server’s maximum performance, you must switch the Pi’s memory partitioning to reserve just 16MB or 32MB for the GPU; and, not run a graphical user interface at the same time. Then, the authors discuss how the Raspberry Pi Foundation is working to get the Pi device adopted as an educational tool for all ages by using Scratch. Next, they cover the high-level language Python code; and, how it provides the Pi with commands in a manner that is quick to learn and easy to follow. The authors continue by looking at Minecraft: Which is now available for the Raspberry Pi, and brings with it educational elements that let interested parties learn through play. They then stress that before you can get started building circuits to use with the Pi’s GPIO port, you need some additional equipment and an understanding about some of the language surrounding the world of electronics. Next, the authors show you where the Raspberry Pi’s GPIO port is located: On the top-left of the printed circuit board, labeled P1. In addition, they cover the Raspberry Pi Camera Module: Which is the most compact way of adding the ability to record still images and video to your project. Finally, the authors take a peek at the add-on boards, which simply provide easier access to the Raspberry Pi’s GPIO pins. This excellent book explores a number of things you can do with your Raspberry Pi, from controlling hardware with Python, to using its as a media center, setting up camera projects, or building games in Scratch. Also, this great book shows how the Raspberry Pi exposes GPIO, so that you can get to work right away.
Anonymous More than 1 year ago
lots of command to get started learning Linux in here, tell you step by step how to do them and setup a lot of other thing in Linux as well as the Raspberry Pi
Anonymous More than 1 year ago
Anonymous More than 1 year ago
YAY