Raspberry Pi Cookbook cover

Raspberry Pi Cookbook

No rating yet
Chapters
19
ISBN
9787111490746

Tags

Summary

This book is a practical beginner's guide and quick-reference manual for the Raspberry Pi written by the British open-source hardware author Simon Monk, with the Chinese edition translated by Huang Xin and published by China Machine Press in 2015. Organized in "recipe" (cookbook) form, it does not require reading from cover to cover; instead, it gives actionable steps for one specific problem at a time, so readers may either read in sequence or jump via the table of contents to the entry that interests them. The content starts from the most basic steps: choosing a Raspberry Pi model, fitting a case, selecting a power supply, writing the system image to an SD card, connecting a monitor and keyboard, adjusting screen size, changing the password, installing the camera module, and so on; then wired and wireless networking, setting a static IP, remote login and control, file sharing, and turning the Pi into a network storage and print server. In the system and software section, the book covers terminal operations, file and permission management, installing and removing software with the package manager, fetching source code with Git, and making scripts run automatically at boot. The latter half moves to Python programming and hands-on hardware work, covering variables and control flow, data structures such as lists and dictionaries, machine vision, digital input and output, motor driving, various sensors and display devices, and a separate chapter on how the Raspberry Pi works with Arduino boards. The examples are mainly in Python, with code hosted on GitHub for download and comparison. It should be noted that Raspberry Pi hardware and system versions iterate quickly; the book's steps and package names follow the system environment at the time of writing, and details may need adjustment in practice.

Editor's review

树莓派上手最常见的困境,是“板子买回来了,不知道下一步该干什么”。这本书的价值就在于把入门过程拆成了一个个可以照着做的具体任务:先让系统跑起来,再让它联网,然后写第一段 Python,最后接上传感器和电机。作者西蒙·蒙克是开源硬件领域的高产作者,长期为树莓派与 Arduino 写书,写法务实,几乎不铺垫理论,直接给步骤和代码。 全书配有 200 多个实践示例,覆盖面在同类书里算宽的:既有 SSH、VNC 远程控制、NAS 这类纯软件玩法,也有摄像头机器视觉、电机驱动、各类传感器这类硬件实验,还专门用一章讲树莓派和 Arduino 的配合,方便手上同时有两种板子的读者。结构上采用速查式编排,遇到问题可以按目录直接翻到对应条目,不必从头读,很适合放在工作台边当工具书。 要提醒的是,本书出版于 2015 年,树莓派已经从早期的单核型号发展了很多代,系统也从 Raspbian 演变到 Raspberry Pi OS,书中截图和命令细节可能与当下环境有出入。建议把它当作建立整体知识框架和硬件接线思路的参考,具体操作步骤再配合官方文档核对。

Who it's for

A good fit for

  • 刚买树莓派、完全不知道从何处下手的新手
  • 想用 Python 控制传感器、电机等硬件的爱好者
  • 需要用树莓派搭建远程访问、NAS 等小服务的读者
  • 手上同时有树莓派和 Arduino、想打通两者的电子爱好者

Not a good fit for

  • 希望系统学习 Linux 内核或嵌入式底层原理的读者
  • 需要基于最新树莓派型号与系统撰写的操作手册的读者
  • 偏重纯软件后端开发、对硬件接线无兴趣的开发者

Reading tips

  1. 翻到目录找到眼前最想解决的问题,先跑通一个配方再做下一个,不要顺序通读。
  2. 准备一块实际的树莓派和面包板,边读边接线,比只读代码更容易记住引脚与电路。
  3. 书中命令与系统界面已偏旧,遇到不一致处按当前 Raspberry Pi OS 官方文档调整。
  4. 每完成一个项目就在 GitHub 上对照示例代码做改写,把配方变成自己的东西。

About the publisher

China Machine Press China · Founded in 1950

In addition to science and technology and professional publishing, the books in our catalog from China Machine Press also reflect a sustained focus on psychology, computing, management, finance and economics, and social sciences. In psychology, the catalog includes works by C. G. Jung and introductions to analytical psychology, as well as applied topics such as stress and health, and addiction and healing. In computing, it features Structure and Interpretation of Computer Programs (JavaScript Edition). Management and finance titles include Administrative Behavior (4th Edition), The Price of Inequality (Collector's Edition), and This Time Is Different: Eight Centuries of Financial Folly (Commemorative Edition). In the philosophy and history of science, there is The Worldview: The Third Edition. Relevant authors include C. G. Jung, William McGuire, Sonu Shamdasani, and Gabor Maté. Public information is limited; the above summarizes the publisher's profile based solely on the books in our catalog.

Contents

  1. Preface
  2. Chapter 1: Configuration and Management
  3. Chapter 2: Networking
  4. Chapter 3: The Operating System
  5. Chapter 4: Software
  6. Chapter 5: Getting Started with Python
  7. Chapter 6: Lists and Dictionaries in Python
  8. Chapter 7: Advanced Python Features
  9. Chapter 8: Machine Vision
  10. Chapter 9: Hardware Basics
  11. Chapter 10: Controlling Hardware
  12. Chapter 11: Motors
  13. Chapter 12: Digital Input
  14. Chapter 13: Sensors
  15. Chapter 14: Display Devices
  16. Chapter 15: The Internet of Things
  17. Chapter 16: Arduino and the Raspberry Pi
  18. Appendix A: Accessories and Suppliers
  19. Appendix B: Raspberry Pi Pinout

FAQ

这本书适合完全没有 Arduino 或电子基础的人吗?
可以。书中从选板、刷系统、联网讲起,硬件部分也先介绍基础电路与数字输入输出,再进入传感器和电机,新手按配方顺序推进即可;不过面包板接线的基本操作建议另找视频辅助。
书里的 Python 内容够用吗?
书中用三章讲 Python,覆盖基础语法、列表与字典、部分高级特性,足以支撑书中硬件示例。若想深入语言本身,建议另配一本系统的 Python 教材。
2015 年的书对现在的树莓派还有参考价值吗?
硬件接线思路、传感器原理、GPIO 用法等核心内容仍然通用;但系统界面、软件包名称和部分型号细节已经变化,操作步骤需要对照最新的 Raspberry Pi OS 资料做调整。
书中的示例代码在哪里获取?
书中说明代码托管在 GitHub 上,多为 Python 程序。建议按书上给出的仓库地址查找;若链接失效,可依据书中代码清单自行重写。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

More by the same author

Top rated in the same category