pRiMER in t his pRiMER you will GEt sEt up FoR EvERythinG you nEEd in thE FollowinG pRojEcts wE’ll intRoducE you to thE RaspBERRy pi BoaRd and its Most iMpoRtant and intEREstinG paRts thEn wE’ll walk you thRouGh sEttinG up thE pi with all thE haRdwaRE and soFtwaRE it nEEds
This is a simple process that lets you use the Pi for so many things including as a regular computer We’ll go over setting up the Pi as a computer and show you how to navigate the desktop and file sys tems We’ll show you how to use the terminal also known as the command line to give instructions to the Pi Finally we’ll introduce you to the Python programming language which is what we’ll be using to program the projects Once you’re done with this primer you’ll be ready to tackle the projects geTTINg sTArTeD WITh The rAspBerrY pI We’ll start by exploring uses for the Raspberry Pi board gathering what we need to get it running and loading an operating system onto a freshly formatted microSD card to put in the Pi board The Raspberry Pi is a credit card size microcomputer board that you can buy for about 35 It has everything a normal computer has a processor RAM ports to plug in a monitor mouse and keyboard and the ability to connect to the internet The Raspberry Pi board even has one special feature that normal computers don’t General Purpose Input Output Pins GPIOs These GPIOs let the Pi interact with the real world allowing you to build smart electronics projects and control them with the Pi You can use the Raspberry Pi to do most things you do with a regular computer such as browsing the web editing documents play ing games coding and much more Figure 0-1 shows a Raspberry Pi being used as a desktop computer Figure 0-1 Using the Raspberry Pi as a desktop computer 3 pRiMER
However keep in mind that the Pi isn’t as powerful as more expensive computers so it has some limitations First it can’t keep up with the demands of some modern software so not all software will work with the Pi Second it runs the Linux operating system instead of Windows or macOS which may be more familiar to you uses for the raspberry pi So what’s the advantage of the Raspberry Pi if it’s like a normal computer but with some limitations The Pi gives you freedom to experiment in ways you wouldn’t or couldn’t with your computer Computers are expensive and much harder to fix so you wouldn’t want to tinker too much without knowing exactly what you’re doing However as Linus Torvalds the founder of Linux said in an inter view with BBC News Raspberry Pi makes it possible to afford failure You can play around with hardware and software on the Pi without worrying about breaking something expensive or losing all your important files The Pi lets you experiment in two main ways creating your own programs The Pi comes with a set of free tools for writing software If you make a mistake you can just wipe your Pi and start over creating your own electronics projects The Pi board has GPIOs that allow you to connect sensors and other electronic devices that can interact with the real world You can create use ful things and have your projects running 24 7 without using much electricity There are endless uses for Raspberry Pi Here are some examples of projects people around the world have been making a retro gaming console to play old arcade games a supercomputer built by linking multiple Pi boards a cloud server to store and access your data a media center to organize and play media on your TV a home automa tion system to control and monitor devices in the house a whole host of awesome and useful robots like farming robots and autonomous robot cars just to mention a few For an example of a really cool Pi project check out the SeeMore sculpture shown in Figure 0-2 which displays the beauty of parallel algorithms by correlating the movements of a 256-node Raspberry Pi cluster 4 pRiMER