Raspberry Pi For Dummies

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

A recipe for having fun and getting things done with the Raspberry Pi The Raspberry Pi makes it easy to learn about computers and computer programming, and Raspberry Pi For Dummies makes it even easier! Using this extremely affordable and compact computer, you can learn to code in languages like Scratch and Python, explore how electronics work, create computer-generated buildings in Minecraft and music in Sonic Pic, become Linux-savvy, make Internet-of-Things devices, or just play around! This book gets you up and running on your Raspberry Pi, starting with setting it up, downloading the operating system, and using the desktop environment. Then, the only limit is your imagination! It doesn’t matter whether you have a Raspberry Pi 4, Raspberry Pi 400, Raspberry Pi Zero W or an older model: we’ve got you covered. Raspberry Pi For Dummies explores the latest technology—the Raspberry Pi 4 and 400, Scratch 3 programming language, new games bundled with the Raspberry Pi, and the hottest Add-Ons out there. This introductory guide is the perfect place to start if you want to get a taste of everything the Raspberry Pi can do! • Set up your Raspberry Pi, install the operating system, and connect to the Internet • Learn the basics of the Linux desktop and Linux shell so you can program, work, and play • Use Python, Scratch, and Sonic Pi to write your first programs and make games and digital music • Discover how circuits work hand-in-hand with your Pi If you want to make the most of the Raspberry Pi for school, work, or play, you’ll love this easy-to-read reference.

Author(s): Sean McManus, Mike Cook
Series: For Dummies
Edition: 4
Publisher: Wiley
Year: 2021

Language: English
Commentary: Vector PDF
Pages: 512
City: Hoboken, NJ
Tags: Linux; Command Line; Wi-Fi; Python; Chatbots; Hardware; Raspberry Pi; Networking; PyGame; Scratch; Minecraft; Wolfram Mathematica; Bluetooth; Sensors; Electronics; Audio; GPIO; RFID; GIMP; Do-It-Yourself; Electric Circuits; LEDs; Wireless Communications; Package Management

Title Page
Copyright Page
Table of Contents
Introduction
About This Book
Foolish Assumptions
Icons Used in This Book
Beyond the Book
Where to Go from Here
Part 1 Setting Up Your Raspberry Pi
Chapter 1 Introducing the Raspberry Pi
Introducing the Raspberry Pi Range
Raspberry Pi 4 Model B
Raspberry Pi 400
Raspberry Pi 3 Model A+
Raspberry Pi Zero
Older models
Figuring Out What You Can Do with a Raspberry Pi
Getting Your Hands on a Raspberry Pi
Determining What Else You Need
Essentials
Optional extras
Chapter 2 Downloading the Operating System
Introducing Linux
Imaging a microSD Card for Your Raspberry Pi
Choosing the Right Operating System for Your Raspberry Pi
Chapter 3 Connecting Your Raspberry Pi
Connecting Your Raspberry Pi
Setting Up Your Raspberry Pi
Configuring Your Raspberry Pi in Raspberry Pi OS
Changing Your Wi-Fi Settings
Configuring Bluetooth Devices
Connecting the Raspberry Pi Camera Module
Connecting the camera on a Pi Zero
Connecting the camera on other Raspberry Pi models
Testing the Camera Module
Connecting Using SSH
Connecting Using VNC
Part 2 Getting Started with Linux
Chapter 4 Using the Desktop Environment
Navigating the Raspberry Pi Desktop
Using the Applications menu
Running applications that are not on the menu
Resizing and closing application windows
Using the Task Manager
Using File Manager
Navigating File Manager
Copying and moving files and folders
Selecting multiple files and folders
Creating new folders and blank files
Deleting files and folders
Sorting files
Exploring your Raspberry Pi
Browsing the Web with Chromium
Searching within web pages
Using tabbed browsing
Adding and using bookmarks
Protecting your privacy
Sending and Receiving Email with Claws Mail
Using the Image Viewer
Using the Text Editor
Configuring Printers
Customizing the Desktop
Playing the Games
Finding and Installing New Applications
Backing Up Your Data
Logging Out and Shutting Down
Chapter 5 Using the Linux Shell
Understanding the Prompt
Exploring Your Linux System
Listing files and directories
Changing directories
Changing to the parent directory
Understanding the directory tree
Using relative and absolute paths
Checking file types
Investigating more advanced listing options
Understanding the Long Listing Format and Permissions
Slowing Down the Listing and Reading Files with the Less Command
Speeding Up Entering Commands
Using Redirection to Create Files
Creating Directories
Deleting Files
Using Wildcards to Select Multiple Files
Removing Directories
Copying and Renaming Files
Finding Files on Your Raspberry Pi
Installing and Managing Software on Your Raspberry Pi
Updating the cache
Finding the package name
Installing software
Running software
Upgrading the software
Removing software and freeing up space
Finding out what’s installed
Managing User Accounts on Your Raspberry Pi
Learning More about Linux Commands
Customizing the Shell with Your Own Linux Commands
Shutting Down and Rebooting Your Raspberry Pi
Part 3 Using the Raspberry Pi for Both Work and Play
Chapter 6 Being Productive with the Raspberry Pi
Installing LibreOffice on Your Raspberry Pi
Working with LibreOffice on the Raspberry Pi
Saving your work
Writing letters in LibreOffice Writer
Managing your budget in LibreOffice Calc
Creating presentations in LibreOffice Impress
Creating a party invitation with LibreOffice Draw
Chapter 7 Editing Photos on the Raspberry Pi with GIMP
Working with GIMP
Understanding the GIMP screen layout
Resizing an image in GIMP
Cropping your photo
Rotating and flipping your photo
Adjusting the colors
Fixing imperfections
Converting images between different formats
Finding Out More about GIMP
Chapter 8 Playing Audio and Video on the Raspberry Pi
Setting Up Your Media Center
Navigating the Media Center
Adding Media
Adding music
Adding videos
Adding pictures
Streaming media
Enjoying Your Media
Playing music
Playing videos
Viewing photos
Changing the Settings
Using a Remote Control
Turning Off Your Media Center
Playing Music in the Desktop Environment
Part 4 Programming the Raspberry Pi
Chapter 9 Introducing Programming with Scratch
Understanding What Programming Is
Working with Scratch
Understanding the Scratch screen layout
Making your sprite move
Creating scripts
Changing your sprite’s appearance
Adding sounds and music
Using the Wait block to slow down your sprite
Using extensions in Scratch
Saving your work
Chapter 10 Programming an Arcade Game Using Scratch
Starting a New Scratch Project and Deleting Sprites
Changing the Backdrop
Adding Sprites to Your Game
Drawing Sprites in Scratch
Naming Your Sprites
Controlling When Scripts Run
Using the green flag to start scripts
Using the Forever Control block
Enabling keyboard control of a sprite
Enabling a sprite to control another sprite
Using Random Numbers
Detecting When a Sprite Hits Another Sprite
Introducing Variables
Making Sprites Move Automatically
Fixing the Final Bug
Adding Scripts to the Stage
Duplicating Sprites
Playing Your Game
Adapting the Game’s Difficulty
Taking It Further with Scratch
Chapter 11 Writing Programs in Python
Working with Python
Entering your first Python commands
Using the shell to calculate sums
Creating the Times Tables Program
Creating and running your first Python program
Using variables
Accepting user input
Printing words, variables, and numbers together
Using for loops to repeat
Creating the Chatbot Program
Introducing lists
Using lists to make a random chat program
Adding a while loop
Using a loop to force a reply from the user
Using dictionaries
Creating your own functions
Creating the dictionary look-up function
Creating the main conversation loop
Final thoughts on Chatbot
The final Chatbot program
Chapter 12 Creating a Game with Python and Pygame Zero
Collecting Your Sounds and Images
Setting Up Your Folders
Creating and Running Your First Program
Detecting mouse clicks
Animating your actors
Using random numbers
Adding more clouds
Making the clouds regenerate
Enabling multiple clouds to be clicked
Adding the timer
Adjusting the game difficulty
The final game listing
Exploring Pygame Zero Further
Chapter 13 Programming Minecraft with Python
Playing Minecraft
Moving around
Making and breaking things
Preparing for Python
Using the Minecraft Module
Understanding coordinates in Minecraft
Repositioning the player
Adding blocks
Stopping the player from changing the world
Setting the maze parameters
Laying the foundations
Placing the maze walls
Understanding the maze algorithm
Setting up the variables and lists
Creating the functions
Creating the main loop
Adding a ceiling
Positioning the player
The final code
Adapting the Program
Chapter 14 Making Music with Sonic Pi
Understanding the Sonic Pi Screen Layout
Playing Your First Notes
Using Note and Chord Names
Playing Timed Patterns
Composing Random Tunes Using Shuffle
Changing the Random Number Seed
Using List Names in Your Programs
Playing Random Notes
Experimenting with Live Loops
Using Samples
Adding Special Effects
Synchronizing with Your Drumbeat
Bringing It All Together
Next Steps with Sonic Pi
Part 5 Exploring Electronics with the Raspberry Pi
Chapter 15 Understanding Circuits
Discovering What a Circuit Is
Understanding the nature of electricity
Determining how a component needs to be treated
Getting Familiar with the GPIO
Putting the general purpose in GPIO
Understanding what GPIOs do
Putting an output pin to practical use
Using GPIOs as inputs
Learning which end is hot: Getting to grips with a soldering iron
Making a soldered joint
Looking at Ready-Made Add-On Boards
The Sense HAT
The Trill sensors
The LED SHIM
Other boards
Chapter 16 Taking Control of Your Pi’s Circuitry
Accessing Raspberry Pi’s GPIO Pins
Soldering the GPIO pins onto Pi Zero or Pi ZeroW
Getting at all the pins with one connector
Connecting things together
Your First Circuit
Bringing your LED to life
Using Scratch 3.0
Control the flashing speed with an input
Using Python
Using GPIO ZERO
Starting Out with a Dice Display
A dice display
The project
The numbers
The display
Taking it further
Pedestrian Crossing
The Pedestrian Crossing hardware
The Pedestrian Crossing software
Taking it further
Chapter 17 Lots of Multicolored LEDs
Making Colors
Using diffusers
Making more colors
The Way Forward
Bit-banging the APA102C protocol
Creating a class
Rainbow Invaders
Keepy Uppy
LEDs Galore
Current limits
Signals and memory
Display update
Getting more LEDs
Chapter 18 Old McDonald’s Farm and Other RFID Adventures
How RFID Work
A MIFARE card’s structure
A simple RFID jukebox
A better RFID jukebox
Taking it further
Dressing Up a Paper Doll
Runway time
Old McDonald’s Farm
Making sound samples
Making the graphics
Part 6 The Part of Tens
Chapter 19 Ten Great Software Packages for the Raspberry Pi
Penguins Puzzle
FocusWriter
Mathematica
Fraqtive
Tux Paint
Grisbi
Beneath a Steel Sky
Brain Party
Pure Data
Inkscape
Chapter 20 Ten Inspiring Projects for the Raspberry Pi
One-Button Audiobook Player
Heartbeat Monitor
Smart Fridge
The Next Verse
Electric Skateboard
T-Shirt Cannon
Magic Mirror
Pi in the Sky
Raspberry Turk
Sound Fighter
Chapter 21 Ten Great Add-Ons for the Raspberry Pi
Picade
CamJam EduKit 3
Piano HAT
Rainbow HAT
Display-O-Tron HAT
Flick
Unicorn HAT HD
Inky pHAT
Pirate Audio
Witty Pi
Appendix Troubleshooting and Configuring the Raspberry Pi
Index
EULA