Raspberry Pi For Dummies. Sean McManusЧитать онлайн книгу.
40 general-purpose input/output (GPIO) pins, which you can use to connect your own electronics projects or specially designed add-ons (see Chapter 21)FIGURE 1-2: The Raspberry Pi 4 Model B (center), Model A+ (top right), and Pi Zero W (top left).
Support for two monitors at resolutions of up to 4K
Compatibility with the Raspberry Pi Camera Module
Power over Ethernet (PoE) support when used with the Raspberry Pi PoE HAT, which enables you to use your Ethernet cable for both networking and powering your Pi
Like previous Pi models, the Raspberry Pi 4 is about the size of a deck of cards. As with any current Raspberry Pi, it uses a microSD card for storage. Its price is around $35 for 2GB of memory or $75 for 8GB of memory.
The Raspberry Pi Desktop Kit is also available, which includes the accessories you’ll need, except for the monitor.
The Raspberry Pi 4 is our recommendation for the most powerful budget-friendly Raspberry Pi. You may be able to use it with your own keyboard and mouse to save money. The GPIO pins are great for electronics projects.
It’s called the Model B, incidentally, as a tribute to the BBC Microcomputer that was popular in the UK in the 1980s. It’s sobering to think that the BBC Micro cost about ten times the price of a Raspberry Pi, which, thanks to 40 years of progress in computer science, has more than 15,600 times more memory.
Raspberry Pi 400
The Raspberry Pi 400 (see Figure 1-3) takes even more inspiration from the classic computers of the ’80s by building the Raspberry Pi 4 computer into a computer keyboard. It makes the whole setup much more compact, because you don’t have the separate Pi unit on the table, with a cable going to the keyboard.
FIGURE 1-3: The Raspberry Pi 400 hides the computer inside the keyboard.
There are performance improvements, too. The Raspberry Pi 400 is faster than the Raspberry Pi 4, and it’s designed with passive cooling built in.
The Raspberry Pi 400 is a white keyboard, with all the sockets on the back of it. It features the following:
4GB of memory.
Three external USB ports (one USB 2 port and two higher-speed USB 3 ports). This is fewer than the four ports you get on a Raspberry Pi 4. The fourth port is used to connect the keyboard inside the case.
Built-in Wi-Fi and Bluetooth and a Gigabit Ethernet port for a wired Internet or network connection.
40 GPIO pins, but these are on the back of the case, not on the top surface. You’ll need to use an extension cable or board to use the pins easily and to use add-on boards (see Chapter 21). Although add-on boards can be connected directly, few will work well because their top surface will face away from you.
Support for two monitors at resolutions of up to 4K.
No compatibility with the Raspberry Pi Camera Module. You can use a USB camera, as you can on any Raspberry Pi computer.
There is no audio out socket, so you’ll need to pass audio through your monitor.
The Raspberry Pi 400 costs $70. The Raspberry Pi 400 Personal Computer Kit adds the accessories you’ll need, except for the monitor. The Raspberry Pi 400 is a fantastic value, but it’s more expensive than the bare board. We recommend the Raspberry Pi 400 if your budget will bear it and you plan to use the Raspberry Pi as a desktop computer. For electronics projects, we find the bare board easier to use.
The official Raspberry Pi keyboard and the Raspberry Pi 400 look the same. If you have both on your desk, put a sticker on one of them; otherwise, you’ll waste time trying to use the wrong one!
Raspberry Pi 3 Model A+
The Model A+ is a cut-down bare-board Raspberry Pi. It’s useful for projects that need lower power consumption — typically battery-based projects. It is suitable for robots and projects in remote locations, where a wired electricity supply isn’t viable and batteries must be used instead.
It features the following:
512MB of memory
One USB 2 port
Built-in Wi-Fi and Bluetooth
A headphones-style audio-out socket
40 GPIO pins
Compatibility with the Raspberry Pi Camera Module
This model has a price of $20. The Model A+ is slightly shorter on the long side than the Raspberry Pi 3, measuring 2½ inches by 2 inches.
Raspberry Pi Zero
The Raspberry Pi Foundation astounded everyone when it gave the Raspberry Pi Zero computer away with the print edition of its magazine The MagPi. We’d seen cover-mounted CDs and even tapes long ago, but never a computer before.
There are three models: Raspberry Pi Zero, Raspberry Pi Zero W (adding wireless networking), and Raspberry Pi Zero WH (adding wireless networking and GPIO pins).
The Raspberry Pi Zero family features the following:
A lightweight, smaller board measuring just 2½ inches by 1 inch.
A single-core 1 GHz processor. This is less powerful than the bigger boards. The Model B and A+ are quad-core, which means there are four processing units inside the chip that can all work at the same time. The quad-core processors run at a higher frequency, too. Here, you get a single core running at a lower frequency.
512MB of memory.
One Micro USB port.
Built-in Wi-Fi and Bluetooth, only on the Raspberry Pi Zero W and Zero WH.
40 GPIO pins, only on the Raspberry Pi Zero WH. On other models, you can solder your own pins.
Compatibility with the Raspberry Pi Camera Module, only on the Raspberry Pi Zero W and Zero WH.
You’ll also need a converter for the Mini HDMI socket, and for the Micro USB socket, so you should expect to spend a bit more than the price of the Pi (and have a bit more complexity in your setup). Billed as the $5 computer, the Raspberry Pi Zero has at times been difficult to get hold of, which is perhaps not surprising given the phenomenal demand for it.
The Raspberry Pi Zero is great for compact electronics projects that don’t need the performance of a Model B or Model A+.
Older models
Of course, the older Raspberry Pis are still out there. Recent models usually remain in production while there is demand, and you can buy secondhand versions online from websites such as eBay. Generally speaking, the newer the model, the faster its performance. Memory upgrades have made a difference, as well as the use of more powerful processors, as the Pi has evolved. There are plenty of uses for the Pi that don’t need especially fast