4 options
Raspberry Pi 3 cookbook for Python programmers : unleash the potential of Raspberry Pi 3 with over 100 recipes / Tim Cox, Dr. Steven Lawrence Fernandes.
- Format:
- Book
- Author/Creator:
- Cox, Tim, author.
- Fernandes, Steven L., author.
- Language:
- English
- Subjects (All):
- Raspberry Pi (Computer)--Programming.
- Raspberry Pi (Computer).
- Python (Computer program language).
- Physical Description:
- 1 online resource (552 pages)
- Edition:
- Third edition.
- Other Title:
- Raspberry Pi three cookbook for Python programmers
- Place of Publication:
- Birmingham : Packt, 2018.
- System Details:
- text file
- Summary:
- A recipe-based guide to programming your Raspberry Pi 3 using Python About This Book Leverage the power of Raspberry Pi 3 using Python programming Create 3D games, build neural network modules, and interface with your own circuits Packed with clear, step-by-step recipes to walk you through the capabilities of Raspberry Pi Who This Book Is For This book is for anyone who wants to master the skills of Python programming using Raspberry Pi 3. Prior knowledge of Python will be an added advantage. What You Will Learn Learn to set up and run Raspberry Pi 3 Build text classifiers and perform automation using Python Predict sentiments in words and create games and graphics Detect edges and contours in images Build human face detection and recognition system Use Python to drive hardware Sense and display real-world data Build a neural network module for optical character recognition Build movie recommendations system In Detail Raspberry Pi 3 Cookbook for Python Programmers ? Third Edition begins by guiding you through setting up Raspberry Pi 3, performing tasks using Python 3.6, and introducing the first steps to interface with electronics. As you work through each chapter, you will build your skills and apply them as you progress. You will learn how to build text classifiers, predict sentiments in words, develop applications using the popular Tkinter library, and create games by controlling graphics on your screen. You will harness the power of a built in graphics processor using Pi3D to generate your own high-quality 3D graphics and environments. You will understand how to connect Raspberry Pi's hardware pins directly to control electronics, from switching on LEDs and responding to push buttons to driving motors and servos. Get to grips with monitoring sensors to gather real-life data, using it to control other devices, and viewing the results over the internet. You will apply what you have learned by creating your own Pi-Rover or Pi-Hexipod robots. You will also learn about sentiment analysis, face recognition techniques, and building neural network modules for optical character recognition. Finally, you will learn to build movie recommendations system on Raspberry Pi 3. Style and approach Written in a cookbook style, this book contains a series of recipes on various topics. It is an easy-to-follow step-by-step guide with examples of feature integration suitable for any search application.
- Contents:
- 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
- How it works...
- 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
- Using built-in Wi-Fi and Bluetooth on Raspberry Pi
- Connecting to your Wi-Fi network
- Connecting to Bluetooth devices
- Configuring your network manually
- Networking directly to a laptop or computer
- Direct network link
- See also
- Networking and connecting your Raspberry Pi to the internet via a USB Wi-Fi dongle
- Using USB wired network adapters
- Connecting to the internet through a proxy server
- Connecting remotely to Raspberry Pi over the network using VNC
- Getting ready.
- How to do it...
- Connecting remotely to Raspberry Pi over the network using SSH (and X11 forwarding)
- 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
- Keeping Raspberry Pi up to date
- Chapter 2: Dividing Text Data and Building Text Classifiers
- Building a text classifier
- Pre-processing data using tokenization
- Stemming text data
- Dividing text using chunking
- Building a bag-of-words model
- Applications of text classifiers
- Chapter 3: Using Python for Automation and Productivity
- Using Tkinter to create graphical user interfaces
- Creating a graphical application - Start menu
- Displaying photo information in an application
- Organizing your photos automatically
- Chapter 4: Predicting Sentiments in Words
- Building a Naive Bayes classifier
- Logistic regression classifier
- Splitting the dataset for training and testing
- Evaluating the accuracy using cross-validation
- Analyzing the sentiment of a sentence
- Identifying patterns in text using topic modeling
- How to do it.
- Applications of sentiment analysis
- Chapter 5: Creating Games and Graphics
- Using IDLE3 to debug your programs
- Drawing lines using a mouse on Tkinter Canvas
- Creating a bat and ball game
- Creating an overhead scrolling game
- Chapter 6: Detecting Edges and Contours in Images
- Loading, displaying, and saving images
- Image flipping
- Image scaling
- Erosion and dilation
- Image segmentation
- Blurring and sharpening images
- Detecting edges in images
- Histogram equalization
- How to do it…
- Detecting corners in images
- Chapter 7: Creating 3D Graphics
- Getting started with 3D coordinates and vertices
- Camera
- Shaders
- Lights
- Textures
- Creating and importing 3D models
- Creating or loading your own objects
- Changing the object's textures and .mtl files
- Taking screenshots
- Creating a 3D world to explore
- Building 3D maps and mazes
- The Building module
- Using SolidObjects to detect collisions
- Chapter 8: Building Face Detector and Face Recognition Applications
- Building a face detector application
- Building a face recognition application
- How it works...
- Applications of a face recognition system
- Chapter 9: Using Python to Drive Hardware
- Controlling an LED
- Controlling the GPIO current
- Responding to a button
- Trying a speaker or headphone with Raspberry Pi
- Safe voltages
- Pull-up and pull-down resistor circuits
- Protection resistors
- A controlled shutdown button
- Resetting and rebooting Raspberry Pi
- Adding extra functions
- The GPIO keypad input
- Generating other key combinations
- Emulating mouse events
- Multiplexed color LEDs
- Hardware multiplexing
- Displaying random patterns
- Mixing multiple colors
- Writing messages using persistence of vision
- Chapter 10: Sensing and Displaying Real-World Data
- Using devices with the I2C bus
- 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
- Gathering analog data without hardware
- Logging and plotting data
- Plotting live data
- Scaling and calibrating data
- Extending the Raspberry Pi GPIO with an I/O expander
- There's more.
- 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
- 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
- Security
- Using MySQL instead
- Sensing and sending data to online services
- Chapter 11: Building Neural Network Modules for Optical Character Recognition
- Visualizing optical characters
- Building an optical character recognizer using neural networks
- Applications of an OCR system
- Chapter 12: Building Robots
- Building a Rover-Pi robot with forward driving motors
- Darlington array circuits
- Transistor and relay circuits
- Tethered or untethered robots
- Rover kits
- Using advanced motor control
- Motor speed control using PWM control
- Using I/O expanders
- Building a six-legged Pi-Bug robot
- Controlling the servos
- The servo class
- Learning to walk
- The Pi-Bug code for walking
- Controlling servos directly with ServoBlaster
- Using an infrared remote control with your Raspberry Pi
- Avoiding objects and obstacles
- How to do it.
- Notes:
- Previous edition published: 2017.
- Description based on print version record.
- OCLC:
- 1035517229
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.