Raspberry Pi For Dummies. Sean McManusЧитать онлайн книгу.
you quickly find what you might have missed. We also include some signposts to future chapters, so you can skip ahead to a later chapter if it provides the quickest answer for you.
If you haven’t set up your Pi yet, start with Part 1. If you have your Pi up and running, Part 2 shows you how to use the software on it. Part 3 covers productivity, creativity, and entertainment software. To flex your programming muscles, perhaps for the first time, read Part 4. You can learn Scratch, Python, or Sonic Pi here, and feel free to start with any one of those languages. The Python chapters provide a good foundation for Part 5, where you can start building your own electronics projects.
Part 1
Setting Up Your Raspberry Pi
IN THIS PART …
Get to know the Raspberry Pi and what other equipment you will need to be able to use it.
Download the Linux operating system and prepare a microSD card for use on your Raspberry Pi.
Connect your Raspberry Pi to the power, keyboard, mouse, and screen.
Install and test the Raspberry Pi Camera Module.
Change the settings on your Raspberry Pi.
Chapter 1
Introducing the Raspberry Pi
IN THIS CHAPTER
Getting up close and personal with the Raspberry Pi
Taking stock of your Raspberry Pi
Purchasing your very own Raspberry Pi
Figuring out what else you need
The Raspberry Pi is perhaps the most inspiring computer available today. Although most of the computing devices being used (including phones, tablets, and game consoles) are designed to stop people from tinkering with them, the Raspberry Pi is exactly the opposite. It invites you to prod it, play with it, and create with it. It comes with the tools you need to start creating your own software (or programming), and you can connect your own electronic inventions to it. Some models are cheap enough that breaking them won’t break the bank, so you can experiment with confidence.
Lots of people are fired up about the Raspberry Pi’s potential, and they’re discovering exciting new ways to use it. Dave Akerman (www.daveakerman.com
) and friends attached one to a weather balloon and sent it nearly 40 kilometers high to take pictures of the Earth from near space using a webcam. (You can read about Dave’s ballooning project in Chapter 20.)
Professor Simon Cox and his team at the University of Southampton connected 64 Raspberry Pi boards to build an experimental supercomputer, held together by Lego bricks. In the supercomputer (see Figure 1-1), the Raspberry Pis work together to solve a single problem. The project has been able to cut the cost of a supercomputer from millions of dollars to thousands or even hundreds of dollars, making supercomputing much more accessible to schools and students. Others have also experimented with combining the processing power of multiple Pis. There’s even an off-the-shelf kit you can use to combine four Raspberry Pi Zeros with a full-size Raspberry Pi (the Cluster HAT from Pimoroni) so that you can experiment with running programs across multiple Pis at the same time.
Courtesy of Simon Cox and Glenn Harris, University of Southampton.
FIGURE 1-1: Two of the Raspberry Pi boards used in the University of Southampton’s supercomputer, with the rest of the supercomputer in the background.
The Pi is also being used to make fitness gadgets, gaming devices, electric skateboards, and much more, as you discover in Chapter 20.
Although those projects are grabbing headlines, another story is less visible but more important: the thousands of people of all ages who are taking their first steps in computer science, thanks to the Raspberry Pi.
Both of the authors of this book used computers in the 1980s, when the notion of a home computer first became a reality. Back then, computers were less friendly than they are today. When you switched them on, you were faced with a flashing cursor and had to type something in to get it to do anything. As a result, though, a whole generation grew up knowing at least a little bit about how to give the computer commands, and how to create programs for it. As computers started to use mice and windows, people didn’t need those skills any more, and they lost touch with them.
Eben Upton, designer of the Raspberry Pi, noticed the slide in skill levels when he was working at Cambridge University’s computer laboratory in 2006. Students applying to study computer science started to have less experience with programming than students of the past did. Upton and his university colleagues hatched the idea of creating a computer that would come supplied with all the tools needed to program it — and would sell for a target price of $25 (about £20). It had to be able to do other interesting things, too, so that people were drawn to use it, and it had to be robust enough to survive being pushed in and out of school bags hundreds of times.
That idea started a six-year journey that led to the Raspberry Pi you probably have on your desk you as you read this book. It was released in February 2012, and sold half a million units by the end of the quarter. By July 2017, there were more than 14 million Raspberry Pis in homes, schools, and workplaces, 10 million of them made in the UK. More than 30 million Raspberry Pi computers have now been sold. It is, by a large margin, the best-selling British computer of all time.
Introducing the Raspberry Pi Range
Over the years, the Raspberry Pi has evolved, increasing its memory, improving its performance, and adding features. So which one should you get? Here’s an overview designed to help you decide.
Raspberry Pi 4 Model B
This model is a circuit board with components and sockets stuck on it, as shown in Figure 1-2. In an age when most computing devices are sleek and shiny boxes, the spiky Pi, with tiny codes printed in white all over it, seems alien. That’s a big part of its appeal, though: Many of the cases you can buy for the Raspberry Pi are transparent because people love the look of it.
The Raspberry Pi 4 is the latest Raspberry Pi board. It features the following:
Up to 8GB of memory
Four USB ports (two USB 2 ports and two higher-speed USB 3 ports)
Built-in Wi-Fi and Bluetooth and a Gigabit Ethernet port for a wired Internet or network connection
A