Intro; Table of Contents; About the Author; About the Technical Reviewer; Acknowledgments; Preface; Introduction; Chapter 1: Introducing the Raspberry Pi; The History of the Raspberry Pi; Exploring the Pi; The GPIO Pins; USB & Ethernet; Audio Jack; Camera Connector; HDMI; Power; Display; The System on a Chip; SD Card; Not Visible; The Pi Zero/Zero W; GPIO; Camera Connector; Power; USB; HDMI; SD Card; System on a Chip; Not Visible; Comparing the Raspberry Pi to Similar Devices; Getting Started with the Pi; Hardware Requirements of the Pi; Connecting to Power; Adding a Monitor; Adding a USB Hub.
Getting Started with PythonRunning Python Using IDLE; Running Python Using the Terminal; Running Python Using Scripts; Exploring Python Data Types; Numbers; Strings; Lists; Dictionaries; Tuples and Files; Programming with Python; IF tests; Loops; Functions; Objects and Object-Oriented Programming; Summary; Chapter 4: Electronics at 100 MPH; Basic Electricity Concepts; Required Tools for Robotics; Screwdrivers; Pliers and Wire Strippers; Wire Cutters; Files; Magnifying Light; Hot-Glue Gun; Assorted Glues; Multimeter; Power Supplies; Breadboard; Power Strip; Soldering Iron; General Safety Rules.
The Pi Operating SystemFormatting the Card; Installing the OS; Connecting the Peripherals; Configuring the Pi; Shutting Down the Pi; Summary; Chapter 2: Linux by the Seat of Your Pants; Getting Started with Linux on the Pi; Linux Files and the File System; Root User Versus sudo; Commands; Exercise: Navigating in the Linux File System; Shells in Linux; Package Managers; Text Editors; Vim Versus emacs Versus nano; Using Vim; Using emacs; Using nano; Default Text Editor; Summary; Chapter 3: Introducing Python; Scripting Versus a Programming Language; The Python Philosophy.
Working with HeatWorking with Sharp Objects; Wear Safety Glasses; Fire Extinguishers at the Ready; Keep a First-Aid Kit Handy; Work in a Ventilated Area; Organizing Your Workplace; Bonus: Soldering Techniques; Summary; Chapter 5: The Web Bot; Bot Etiquette; The Connections of the Web; Web Communications Protocols; Web Page Formats; A Request Example; Our Web Bot Concept; Parsing Web Pages; Coding with Python Modules; Using the Mechanize Module; Parsing with Beautiful Soup; Downloading with the urllib Library; Deciding What to Download; Choosing a Starting Point; Storing Your Files.
Writing the Python BotReading a String and Extracting All the Links; Looking For and Downloading Files; Testing the Bot; Creating Directories and Instantiating a List; The Final Code; Summary; Chapter 6: The Weather Station; A Shopping List of Parts; Using the I2C Protocol; Using an Anemometer; Building the Anemometer; Connecting the Anemometer to the Pi; Correlating Revolutions per Second with Wind Speed; Connecting the Digital Compass; Connecting the Temperature/Humidity Sensor; Connecting the Barometer; Connecting the Bits; The Final Code; Summary; Chapter 7: The Media Server.
0
8
8
8
8
"Learn how to program your nifty new $35 computer to make a web spider, a weather station, a media server, and more. This book explores how to make a variety of fun and even useful projects, from a web bot to search and download files to a toy to drive your pets insane. Even if you're completely new to programming in general, you'll see how easy it is to create a home security system, an underwater photography system, an RC plane with a camera, and even a near-space weather balloon with a camera. You'll learn how to use Pi with Arduino as well as Pi with Gertboard, an expansion board with an onboard ATmega microcontroller. Learn Raspberry Pi Programming with Python has been fully updated in this new edition to cover the features of the new boards. You'll learn how to program in Python on your Raspberry Pi with hands-on examples and fun projects. What You'll LearnSet up your new Raspberry PiBuild unique projects across a range of interestsProgram basic functions and processes using PythonWho This Book Is ForReaders who want to learn Python on a fun platform like the Pi and pick up some electronics skills along the way. No programming or Linux skill required, but a little experience with Linux will be helpful. Readers familiar with the 1st edition will enjoy the updated information in this new edition."--