Adventures in Raspberry Pi /

Build cool Raspberry Pi projects with no experience required! Adventures in Raspberry Pi, 3rd Edition is the fun guide to learning programming. Starting from the very basics and building skill upon skill, you'll learn developing fundamentals--even if you've never programmed before. Learnin...

Full description

Saved in:
Bibliographic Details
Main Author: Philbin, Carrie Anne (Author)
Format: Electronic eBook
Language:English
Published: Hoboken, NJ : John Wiley and Sons, Inc. : Wiley, 2017.
Subjects:
Online Access: Full text (MFA users only)
ISBN:9781119269076
1119269075
9781119269083
1119269083
Local Note:ProQuest Ebook Central
Table of Contents:
  • Intro
  • Title Page
  • Copyright Page
  • Table of Contents
  • Introduction
  • What Is the Raspberry Pi and What Can You Do With It?
  • Who Should Read This Book?
  • What You Will Learn
  • What You Need for the Projects
  • How This Book Is Organised
  • The Companion Website
  • Conventions
  • Reaching Out
  • Adventure 1 You Have a Raspberry Pi. Now What?
  • What Hardware Do You Need?
  • What Other Equipment Is Helpful?
  • Setting Up the Raspberry Pi
  • Downloading and Copying the Raspbian Operating System
  • Plugging in the Hardware
  • Installing and Configuring the Software
  • Exploring the Desktop in Raspbian
  • Shutting Down Your Raspberry Pi
  • Connecting to a Wi-Fi Network
  • Backing Up an SD Card Image
  • Adventure 2 Taking Command of Your Raspberry Pi
  • Exploring the Terminal
  • Commands for Navigating Through Your File System
  • Understanding sudo
  • Launching Programs from the Command Line
  • Managing Files and Directories
  • Installing and Updating Applications
  • Downloading and Installing Applications
  • Learning More About an Application
  • Upgrading Your Apps
  • Editing Files
  • Using Shutdown and Restart Commands
  • Continuing Your Text Adventure
  • Adventure 3 Creating Stories and Games with Scratch
  • Getting Started with Scratch
  • The Scratch Interface
  • A Quick Hello from Scratch Cat
  • Setting the Stage
  • Creating Costumes and Original Sprites
  • Using the Scratch Sprite Image Library
  • Editing an Existing Sprite
  • Creating Your Own Original Sprites
  • Animating a Crazy Monkey
  • Creating an Adventure Role-Playing Game
  • Creating Your Sprite and Stage
  • Setting the Start Position of the Adventurer Sprite
  • Creating Variables: Including Health Points for the Adventurer Sprite
  • Controlling the Direction and Movement of the Adventurer Sprite
  • Entering a Cave and Switching Backgrounds.
  • Creating Health-Point-Stealing Sprites
  • Improving the Movement of the Adventurer Sprite Using if Blocks
  • Creating a Game Over Screen
  • Ideas for Improvements to Your Game
  • Adventure 4 Programming Shapes with Turtle Graphics
  • Scratch Turtle Graphics
  • Using Pen Down and Pen Up
  • Drawing Simple Shapes
  • Using "clear" and Setting a Start Point
  • Using Variables Instead of Values
  • Changing the Size and Colour of the Pen
  • Creating Spiral Patterns
  • Using User Input to Determine the Number of Sides
  • Python Turtle Graphics
  • Introducing Python Modules
  • The Python 3 Environment and the Interpreter Window
  • Using the Turtle Module in Python
  • The range Function
  • Other Python Turtle Module Commands
  • Some Super Spirals
  • Further Adventures with Python Turtle
  • Adventure 5 Programming with Python
  • Getting Set Up for Python
  • Python Programming Language
  • The IDLE Environment
  • Programming in Python: Using a Function
  • Using a Text Editor to Create a Code File
  • Using the Python time and random Modules
  • Python Text Adventure Game
  • Getting User Input
  • Using Conditionals
  • Using a while Loop
  • Using a Variable for Health Points
  • Putting It All Together
  • Defining Functions
  • Creating a Main Game Loop
  • Continuing Your Python Adventure
  • Adventure 6 Programming Minecraft Worlds on the Raspberry Pi
  • Getting Started with Minecraft Pi
  • Your First Minecraft Pi Python Program
  • Using Coordinates in Minecraft Pi
  • Finding the Player's Location
  • Changing the Player's Location
  • Placing a Block
  • Placing Multiple Blocks
  • Types of Blocks
  • Creating a TNT Chain Reaction
  • Creating a Diamond Transporter
  • Sharing and Cloning Minecraft Pi Programs
  • Adventure 7 Coding Music with Sonic Pi
  • Getting Started with Sonic Pi
  • The Sonic Pi Interface
  • Creating Your First Sounds with Sonic Pi.
  • Twinkle Twinkle Little Star
  • Repeating Lines in a Loop
  • First Electronic Track
  • Using Different Synthesizer Sounds
  • Using Prerecorded Samples
  • Creating a Surprising Tune
  • Using "rand" to Play Random Notes
  • Using Algorithms
  • Running Two Scripts at the Same Time
  • Adding Effects
  • Making a Recording of Your Music
  • Further Adventures with Sonic Pi
  • Adventure 8 Using the GPIO Pins on the Raspberry Pi
  • Using a Raspberry Pi GPIO Pin Layout Diagram
  • Electronics Basics
  • Using a Python Library to Control GPIO
  • Making an LED Blink
  • Creating the LEDblink Python Code
  • Connecting the LEDblink Components
  • Running LEDblink.py in IDLE
  • Using a Button to Turn on an LED
  • Creating the buttonLED Python Code
  • Connecting the buttonLED Components
  • Running buttonLED.py in IDLE
  • Using a PIR Motion Sensor to Trigger a Sound
  • Creating the Motion-Sensing Python Code
  • Connecting the PIRmotion Components
  • Running PIRmotion.py in IDLE
  • The Marshmallow Challenge
  • Creating the Marshmallow Button
  • Mapping Marshmallow Input to a Keyboard Key
  • Scratch Marshmallow Game
  • Further Adventures with GPIO Pins
  • Adventure 9 Experimenting with Cameras and HATs
  • Getting Started with the Raspberry Pi Camera
  • Connecting the Camera to Your Raspberry Pi
  • Programming the Picamera with Python
  • Creating a Time-Lapse Photography Program
  • Mounting Your Camera
  • Making a Movie of Your Images
  • Getting Started with the Explorer HAT Pro
  • Connecting the HAT to Your Raspberry Pi
  • Downloading and Installing the Explorer HAT Library
  • Programming the LEDs
  • Programming the Touch Pads
  • Creating an Explorer HAT Pro Disco Trigger Trap
  • Creating the Disco Trigger Trap Python Code
  • Making the Aluminum Foil Trap
  • Getting Started with the Sense HAT
  • Programming the LED Matrix with Python.
  • Programming the Sensors to Find Out the Current Temperature
  • Creating Pixel Art
  • Creating a Sense HAT Desk Thermometer
  • Further Adventures with Cameras and HATs
  • Chapter 10 The Big Adventure: Building a Raspberry Pi Jukebox
  • An Overview of the Jukebox Project
  • What You Will Need
  • Part One: Creating the LCD Screen
  • Preparing the LCD Screen by Adding Headers
  • Mounting the LCD Screen and Wiring Up the Breadboard
  • Adding Scripts to Drive the LCD Screen
  • Part Two: Downloading and Playing MP3s
  • Installing a Media Player and Getting Music Files
  • Writing a Jukebox Python Program
  • Part Three: Controlling the Jukebox with Buttons
  • Connecting the Buttons
  • Adapting Your Jukebox Program to Include GPIO Buttons
  • Part Four: Displaying Jukebox Information on the LCD Screen
  • Finishing Up
  • Appendix Where to Go from Here
  • Websites
  • Clubs
  • Inspiring Projects and Tutorials
  • Videos
  • Books and Magazines
  • Glossary
  • Index
  • EULA.