Practical Python Programming for IoT (Paperback)

Smart, Gary

買這商品的人也買了...

商品描述

Key Features

  • Learn the fundamentals of electronics and how to integrate them with a Raspberry Pi
  • Understand how to build RESTful APIs, WebSocket APIs, and MQTT-based applications
  • Explore alternative approaches to structuring IoT applications with Python

Book Description

The age of connected devices is here, be it fitness bands or smart homes. It's now more important than ever to understand how hardware components interact with the internet to collect and analyze user data. The Internet of Things (IoT), combined with the popular open source language Python, can be used to build powerful and intelligent IoT systems with intuitive interfaces.

This book consists of three parts, with the first focusing on the "Internet" component of IoT. You'll get to grips with end-to-end IoT app development to control an LED over the internet, before learning how to build RESTful APIs, WebSocket APIs, and MQTT services in Python. The second part delves into the fundamentals behind electronics and GPIO interfacing. As you progress to the last part, you'll focus on the "Things" aspect of IoT, where you will learn how to connect and control a range of electronic sensors and actuators using Python. You'll also explore a variety of topics, such as motor control, ultrasonic sensors, and temperature measurement. Finally, you'll get up to speed with advanced IoT programming techniques in Python, integrate with IoT visualization and automation platforms, and build a comprehensive IoT project.

By the end of this book, you'll be well-versed with IoT development and have the knowledge you need to build sophisticated IoT systems using Python.

What you will learn

  • Understand electronic interfacing with Raspberry Pi from scratch
  • Gain knowledge of building sensor and actuator electronic circuits
  • Structure your code in Python using Async IO, pub/sub models, and more
  • Automate real-world IoT projects using sensor and actuator integration
  • Integrate electronics with ThingSpeak and IFTTT to enable automation
  • Build and use RESTful APIs, WebSockets, and MQTT with sensors and actuators
  • Set up a Raspberry Pi and Python development environment for IoT projects

Who this book is for

This IoT Python book is for application developers, IoT professionals, or anyone interested in building IoT applications using the Python programming language. It will also be particularly helpful for mid to senior-level software engineers who are experienced in desktop, web, and mobile development, but have little to no experience of electronics, physical computing, and IoT.

商品描述(中文翻譯)

主要特點


  • 學習電子學的基礎知識,並學習如何與 Raspberry Pi 整合

  • 了解如何使用 Python 建立 RESTful APIs、WebSocket APIs 和 MQTT-based 應用程式

  • 探索使用 Python 結構化 IoT 應用程式的替代方法

書籍描述

連接設備的時代已經來臨,無論是健身手環還是智能家居。現在更重要的是了解硬體元件如何與互聯網互動,以收集和分析使用者數據。物聯網 (IoT) 結合流行的開源語言 Python,可以用於建立具有直觀界面的強大智能 IoT 系統。

本書分為三個部分,第一部分專注於 IoT 的「互聯網」組件。您將學習從頭開始進行端到端的 IoT 應用程式開發,以控制互聯網上的 LED,然後學習如何使用 Python 建立 RESTful APIs、WebSocket APIs 和 MQTT 服務。第二部分深入介紹了電子學和 GPIO 介面的基礎知識。在進入最後一部分時,您將專注於 IoT 的「物件」方面,學習如何使用 Python 連接和控制各種電子感測器和執行器。您還將探索各種主題,例如馬達控制、超聲波感測器和溫度測量。最後,您將掌握 Python 中的高級 IoT 編程技巧,與 IoT 可視化和自動化平台集成,並建立一個全面的 IoT 項目。

通過閱讀本書,您將熟悉 IoT 開發,並具備使用 Python 建立複雜 IoT 系統所需的知識。

您將學到什麼


  • 從頭開始了解如何與 Raspberry Pi 進行電子介面

  • 獲得建立感測器和執行器電子電路的知識

  • 使用 Async IO、發布/訂閱模型等在 Python 中結構化您的程式碼

  • 使用感測器和執行器整合自動化真實世界的 IoT 項目

  • 將電子元件與 ThingSpeak 和 IFTTT 整合,實現自動化

  • 使用感測器和執行器建立和使用 RESTful APIs、WebSockets 和 MQTT

  • 為 IoT 項目設置 Raspberry Pi 和 Python 開發環境

本書適合對象

本書適合應用程式開發人員、物聯網專業人士或任何有興趣使用 Python 編程語言建立物聯網應用程式的人。對於有著桌面、網頁和移動開發經驗,但對於電子學、物理計算和物聯網幾乎沒有經驗的中高級軟體工程師來說,本書將特別有幫助。

目錄大綱

  1. Setting Up your Development Environment
  2. Getting Started with Python and IoT
  3. Networking with RESTful APIs and Web Sockets using Flask
  4. Networking with MQTT, Python, and the Mosquitto MQTT Broker
  5. Connecting Your Raspberry Pi to the Physical World
  6. Electronics 101 for the Software Engineer
  7. Turning Things On and Off
  8. Lights, Indicators, and Displaying Information
  9. Measuring Temperature, Humidity, and Light Levels
  10. Movement with Servos, Motors, and Steppers
  11. Measuring Distance and Detecting Movement
  12. Advanced IoT Programming Concepts – Threads, AsyncIO, and Event Loops
  13. IoT Visualisation and Automation Platforms
  14. Tying It All Together - An IoT Christmas Tree

目錄大綱(中文翻譯)


  1. 設置開發環境

  2. Python和物聯網入門

  3. 使用Flask進行RESTful API和Web Sockets的網絡連接

  4. 使用MQTT、Python和Mosquitto MQTT Broker進行網絡連接

  5. 將您的樹莓派連接到物理世界

  6. 軟體工程師的電子學101

  7. 開關控制

  8. 燈光、指示器和顯示資訊

  9. 測量溫度、濕度和光線水平

  10. 使用伺服馬達、馬達和步進馬達進行運動控制

  11. 測量距離和偵測運動

  12. 高級物聯網程式設計概念 - 線程、AsyncIO和事件循環

  13. 物聯網可視化和自動化平台

  14. 將所有內容結合在一起 - 物聯網聖誕樹