最新章節
- Summary
- Stackable breadboard
- GPIO pin mapping
- The RUN switch of the Raspberry Pi Zero board
- VNC access to Raspberry Pi
- Saving SSH sessions on PuTTY
品牌:中圖公司
上架時間:2021-07-02 18:56:11
出版社:Packt Publishing
本書數字版權由中圖公司提供,并由其授權上海閱文信息技術有限公司制作發行
- Summary 更新時間:2021-07-02 23:49:20
- Stackable breadboard
- GPIO pin mapping
- The RUN switch of the Raspberry Pi Zero board
- VNC access to Raspberry Pi
- Saving SSH sessions on PuTTY
- SSH aliases (on Mac/Linux Terminals)
- Graphical text editors
- Command-line text editors
- Git
- Mac/Linux environment
- WinSCP
- Transferring files to/from your Pi
- SSH access via Linux/macOS
- SSH access via Windows
- Setting up your development environment
- Updating your OS
- Change your Raspberry Pi's password
- Tips and Tricks
- Summary
- Smart lawn sprinkler
- Building the visual aid
- Fitbit API Test
- Getting access keys for Fitbit client
- Installing requisite software packages
- Personal Health Improvement — Sitting is the new smoking
- Building the web dashboard
- Web framework based appliance control/dashboard
- Adding a button
- Building voice commands
- Houndify
- Connecting the microphone
- Connecting the speaker
- Setting up the audio tools
- How does it work?
- Installing requisite packages
- Voice activated personal assistant
- Home Automation Using the Raspberry Pi Zero
- Summary
- Project enhancements
- Troubleshooting tips
- Buttons for robot control
- Camera setup for the web interface
- The web interface
- Verification of camera function
- Camera setup
- Dependencies
- Motor test
- Detecting motor driver
- Motor driver detection
- Testing the motors
- Using an external power supply
- Using the Raspberry Pi Zero's 5V power supply
- Setting up the motor power supply
- Robot Power supply setup
- Raspberry Pi Zero and motor driver assembly
- Raspberry Pi Zero and motor driver assembly
- Preparing the motor driver circuit
- Motor driver and motor selection
- Chassis setup
- Enabling SSH access
- Changing the password
- Setting up remote login
- Components of the robot
- Lets Build a Robot!
- Summary
- Verifying PEP8 guidelines
- PEP8 style guide for Python
- Threading in Python
- Logging
- Project challenge
- A challenge to the reader
- Improving your vocabulary
- Project challenge
- A challenge to the reader
- Improving daily commute
- Automating routing tasks
- Speech recognition
- Installing the camera to the Raspberry Zero
- A challenge to the reader
- The verification of the installation
- OpenCV
- Image processing using a Raspberry Pi Zero
- Awesome Things You Could Develop Using Python
- Summary
- Controlling appliances using the Flask framework
- Building our first example
- Installing Flask
- Flask web framework
- The application of requests - publishing events to the Internet
- The application of requests - retrieving weather information
- Connecting to the Internet - web requests
- try...except...else...finally
- try...except...else
- The try/except keywords
- Requests and Web Frameworks
- Summary
- The sys module
- The subprocess module
- The shutil module
- Challenge to the reader
- The glob module
- Monitoring a process
- Killing a process
- Deleting files
- Checking for a folder's existence
- Checking a file's existence
- The os module
- Python utilities
- Reading from CSV files
- Writing to CSV files
- Reading/writing to CSV files
- Challenge to the reader
- configparser
- The with keyword
- Challenge to the reader
- r+
- Read n bytes
- seek
- Appending to a file
- Writing to a file
- Reading lines
- Reading from a file
- File I/O
- File I/O and Python Utilities
- Summary
- Light control daemon
- Speaker controller
- self
- Doc strings in Python
- Adding methods to a class
- Class
- Revisiting the student ID card example
- OOP in Python
- Sets
- Tuples
- Dictionaries
- Let's build a simple game!
- List membership
- Accessing a set of elements within a list
- Accessing list elements
- Create copies of a list
- Reverse the order of elements in list
- Sorting the elements of a list
- Clearing the elements of a list
- Extending a list
- Challenge to the reader
- Inserting element at a specific position:
- Counting the instances of an element:
- Popping an element from the list
- Retrieving the index of an element
- Remove element from list:
- Append element to list:
- Operations that could be performed on a list
- Lists
- Data Types and Object-Oriented Programming in Python
- Summary
- Challenge to the reader
- Example 4 - writing to external memory chip
- The SPI interface
- Challenge
- I2C drivers for the lux sensor
- Example 3 - Sensorian add-on hardware for the Raspberry Pi
- Example
- Installing libraries
- Example 2 - PiGlow
- I2C communication
- Python code for serial port communication
- Example 1 - interfacing a carbon dioxide sensor to the Raspberry Pi
- Setting up the Raspberry Pi Zero serial port
- Raspberry Pi Zero's UART port
- UART - serial port
- Communication Interfaces
- Summary
- Some mini-project challenges for the reader
- DC motor control in Python
- GPIO callback functions
- The scope of variables in a function
- Returning values from a function
- Passing arguments to a function:
- Functions in Python
- Breaking out a loop by counting button presses
- The applications of conditional statements: executing tasks using GPIO
- Breaking out of loops
- if-elif-else statement
- An if-else statement
- Conditional statements
- Conditional Statements Functions and Lists
- Summary
- The applications of GPIO control
- Code
- Blinky lights
- Raspberry Pi's GPIO
- A while loop
- Nested loops
- Indentation
- A for loop
- Loops in Python
- Concatenating strings
- Another exercise for the reader
- An exercise for the reader
- The str.format() method
- The formatted string output
- Reading inputs from the user
- Data types and variables in Python
- Logical operators
- Bitwise operators in Python
- Arithmetic operations
- Hardware required for this chapter
- Arithmetic Operations Loops and Blinky Lights
- Summary
- The help() function
- The print() function
- Executing Python scripts using the Linux Terminal
- Launching the Python interpreter via the Linux Terminal
- The text editor approach
- IDLE's interactive tool
- Setting up your Raspberry Pi Zero for Python programming
- The Hello World example
- Let's learn Python!
- micro SD card preparation
- OS setup for the Raspberry Pi
- Enclosure for the Raspberry Pi Zero
- Soldering the GPIO headers
- The setup of the Raspberry Pi Zero
- The features of the Raspberry Pi Zero
- Introduction to the Raspberry Pi Zero
- Buying the Raspberry Pi Zero
- Things needed for this book
- Let's get started!
- Getting Started with Python and the Raspberry Pi Zero
- Questions
- Piracy
- Errata
- Downloading the color images of this book
- Downloading the example code
- Customer support
- Reader feedback
- Conventions
- Who this book is for
- What you need for this book
- What this book covers
- Preface
- Customer Feedback
- www.PacktPub.com
- About the Reviewer
- About the Authors
- Credits
- 版權信息
- 封面
- 封面
- 版權信息
- Credits
- About the Authors
- About the Reviewer
- www.PacktPub.com
- Customer Feedback
- Preface
- What this book covers
- What you need for this book
- Who this book is for
- Conventions
- Reader feedback
- Customer support
- Downloading the example code
- Downloading the color images of this book
- Errata
- Piracy
- Questions
- Getting Started with Python and the Raspberry Pi Zero
- Let's get started!
- Things needed for this book
- Buying the Raspberry Pi Zero
- Introduction to the Raspberry Pi Zero
- The features of the Raspberry Pi Zero
- The setup of the Raspberry Pi Zero
- Soldering the GPIO headers
- Enclosure for the Raspberry Pi Zero
- OS setup for the Raspberry Pi
- micro SD card preparation
- Let's learn Python!
- The Hello World example
- Setting up your Raspberry Pi Zero for Python programming
- IDLE's interactive tool
- The text editor approach
- Launching the Python interpreter via the Linux Terminal
- Executing Python scripts using the Linux Terminal
- The print() function
- The help() function
- Summary
- Arithmetic Operations Loops and Blinky Lights
- Hardware required for this chapter
- Arithmetic operations
- Bitwise operators in Python
- Logical operators
- Data types and variables in Python
- Reading inputs from the user
- The formatted string output
- The str.format() method
- An exercise for the reader
- Another exercise for the reader
- Concatenating strings
- Loops in Python
- A for loop
- Indentation
- Nested loops
- A while loop
- Raspberry Pi's GPIO
- Blinky lights
- Code
- The applications of GPIO control
- Summary
- Conditional Statements Functions and Lists
- Conditional statements
- An if-else statement
- if-elif-else statement
- Breaking out of loops
- The applications of conditional statements: executing tasks using GPIO
- Breaking out a loop by counting button presses
- Functions in Python
- Passing arguments to a function:
- Returning values from a function
- The scope of variables in a function
- GPIO callback functions
- DC motor control in Python
- Some mini-project challenges for the reader
- Summary
- Communication Interfaces
- UART - serial port
- Raspberry Pi Zero's UART port
- Setting up the Raspberry Pi Zero serial port
- Example 1 - interfacing a carbon dioxide sensor to the Raspberry Pi
- Python code for serial port communication
- I2C communication
- Example 2 - PiGlow
- Installing libraries
- Example
- Example 3 - Sensorian add-on hardware for the Raspberry Pi
- I2C drivers for the lux sensor
- Challenge
- The SPI interface
- Example 4 - writing to external memory chip
- Challenge to the reader
- Summary
- Data Types and Object-Oriented Programming in Python
- Lists
- Operations that could be performed on a list
- Append element to list:
- Remove element from list:
- Retrieving the index of an element
- Popping an element from the list
- Counting the instances of an element:
- Inserting element at a specific position:
- Challenge to the reader
- Extending a list
- Clearing the elements of a list
- Sorting the elements of a list
- Reverse the order of elements in list
- Create copies of a list
- Accessing list elements
- Accessing a set of elements within a list
- List membership
- Let's build a simple game!
- Dictionaries
- Tuples
- Sets
- OOP in Python
- Revisiting the student ID card example
- Class
- Adding methods to a class
- Doc strings in Python
- self
- Speaker controller
- Light control daemon
- Summary
- File I/O and Python Utilities
- File I/O
- Reading from a file
- Reading lines
- Writing to a file
- Appending to a file
- seek
- Read n bytes
- r+
- Challenge to the reader
- The with keyword
- configparser
- Challenge to the reader
- Reading/writing to CSV files
- Writing to CSV files
- Reading from CSV files
- Python utilities
- The os module
- Checking a file's existence
- Checking for a folder's existence
- Deleting files
- Killing a process
- Monitoring a process
- The glob module
- Challenge to the reader
- The shutil module
- The subprocess module
- The sys module
- Summary
- Requests and Web Frameworks
- The try/except keywords
- try...except...else
- try...except...else...finally
- Connecting to the Internet - web requests
- The application of requests - retrieving weather information
- The application of requests - publishing events to the Internet
- Flask web framework
- Installing Flask
- Building our first example
- Controlling appliances using the Flask framework
- Summary
- Awesome Things You Could Develop Using Python
- Image processing using a Raspberry Pi Zero
- OpenCV
- The verification of the installation
- A challenge to the reader
- Installing the camera to the Raspberry Zero
- Speech recognition
- Automating routing tasks
- Improving daily commute
- A challenge to the reader
- Project challenge
- Improving your vocabulary
- A challenge to the reader
- Project challenge
- Logging
- Threading in Python
- PEP8 style guide for Python
- Verifying PEP8 guidelines
- Summary
- Lets Build a Robot!
- Components of the robot
- Setting up remote login
- Changing the password
- Enabling SSH access
- Chassis setup
- Motor driver and motor selection
- Preparing the motor driver circuit
- Raspberry Pi Zero and motor driver assembly
- Raspberry Pi Zero and motor driver assembly
- Robot Power supply setup
- Setting up the motor power supply
- Using the Raspberry Pi Zero's 5V power supply
- Using an external power supply
- Testing the motors
- Motor driver detection
- Detecting motor driver
- Motor test
- Dependencies
- Camera setup
- Verification of camera function
- The web interface
- Camera setup for the web interface
- Buttons for robot control
- Troubleshooting tips
- Project enhancements
- Summary
- Home Automation Using the Raspberry Pi Zero
- Voice activated personal assistant
- Installing requisite packages
- How does it work?
- Setting up the audio tools
- Connecting the speaker
- Connecting the microphone
- Houndify
- Building voice commands
- Adding a button
- Web framework based appliance control/dashboard
- Building the web dashboard
- Personal Health Improvement — Sitting is the new smoking
- Installing requisite software packages
- Getting access keys for Fitbit client
- Fitbit API Test
- Building the visual aid
- Smart lawn sprinkler
- Summary
- Tips and Tricks
- Change your Raspberry Pi's password
- Updating your OS
- Setting up your development environment
- SSH access via Windows
- SSH access via Linux/macOS
- Transferring files to/from your Pi
- WinSCP
- Mac/Linux environment
- Git
- Command-line text editors
- Graphical text editors
- SSH aliases (on Mac/Linux Terminals)
- Saving SSH sessions on PuTTY
- VNC access to Raspberry Pi
- The RUN switch of the Raspberry Pi Zero board
- GPIO pin mapping
- Stackable breadboard
- Summary 更新時間:2021-07-02 23:49:20