Mastering Raspberry Pi Development: The 2nd Edition eBook

Mastering Raspberry Pi Development: The 2nd Edition eBook

“Mastering Raspberry Pi Development: The 2nd Edition”, published by People’s Posts and Telecommunications Press, foreign book name: Raspberry Pi Cookbook, 2nd Edition. Author: [UK] Simon Monk, Han Bo (Translator). The Raspberry Pi is a credit card-sized computer based on the Linux operating system. The initial goal of developing the Raspberry Pi was to promote basic computer science education in schools through low-cost hardware and open-source software, but soon it gained popularity among computer and hardware enthusiasts; they used it to learn programming and created various novel and trendy software and hardware applications.

This book, written by prolific author Simon Monk, is the second edition after a comprehensive upgrade of the content, encompassing a wealth of practical examples and detailed explanations of Raspberry Pi configuration and management, network connections, operating systems, and software. Additionally, this book introduces various techniques for Raspberry Pi development using Python, covering basic knowledge of Python programming, lists and dictionaries, and advanced features of Python. It also introduces knowledge related to machine vision, hardware fundamentals, hardware control, motors, digital input, sensors, display devices, the Internet of Things, and Arduino.

This book is suitable for programmers and computer software and hardware enthusiasts, as well as readers interested in Raspberry Pi, and can also serve as a guide for Raspberry Pi-related practical courses.

Mastering Raspberry Pi Development: The 2nd Edition eBook

Table of Contents for “Mastering Raspberry Pi Development: The 2nd Edition”

Chapter 1 Configuration and Management 11.0 Introduction 11.1 Choosing Raspberry Pi Model 11.2 Packaging Raspberry Pi 31.3 Choosing Power Supply 41.4 Choosing Operating System Distribution 61.5 Flashing microSD Card with NOOBS 71.6 Assembling System 91.7 Connecting DVI or VGA Monitor 101.8 Using Composite Video Monitor/TV 101.9 Adjusting Image Size on Monitor 121.10 Optimizing Performance 131.11 Changing Password 151.12 Booting Directly into Window System 161.13 Shutting Down Raspberry Pi 171.14 Installing Raspberry Pi Camera Module 181.15 Using Bluetooth Devices 21 Chapter 2 Network Connections 232.0 Introduction 232.1 Connecting Wired Network 232.2 Viewing Own IP Address 252.3 Configuring Static IP Address 262.4 Configuring Network Name for Raspberry Pi 282.5 Configuring Wireless Network Connection 292.6 Connecting via Console Cable 312.7 Remote Control Raspberry Pi using SSH 332.8 Remote Control Raspberry Pi using VNC 352.9 Remote Control Raspberry Pi using RDP 362.10 Implementing File Sharing in Mac Network 382.11 Sharing Raspberry Pi Screen on Mac 392.12 Using Raspberry Pi as Network Storage Server 412.13 Network Printing 44 Chapter 3 Operating System 473.0 Introduction 473.1 Moving Files through Graphical Interface 473.2 Starting a Terminal Session 493.3 Browsing File System via Terminal 503.4 Copying Files or Folders 523.5 Renaming Files and Folders 533.6 Editing Files 543.7 Viewing File Contents 563.8 Creating Files without Editor 573.9 Creating Directories 573.10 Deleting Files or Directories 583.11 Executing Tasks with Superuser Privileges 593.12 Understanding File Permissions 603.13 Modifying File Permissions 613.14 Changing File Ownership 623.15 Taking Screenshots 633.16 Installing Software using apt-get 643.17 Removing Software Installed via apt-get 653.18 Installing Python Packages using Pip 653.19 Fetching Files via Command Line 663.20 Fetching Source Code using Git 673.21 Automatically Running Programs or Scripts at Startup 673.22 Making Programs or Scripts Run as Services Automatically 683.23 Running Programs or Scripts Automatically at Regular Intervals 703.24 Search Functionality 713.25 Using Command Line History 723.26 Monitoring Processor Activity 733.27 File Compression 753.28 Listing Connected USB Devices 763.29 Redirecting Output from Command Line to File 763.30 Connecting Files 773.31 Using Pipes 783.32 Hiding Output from Terminal 783.33 Running Programs in Background 793.34 Creating Command Aliases 803.35 Setting Date and Time 803.36 Checking Remaining Storage Space on SD Card 81 Chapter 4 Software 834.0 Introduction 834.1 Setting Up Media Center 834.2 Installing Office Software 844.3 Installing Other Browsers 864.4 Using Raspberry Pi Store 874.5 Creating Network Camera Server 884.6 Running Classic Game Console Emulator 904.7 Running Raspberry Pi Version of Minecraft 924.8 Running Minecraft Server 934.9 Running Open Arena 954.10 Raspberry Pi Radio Transmitter 964.11 Running GIMP 984.12 Internet Broadcasting 99 Chapter 5 Introduction to Python 1015.0 Introduction 1015.1 Choosing between Python 2 and Python 3 1015.2 Using IDLE to Edit Python Programs 1025.3 Running Python Programs using Python Console 1045.4 Variables 1065.5 Displaying Output Results 1075.6 Reading User Input 1075.7 Arithmetic Operations 1085.8 Creating Strings 1095.9 Concatenating Strings 1105.10 Converting Numbers to Strings 1115.12 Converting Strings to Numbers 1115.13 Determining Length of Strings 1125.14 Finding Position of One String in Another 1135.15 Slicing Strings 1135.16 Replacing Content in Strings 1145.17 Changing Case of Strings 1155.18 Running Commands Based on Conditions 1165.19 Comparing Values 1175.20 Logical Operators 1185.21 Repeating Instructions a Specific Number of Times 1195.22 Repeating Instructions Until a Condition Changes 1205.23 Breaking Out of Loops 1205.24 Defining Python Functions 121 Chapter 6 Lists and Dictionaries in Python 1236.0 Introduction 1236.1 Creating Lists 1236.2 Accessing List Elements 1246.3 Determining Length of Lists 1256.4 Adding Elements to Lists 1256.5 Deleting List Elements 1266.6 Creating Lists from Parsing Strings 1276.7 Iterating Through Lists 1276.8 Enumerating Lists 1286.9 Sorting Lists 1296.10 Splitting Lists 1306.11 Applying Functions to Lists 1316.12 Creating Dictionaries 1316.13 Accessing Dictionaries 1336.14 Deleting Dictionary Elements 1346.15 Iterating Through Dictionaries 134 Chapter 7 Advanced Features of Python 1377.0 Introduction 1377.1 Formatting Numbers 1377.2 Formatting Time and Dates 1387.3 Returning Multiple Values 1397.4 Defining Classes 1407.5 Defining Methods 1417.6 Inheritance 1427.7 Writing to Files 1437.8 Reading Files 1447.9 Serialization (Pickling) 1457.10 Exception Handling 1467.11 Using Modules 1477.12 Random Numbers 1487.13 Sending Web Requests using Python 1497.14 Command Line Arguments in Python 1507.15 Running Linux Commands from Python 1517.16 Sending Emails from Python 1527.17 Creating Simple Web Servers using Python 1537.18 Doing Multiple Things at Once 1547.19 Making Python Do Nothing 1567.20 Applying Python to Raspberry Pi Version of Minecraft 156 Chapter 8 Machine Vision 1598.0 Introduction 1598.1 Installing SimpleCV 1598.2 Configuring USB Camera for Machine Vision 1608.3 Using Raspberry Pi Camera Module for Machine Vision 1628.4 Counting Coins 1638.5 Face Detection 1668.6 Motion Detection 1688.7 Optical Character Recognition 170 Chapter 9 Hardware Fundamentals 1739.0 Introduction 1739.1 GPIO Connector Usage Instructions 1739.2 Raspberry Pi Safety when Using GPIO Interface 1769.3 Configuring I2C 1769.4 Using I2C Tools 1789.5 Configuring SPI 1799.6 Installing PySerial for Serial Port Access via Python 1809.7 Installing Minicom to Detect Serial Ports 1819.8 Using Breadboard with Jumper Wires 1829.9 Connecting Raspberry Pi to Breadboard with Ribbon Cable 1839.10 Using Raspberry Pi Squid 1849.11 Using Raspberry Squid Button 1869.12 Converting 5V Signal to 3.3V with Two Resistors 1879.13 Using Level Conversion Module to Convert 5V Signal to 3.3V 1899.14 Powering Raspberry Pi with Battery 1909.15 Powering Raspberry Pi with Lithium Battery 1929.16 Sense HAT Getting Started Guide 1939.17 Explorer HAT Pro Getting Started Guide 1949.18 RaspiRobot Board Getting Started Guide 1969.19 Using Pi Plate Prototype Board 1989.20 Creating Raspberry Pi Expansion Board (HAT) 2019.21 Raspberry Pi Compute Module 2049.22 Pi Zero 205 Chapter 10 Controlling Hardware 20710.0 Introduction 20710.1 Connecting LED 20710.2 Making GPIO Pins Safe 20910.3 Controlling LED Brightness 21010.4 Making a Beep 21310.5 Using Transistor Switch for High-Power DC Devices 21410.6 Using Relay to Control High-Power Devices 21610.7 Controlling High Voltage AC Devices 21910.8 Writing User Interface for Switch Control 22010.9 Writing User Interface for Controlling LED and Motor PWM Power 22110.10 Changing RGB LED Color 22310.11 Using Many LEDs (Charlieplexing) 22510.12 Using Analog Meters as Displays 22810.13 Interrupt Programming 230 Chapter 11 Motors 23311.0 Introduction 23311.1 Controlling Servo Motors 23311.2 Precisely Controlling Servo Motors 23711.3 Controlling Multiple Servo Motors 23911.4 Controlling DC Motor Speed 24211.5 Controlling Direction of DC Motor 24411.6 Using Unipolar Stepper Motors 24811.7 Using Bipolar Stepper Motors 25211.8 Using Stepper Motor HAT to Drive Bipolar Stepper Motors 25311.9 Using RaspiRobot Board to Drive Bipolar Stepper Motors 25611.10 Creating a Simple Robot Car 257

Chapter 12 Digital Input 26112.0 Introduction 26112.1 Connecting Push Button Switch 26112.2 Switching State via Push Button Switch 26412.3 Using Two-Position Toggle Switch or Slide Switch 26512.4 Using Three-Position Toggle Switch or Slide Switch 26612.5 Button Debouncing 26912.6 Using External Pull-Up Resistors 27112.7 Using Rotary (Quadrature) Encoders 27212.8 Using Numeric Keypad 27512.9 Detecting Movement 27812.10 Adding GPS to Raspberry Pi 28012.11 Intercepting Key Presses 28312.12 Intercepting Mouse Movements 28512.13 Using Real-Time Clock Module 286 Chapter 13 Sensors 29113.0 Introduction 29113.1 Using Resistive Sensors 29113.2 Measuring Brightness 29613.3 Measuring Temperature using Thermistor 29813.4 Detecting Methane 30113.5 Measuring Voltage 30413.6 Reducing Voltage for Measurement 30613.7 Using Resistive Sensors with ADC 30913.8 Measuring Temperature using ADC 31013.9 Measuring Raspberry Pi CPU Temperature 31213.10 Measuring Temperature, Humidity, and Pressure using Sense HAT 31313.11 Measuring Temperature using Digital Sensors 31513.12 Measuring Acceleration using MCP3008 Module 31813.13 Using Sense HAT’s Inertial Measurement Unit (IMU) 32113.14 Finding Magnetic North using Sense HAT 32313.15 Detecting Magnets using Reed Switch 32313.16 Sensing Magnetic Fields using Sense HAT 32513.17 Measuring Distance 32513.18 Capacitive Touch Sensing Technology 32813.19 Displaying Sensor Values 33113.20 Logging Data using USB Flash Drive 332 Chapter 14 Display Devices 33514.0 Introduction 33514.1 Using Four-Digit LED Display Devices 33514.2 Displaying Messages on I2C LED Matrix 33714.3 Using Sense HAT LED Matrix Display 33914.4 Displaying Messages on Alphanumeric LCD HAT 34114.5 Displaying Messages on Alphanumeric LCD Module 34314.6 Using OLED Graphic Display 34714.7 Using Addressable RGB LED Strips 349 Chapter 15 Internet of Things 35515.0 Introduction 35515.1 Controlling GPIO Output using Web Interface 35515.2 Displaying Sensor Readings on Web Page 36015.3 Sending Emails and Other Notifications using IFTTT 36315.4 Sending Tweets using ThingSpeak 36715.5 CheerLights 36915.6 Sending Sensor Data to ThingSpeak 37015.7 Responding to Tweets using Dweet and IFTTT 373 Chapter 16 Arduino and Raspberry Pi 37716.0 Introduction 37716.1 Programming Arduino via Raspberry Pi 37816.2 Communicating with Arduino using Serial Monitor 38016.3 Configuring PyFirmata to Control Arduino via Raspberry Pi 38216.4 Writing to Arduino’s Digital Output via Raspberry Pi 38416.5 Using PyFirmata with TTL Serial 38616.6 Reading Arduino’s Digital Input using PyFirmata 38816.7 Reading Arduino’s Analog Input using PyFirmata 39016.8 PWM and PyFirmata 39116.9 Controlling Servo Motors using PyFirmata 39316.10 Customizing Arduino Communication based on TTL Serial 39516.11 Customizing Communication between Raspberry Pi and Arduino via I2C 39916.12 Using Small Arduino on Raspberry Pi 40216.13 Getting Started with aLaMode Board and Raspberry Pi 40316.14 Using Arduino Shield on Raspberry Pi and aLaMode Board 406

How to Download the High-Definition PDF eBook of “Mastering Raspberry Pi Development: The 2nd Edition”Mastering Raspberry Pi Development: The 2nd Edition eBook

Mastering Raspberry Pi Development: The 2nd Edition eBook

Follow Wu Chuanbin’s Blog Public Account

Mastering Raspberry Pi Development: The 2nd Edition eBook

Send a message to Lao Wu in the public account:

Download|Mastering Raspberry Pi Development

or

Download|600009

It is recommended to copy and paste, so you won’t make mistakes, O(∩_∩)O~

Lao Wu will send you the download link for Mastering Raspberry Pi Development: The 2nd Edition PDF, O(∩_∩)O~

Mastering Raspberry Pi Development: The 2nd Edition eBook

Leave a Comment

×