MicroPython for the Internet of Things A Beginner's Guide to Programming with Python on Microcontrollers
This book will help you quickly learn to program for microcontrollers and IoT devices without a lot of study and expense. MicroPython and controllers that support it eliminate the need for programming in a C-like language, making the creation of IoT applications and devices easier and more accessibl...
Main Author: | |
---|---|
Format: | eBook |
Language: | English |
Published: |
Berkeley, CA
Apress L. P.
2024
|
Edition: | 2nd ed |
Subjects: | |
Online Access: | |
Collection: | O'Reilly - Collection details see MPG.ReNa |
Table of Contents:
- Intro
- Table of Contents
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Introduction
- Chapter 1: What Is the Internet of Things?
- The Internet of Things and You
- IoT Is More Than Just Connected to the Internet
- IoT Services
- A Brief Look at IoT Solutions
- Sensor Networks
- Medical Applications
- Automotive IoT Solutions
- Fleet Management
- IoT and Security
- Security Begins at Home
- Secure Your Devices
- Use Encryption
- Security Doesn't End at the Cloud
- Python and the IoT
- Origins
- Online MicroPython Simulator
- Summary
- BBC micro:bit
- Hardware Overview
- Getting Started
- Where to Buy
- Circuit Playground Express
- Hardware Overview
- Getting Started
- Where to Buy
- Breakout Boards and Add-Ons
- Breakout Boards
- Board-Specific Shields/Skins
- Board-Specific Accessories
- Breadboard for Raspberry Pi Pico/Pico W
- BBC micro:bit
- Which Board Should I Buy?
- Summary
- Chapter 4: How to Program in MicroPython
- Basic Concepts
- Code Blocks
- Comments
- Arithmetic
- Output to Screen
- Variables
- Types
- Basic Data Structures
- Lists
- Tuples
- Dictionaries
- Statements
- Raspberry Pi Pico/Pico W
- Hardware Overview
- Getting Started
- Loading Firmware
- Place Board in USB Mass Media Mode
- Install Firmware in Thonny
- Reconnect/Reboot
- Your First MicroPython Script
- Where to Buy
- Arduino Nano RP2040 Connect
- Hardware Overview
- Getting Started
- Loading Firmware
- Downloading the Latest Firmware
- Place Board in USB Mass Media Mode
- Copy the File to the RPI-RP2 Drive
- Reconnect/Reboot
- Where to Buy
- Other RP2040 Boards
- Hardware Overview
- Getting Started
- Loading Firmware
- Where to Buy
- MicroPython-Compatible Boards
- Chapter 2: Introducing MicroPython
- Getting Started
- Origins
- MicroPython Features
- MicroPython Limitations
- What Does MicroPython Run On?
- Experimenting with Python on Your PC
- Installing Python 3 on Windows 11
- Installing Python 3 on macOS
- Installing Python 3 on Linux
- Running the Python Console
- Running Python Programs with the Interpreter
- How MicroPython Works
- The Run-Evaluate-Print Loop (REPL Console)
- Connect the Board
- Starting the REPL Console (Windows)
- Starting the REPL Console (macOS and Linux)
- Off and Running with MicroPython
- Additional Hardware
- Basic Electronics Kit
- Breadboard and Jumper Wires
- Example 1: Blink an LED
- Example 2: Blink LEDs in Series
- Example 3: Using a Button
- Summary
- Chapter 3: MicroPython Hardware
- Getting Started with MicroPython Boards
- Firmware Updates
- Networking Issues
- One Step at a Time!
- Programming Tools
- Some Assembly Required
- GPIO Pins
- Other Tips
- Visit the Community Forums
- Handle with Care!
- Incorrect Switch Settings
- Loose or Missing Jumpers
- MicroPython RP2040 Boards
- Origins of the RP2040
- Introducing the RP2040