Raspberry Pi 3 Cookbook for Python Programmers Unleash the Potential of Raspberry Pi 3 with over 100 Recipes
Raspberry Pi 3 is a tiny affordable chip used to learn and program through interactive projects. It has gained a lot of traction as the first choice in single-board computers due to its versatility. It extends a wide range of support to Python programming. This recipe-based guide will allow you to s...
Gespeichert in:
| Hauptverfasser: | , |
|---|---|
| Format: | E-Book |
| Sprache: | Englisch |
| Veröffentlicht: |
Birmingham
Packt Publishing, Limited
2018
Packt Publishing Limited |
| Ausgabe: | 3 |
| Schlagworte: | |
| ISBN: | 9781788629874, 1788629876 |
| Online-Zugang: | Volltext |
| Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Inhaltsangabe:
- Cover -- Title Page -- Copyright and Credits -- Dedication -- Packt Upsell -- Contributors -- Table of Contents -- Preface -- Chapter 1: Getting Started with a Raspberry Pi 3 Computer -- Introduction -- Introducing Raspberry Pi -- What's with the name? -- Why Python? -- Python 2 and Python 3 -- Which version of Python should you use? -- The Raspberry Pi family - a brief history of Pi -- Which Pi to choose? -- Connecting to Raspberry Pi -- Getting ready -- How to do it... -- There's more... -- Secondary hardware connections -- Using NOOBS to set up your Raspberry Pi SD card -- Getting ready -- How to do it... -- How it works... -- There's more... -- Changing the default user password -- Ensuring that you shut down safely -- Preparing an SD card manually -- Expanding the system to fit in your SD card -- Accessing the RECOVERY/BOOT partition -- Using the tools to back up your SD card in case of failure -- Networking and connecting your Raspberry Pi to the internet via an Ethernet port, using a CAT6 Ethernet cable -- Getting ready -- How to do it... -- There's more... -- Using built-in Wi-Fi and Bluetooth on Raspberry Pi -- Getting ready -- How to do it... -- Connecting to your Wi-Fi network -- Connecting to Bluetooth devices -- Configuring your network manually -- Getting ready -- How to do it... -- There's more... -- Networking directly to a laptop or computer -- Getting ready -- How to do it... -- How it works... -- There's more... -- Direct network link -- See also -- Networking and connecting your Raspberry Pi to the internet via a USB Wi-Fi dongle -- Getting ready -- How to do it... -- There's more... -- Using USB wired network adapters -- Connecting to the internet through a proxy server -- Getting ready -- How to do it... -- How it works... -- There's more... -- Connecting remotely to Raspberry Pi over the network using VNC -- Getting ready
- How it works... -- See also -- Applications of a face recognition system -- Chapter 9: Using Python to Drive Hardware -- Introduction -- Controlling an LED -- Getting ready -- How to do it... -- How it works... -- There's more... -- Controlling the GPIO current -- Responding to a button -- Getting ready -- Trying a speaker or headphone with Raspberry Pi -- How to do it... -- How it works... -- There's more... -- Safe voltages -- Pull-up and pull-down resistor circuits -- Protection resistors -- A controlled shutdown button -- Getting ready -- How to do it... -- How it works... -- There's more... -- Resetting and rebooting Raspberry Pi -- Adding extra functions -- The GPIO keypad input -- Getting ready -- How to do it... -- How it works... -- There's more... -- Generating other key combinations -- Emulating mouse events -- Multiplexed color LEDs -- Getting ready -- How to do it... -- How it works... -- There's more... -- Hardware multiplexing -- Displaying random patterns -- Mixing multiple colors -- Writing messages using persistence of vision -- Getting ready -- How to do it... -- How it works... -- Chapter 10: Sensing and Displaying Real-World Data -- Introduction -- Using devices with the I2C bus -- Getting ready -- How to do it... -- How it works... -- There's more... -- Using multiple I2C devices -- I2C bus and level shifting -- Using just the PCF8591 chip or adding alternative sensors -- Reading analog data using an analog-to-digital converter -- Getting ready -- How to do it... -- How it works... -- There's more... -- Gathering analog data without hardware -- Logging and plotting data -- Getting ready -- How to do it... -- How it works... -- There's more... -- Plotting live data -- Scaling and calibrating data -- Extending the Raspberry Pi GPIO with an I/O expander -- Getting ready -- How to do it... -- How it works... -- There's more...
- How to do it...
- I/O expander voltages and limits -- Using your own I/O expander module -- Directly controlling an LCD alphanumeric display -- Capturing data in an SQLite database -- Getting ready -- How to do it... -- How it works... -- There's more... -- The CREATE TABLE command -- The INSERT command -- The SELECT command -- The WHERE command -- The UPDATE command -- The DELETE command -- The DROP command -- Viewing data from your own webserver -- Getting ready -- How to do it... -- How it works... -- There's more... -- Security -- Using MySQL instead -- Sensing and sending data to online services -- Getting ready -- How to do it... -- How it works... -- See also -- Chapter 11: Building Neural Network Modules for Optical Character Recognition -- Introduction -- Visualizing optical characters -- How to do it... -- Building an optical character recognizer using neural networks -- How to do it... -- How it works... -- See also -- Applications of an OCR system -- Chapter 12: Building Robots -- Introduction -- Building a Rover-Pi robot with forward driving motors -- Getting ready -- How to do it... -- How it works... -- There's more... -- Darlington array circuits -- Transistor and relay circuits -- Tethered or untethered robots -- Rover kits -- Using advanced motor control -- Getting ready -- How to do it... -- How it works... -- There's more... -- Motor speed control using PWM control -- Using I/O expanders -- Building a six-legged Pi-Bug robot -- Getting ready -- How to do it... -- How it works... -- Controlling the servos -- The servo class -- Learning to walk -- The Pi-Bug code for walking -- Controlling servos directly with ServoBlaster -- Getting ready -- How to do it... -- How it works... -- Using an infrared remote control with your Raspberry Pi -- Getting ready -- How to do it... -- There's more... -- Avoiding objects and obstacles -- Getting ready
- How to do it... -- There's more... -- Connecting remotely to Raspberry Pi over the network using SSH (and X11 forwarding) -- Getting ready -- How to do it... -- How it works... -- There's more... -- Running multiple programs with X11 forwarding -- Running as a desktop with X11 forwarding -- Running Pygame and Tkinter with X11 forwarding -- Sharing the home folder of Raspberry Pi with SMB -- Getting ready -- How to do it... -- Keeping Raspberry Pi up to date -- Getting ready -- How to do it... -- There's more... -- Chapter 2: Dividing Text Data and Building Text Classifiers -- Introduction -- Building a text classifier -- How to do it... -- How it works... -- See also -- Pre-processing data using tokenization -- How to do it... -- Stemming text data -- How to do it... -- Dividing text using chunking -- How to do it... -- Building a bag-of-words model -- How to do it... -- Applications of text classifiers -- Chapter 3: Using Python for Automation and Productivity -- Introduction -- Using Tkinter to create graphical user interfaces -- Getting ready -- How to do it... -- How it works... -- Creating a graphical application - Start menu -- Getting ready -- How to do it... -- How it works... -- There's more... -- Displaying photo information in an application -- Getting ready -- How to do it... -- How it works... -- There's more... -- Organizing your photos automatically -- Getting ready -- How to do it... -- How it works... -- Chapter 4: Predicting Sentiments in Words -- Building a Naive Bayes classifier -- How to do it... -- See also -- Logistic regression classifier -- How to do it... -- Splitting the dataset for training and testing -- How to do it... -- Evaluating the accuracy using cross-validation -- How to do it... -- Analyzing the sentiment of a sentence -- How to do it... -- Identifying patterns in text using topic modeling -- How to do it...
- Applications of sentiment analysis -- Chapter 5: Creating Games and Graphics -- Introduction -- Using IDLE3 to debug your programs -- How to do it... -- How it works... -- Drawing lines using a mouse on Tkinter Canvas -- Getting ready -- How to do it... -- How it works... -- Creating a bat and ball game -- Getting ready -- How to do it... -- How it works... -- Creating an overhead scrolling game -- Getting ready -- How to do it... -- How it works... -- Chapter 6: Detecting Edges and Contours in Images -- Introduction -- Loading, displaying, and saving images -- How to do it... -- Image flipping -- How to do it... -- Image scaling -- How to do it... -- Erosion and dilation -- How to do it... -- Image segmentation -- How to do it... -- Blurring and sharpening images -- How to do it... -- Detecting edges in images -- How to do it... -- How it works... -- See also -- Histogram equalization -- How to do it… -- Detecting corners in images -- How to do it... -- Chapter 7: Creating 3D Graphics -- Introduction -- Getting started with 3D coordinates and vertices -- Getting ready -- How to do it... -- How it works... -- There's more... -- Camera -- Shaders -- Lights -- Textures -- Creating and importing 3D models -- Getting ready -- How to do it... -- How it works... -- There's more... -- Creating or loading your own objects -- Changing the object's textures and .mtl files -- Taking screenshots -- Creating a 3D world to explore -- Getting ready -- How to do it... -- How it works... -- Building 3D maps and mazes -- Getting ready -- How to do it... -- How it works... -- There's more... -- The Building module -- Using SolidObjects to detect collisions -- Chapter 8: Building Face Detector and Face Recognition Applications -- Introduction -- Building a face detector application -- How to do it... -- Building a face recognition application -- How to do it...
- Raspberry Pi 3 Cookbook for Python Programmers: Unleash the potential of Raspberry Pi 3 with over 100 recipes

