售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Learning Raspberry Pi
Table of Contents
Learning Raspberry Pi
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
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
1. Getting Started with Raspberry Pi
Getting to know your Raspberry Pi
Different types of operating systems
The Raspbian OS
The Arch Linux ARM OS
The RISC OS
OpenELEC and Raspbmc
Other operating systems
Command summary
Installation methods
NOOBS and BerryBoot
Installing Raspbian using RAW images
Writing an image using Windows
Writing an image using Linux
Raspbian OS interface
Expanding the filesystem
Installing Raspbian using raspbian-ua-netinst
Preparing the NetInstall on Linux
Preparing the NetInstall on Windows
Post-install configuration for Raspbian distribution
User management
Remotely accessing Raspberry Pi
The SSH remote server
Securing SSH
Transferring files
X11 Forwarding
Maintaining remote session using screen
The reverse SSH
Virtual display using VNC
Share the keyboard and mouse using Synergy
Installing a web server
Adding PHP support
Installing WordPress
Summary
2. Developing Web Applications
Getting started with HTML, JavaScript, and jQuery
Adding page content with HTML
Customizing the visual appearance
Adding interactivity with JavaScript
Simplifying scripts with jQuery
An introduction to Python
Syntax
Data types
Decorators
Modules
Flask
Creating an Internet radio station
Creating the user interface
Writing the backend
Connecting the user interface to the backend
Setting up MPD
Deploying Flask applications
Summary
3. Introduction to Electronics
Understanding the physics behind electronics
Charge, voltage, current, and resistance
Basic laws of electronics
Ohm's law
Kirchhoff's law
Kirchhoff's Current Law (KCL)
Kirchhoff's Voltage Law (KVL)
Electronics components
Resistors
Diodes
Switches
Integrated circuits
Sensors
LCD
Wire
Breadboard
Raspberry Pi electronics
WiringPi
Developing a digital clock
Setting up Raspberry Pi
Understanding HD44780-based LCD
Connecting LCD pins and Raspberry Pi GPIO pins
Scripting
The __init__ function
The clear function
The cmd function
The message function
Developing an e-mail notifier
Connecting LCD pins and Raspberry Pi GPIO pins
Scripting
Developing an alarm clock
Connecting LCD pins, Raspberry Pi GPIO pins, and a speaker
Scripting
Summary
4. Getting into Robotics
Introduction to robotics
More electronic components
Introduction to motors
Introduction to multimeter
Robotic base
Level converter
Motor driver IC
H-Bridge
The Raspberry Pi camera
Setting up the camera
Usage of modules
Taking a picture
Recording a video
An Ultrasonic sensor
The Raspberry Pi battery
The Raspberry Pi Wi-Fi module
Developing a remote-controlled robot with live feed and live distance to the nearest wall
Calculating distance using an ultrasonic sensor
Setting up Raspberry Pi
Connecting ultrasonic sensors pins and Raspberry Pi pins
Scripting
Displaying live feed from the Raspberry Pi camera module
Setting up Raspberry Pi
Connecting the Raspberry Pi and Raspberry Pi camera module
Scripting
Developing a remote-controlled robot using Raspberry Pi
Setting up Raspberry Pi
Connecting Raspberry Pi pins and robot
Scripting
Creating a user interface for controlling the robot
Controlling the movement of the robot
Initialization
Robot movement
Forward
Others
Server files that can control the Raspberry Pi GPIO
Merging everything
Connection
Scripting
Updating the user interface
Updating server-related files
Summary
5. Introduction to Image Processing
What is image processing?
Images and types of images
The grayscale image
Color/RGB
Image formats
Applications of image processing
The Raspberry Pi camera module
The image processing library
Introduction to OpenCV
Installation
The first approach
The second approach
A quick start to image processing
Reading and opening an image
Saving the image in other formats
Saving the image as a grayscale image
Pixel-related operation on the image
Accessing and modifying pixel values
Accessing image properties
Arithmetic operations on the image
Image addition
Image blending
Reading and opening a video
Creating time-lapse videos with the Raspberry Pi camera
Taking time-lapse pictures
Merging images into a video
Developing a Twitter-controlled Raspberry Pi camera
Setting up
Setting up Raspberry Pi
Getting Twitter Access keys
Scripting
Summary
6. Image Processing Algorithms
Important image processing operations
The image smoothing filter
Averaging
Gaussian filtering
Median filtering
Bilateral filtering
Morphological operations
Erosion
Dilation
Opening
Closing
Core algorithms
Edge detection
Background subtraction
BackgroundSubtractorMOG
BackgroundSubtractorMOG2
Machine learning
Object detection algorithm
Face detection
Eye detection
Projects
The track object position
OpenRelief
Capabilities
Technical specifications
Twitter-enabled surveillance systems
Summary
7. Troubleshooting, Tips/Tricks, and Resources for Advanced Users
Troubleshooting
Power/booting/installation
The LED status and their interpretation
The red Power LED does not turn ON, nothing gets displayed on screen
The red power LED is blinking
The red power LED is ON, the green LED does not flash, and nothing gets displayed on screen
The green LED blinks in a specific pattern
A colored splash screen stays forever
Kernel panic on boot
Raspberry Pi shuts down after booting up
Inputs
USB webcam
Networking
Sound
The Raspberry Pi camera
RaspiStill does not work, no image is taken
Display
Firmware updates
Manual disk resize
Tips and tricks
Play MP3 files
Remove boot messages
Remove the Raspberry Pi logo from boot screen
Remove unnecessary files from Raspberry Pi
Show all/hidden folders/file
Show a list of Python modules installed on systems
Raspberry Pi board info / CPU info
Overclock Raspberry Pi without voiding warranty
Freeing up RAM on Raspberry Pi
Set memory split between ARM and GPU in Raspberry Pi
Capture a screenshot using Raspberry Pi
Find the IP address of the Raspberry Pi
Buy a Raspberry Pi case
Make your own Raspberry Pi case
Use Chrome browser in Raspberry Pi
Shut down your Raspberry Pi
I would like to connect x device to my Raspberry Pi. How can I be sure it is going to work?
Some useful commands
Resources for advanced users
Projects
The touchscreen car dashboard
A talking book player
The Morse code transmitter
The automated pet feeder
Home automation system using Raspberry Pi and Arduino
Face-recognizing safe with Raspberry Pi
Supercomputer
Useful resources
Summary
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜