Programming the Raspberry Pi Pico/W in MicroPython, Third Edition
暫譯: 使用 MicroPython 編程 Raspberry Pi Pico/W,第三版

James, Mike, Fairhead, Harry

  • 出版商: I/O Press
  • 出版日期: 2025-07-24
  • 售價: $2,100
  • 貴賓價: 9.5$1,995
  • 語言: 英文
  • 頁數: 396
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1871962978
  • ISBN-13: 9781871962970
  • 相關分類: Raspberry Pi
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Reviews of previous editions
"This book is great, written by an engineer, showing you how to get around limitations of MicroPython. Has a good section on PIO, I2C, SPI and what to do when they don't work. have read most of the other books on Pi Pico, and this is by far the best."

"Obviously the author knows his stuff. I love the writing style and helpful hints to deal with Python limitations."

"Book contains many nuggets of info not found in other books."

"The book provides a very good guide through the MicroPython programming of the Raspberry Pi Pico and also goes into enough depth. It has shown me many tricks and tricks that I haven't found anywhere else so far."

"You won't learn Python from this book, but if you want to know how to use Python on the Pico, then this book is for you, and it is probably the best one out there. There are lots of useful techniques and examples. When I need to know something about Python on the Pico, this is the book I turn to. It is clear and well written. Just buy it!"

"I think this book together with a primer on MicroPython would be a great choice for a beginner. Lots of great examples and it's obvious the author has programmed the Pico in Python."

"Shows how to integrate python with assembly language for speed - which not many other guides describe."

This updated and expanded edition was prompted by the launch of the Pico 2 and Pico 2W which use a new chip, the RP2350, with significant improvements but also changes. This book therefore covers four devices, the new Pico 2 and its WiFi counterpart, the Pico 2W, as well as the original Pico and Pico W.

MicroPython is a good choice of language to program the Pico. It isn't the fastest way, but in most cases it is fast enough to interface with the Pico's hardware and its big advantage is that it is easy to use. As a high-level language, MicroPython is based on Python 3 and is fully object-oriented. This means that you can create classes to encapsulate hardware and makes it easier to use and understand.

The purpose of the book is to reveal what you can do with the Pico's GPIO lines together with widely used sensors, servos, motors and ADCs. After covering the GPIO, outputs and inputs, events and interrupts, it gives you hands-on experience of PWM, the SPI bus, the I2C bus and the 1-Wire bus. One of the key advantages of the Pico is its PIO (Programmable I/O) and while this is an advanced feature, it is introduced in this book. After finding out how the PIO works, we apply it to writing a PIO program for the DHT22 and the 1-Wire bus. Three chapters are dedicated to how to make use of the additional features of the Pico W, including how to create a web client and a web server, use HTTPS and asyncio. Finally we look at more advanced hardware, Watchdog timer, file system, SDcard reader, using the second core and more.

Jointly authored by Harry Fairhead and Mike James, this book combines Harry's expertise in electronics and the IoT with Mike's knowledge of Python. They have also collaborated on similar titles for the Raspberry Pi, the Raspberry Pi Compute Module 5 and the ESP 32.

Harry Fairhead is also the author of Programming the Raspberry Pi Pico/W in C, Fundamental C: Getting Closer To The Machine and Applying C For The IoT With Linux.

Mike James is the author of the Programmer's Python: Something Completely Different series of books which set out to show how Python diverges from other programming languages and how its special features deserve our attention and Extending and Embedding Python Using C in which he solves many of Python's speed-related problems.

商品描述(中文翻譯)

前幾版的評價
「這本書很棒,由一位工程師撰寫,展示了如何克服 MicroPython 的限制。對於 PIO、I2C、SPI 以及當它們無法正常工作時該怎麼辦有很好的說明。我已經讀過大部分關於 Pi Pico 的其他書籍,而這本書無疑是最好的。」

「顯然作者對他的主題非常了解。我喜歡這種寫作風格和處理 Python 限制的有用提示。」

「這本書包含了許多在其他書籍中找不到的資訊。」

「這本書提供了非常好的指導,幫助讀者了解 Raspberry Pi Pico 的 MicroPython 編程,並且深入淺出。它展示了許多我在其他地方找不到的技巧。」

「你不會從這本書中學到 Python,但如果你想知道如何在 Pico 上使用 Python,那麼這本書就是為你準備的,並且它可能是目前最好的書籍。裡面有很多有用的技術和範例。當我需要了解 Pico 上的 Python 時,我會參考這本書。它清晰且寫得很好。快去買吧!」

「我認為這本書加上 MicroPython 的入門書籍會是初學者的絕佳選擇。裡面有很多很棒的範例,顯然作者在 Pico 上用 Python 編程。」

「展示了如何將 Python 與組合語言整合以提高速度 - 這在其他指南中並不多見。」

這一更新和擴展的版本是因為 Pico 2 和 Pico 2W 的推出而促成的,這些新設備使用了新的晶片 RP2350,具有顯著的改進但也有變化。因此,本書涵蓋了四種設備,包括新的 Pico 2 及其 WiFi 版本 Pico 2W,以及原始的 Pico 和 Pico W。

MicroPython 是編程 Pico 的良好選擇。它不是最快的方式,但在大多數情況下,它足夠快速以與 Pico 的硬體介面連接,其最大的優勢是易於使用。作為一種高級語言,MicroPython 基於 Python 3,並且完全物件導向。這意味著你可以創建類來封裝硬體,使其更易於使用和理解。

本書的目的是揭示你可以如何利用 Pico 的 GPIO 線與廣泛使用的感測器、伺服器、馬達和 ADC 進行互動。在介紹 GPIO、輸出和輸入、事件和中斷後,提供了 PWM、SPI 總線、I2C 總線和 1-Wire 總線的實作經驗。Pico 的一個關鍵優勢是其 PIO(可程式化 I/O),雖然這是一個進階功能,但在本書中有介紹。在了解 PIO 的運作後,我們將其應用於為 DHT22 和 1-Wire 總線編寫 PIO 程式。三個章節專門介紹如何利用 Pico W 的附加功能,包括如何創建網路客戶端和網路伺服器、使用 HTTPS 和 asyncio。最後,我們將探討更進階的硬體,如看門狗計時器、檔案系統、SD 卡讀取器、使用第二核心等。

本書由 Harry FairheadMike James 共同撰寫,結合了 Harry 在電子學和物聯網方面的專業知識以及 Mike 對 Python 的了解。他們還合作撰寫了 Raspberry Pi、Raspberry Pi Compute Module 5 和 ESP 32 的類似書籍。

Harry Fairhead 也是 用 C 語言編程 Raspberry Pi Pico/W基礎 C:更接近機器在 Linux 上應用 C 於物聯網 的作者。

Mike James程序員的 Python:完全不同的東西 系列書籍的作者,該系列旨在展示 Python 如何與其他編程語言不同,以及其特殊功能值得我們關注,還有 使用 C 擴展和嵌入 Python,在其中他解決了許多與 Python 速度相關的問題。