City Libraries, City of Gold Coast

Adventures in Raspberry Pi, Carrie Anne Philbin

Label
Adventures in Raspberry Pi, Carrie Anne Philbin
Language
eng
Illustrations
illustrations
Index
index present
Literary Form
non fiction
Main title
Adventures in Raspberry Pi
Responsibility statement
Carrie Anne Philbin
Summary
Provides instructions for using the Raspberry Pi 3, and explains how it can be used to create stories and games, code music, and build Minecraft worlds
Table Of Contents
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 -- 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 -- 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 "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 -- 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 -- Using Shutdown and Restart Commands -- Continuing Your Text Adventure -- 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 -- Scratch Turtle Graphics -- Using Pen Down and Pen Up -- Drawing Simple Shapes -- 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 -- Further Adventures with Minecraft 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 -- Using a Raspberry Pi GPIO Pin Layout Diagram -- Electronics Basics -- 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 -- 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 -- 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 PlRmotion Components -- Running PlRmotion.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 -- 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 Buttons -- Adapting Your Jukebox Program to Include GPIO Buttons -- Part Four: Displaying Jukebox Information on the LCD Screen -- Finishing Up -- Websites -- Clubs -- Inspiring Projects and Tutorials -- Videos -- Books and Magazines
Target audience
juvenile
Classification

Incoming Resources