0%

Book Description

It’s an exciting time to get involved with MicroPython, the re-implementation of Python 3 for microcontrollers and embedded systems. This practical guide delivers the knowledge you need to roll up your sleeves and create exceptional embedded projects with this lean and efficient programming language. If you’re familiar with Python as a programmer, educator, or maker, you’re ready to learn—and have fun along the way.

Author Nicholas Tollervey takes you on a journey from first steps to advanced projects. You’ll explore the types of devices that run MicroPython, and examine how the language uses and interacts with hardware to process input, connect to the outside world, communicate wirelessly, make sounds and music, and drive robotics projects.

  • Work with MicroPython on four typical devices: PyBoard, the micro:bit, Adafruit’s Circuit Playground Express, and ESP8266/ESP32 boards
  • Explore a framework that helps you generate, evaluate, and evolve embedded projects that solve real problems
  • Dive into practical MicroPython examples: visual feedback, input and sensing, GPIO, networking, sound and music, and robotics
  • Learn how idiomatic MicroPython helps you express a lot with the minimum of resources
  • Take the next step by getting involved with the Python community

Table of Contents

  1. Foreword
  2. Preface
    1. Conventions Used in This Book
    2. Using Code Examples
    3. O’Reilly Safari
    4. How to Contact Us
    5. Acknowledgments
  3. 1. What Is MicroPython?
    1. Why Micro?
    2. Why Python?
    3. MicroPython Genesis
    4. Dive In!
  4. 2. PyBoard
    1. The Hardware
    2. Developer Setup
  5. 3. BBC micro:bit
    1. The Hardware
    2. Developer Setup
  6. 4. Adafruit Circuit Playground Express
    1. The Hardware
    2. Developer Setup
  7. 5. ESP8266 / ESP32
    1. The Hardware
    2. Developer Setup
      1. ESP8266
      2. ESP32
  8. 6. Thinking Embedded
    1. Human Drives
    2. Abilities of Enchantment
    3. Steps on the Ladder of Enchantment
  9. 7. Visual Feedback
    1. Blinkenlights
    2. NeoPixels (Blinkenlights on Steroids)
    3. Text, Images, and Animation
    4. PyBoard Colour LCD Display
  10. 8. Input and Sensing
    1. Buttons and Capacitative Touch
    2. Accelerometers, Gestures, and Compasses
    3. Sound, Light, and Temperature
    4. Sensing with Peripherals
  11. 9. GPIO
    1. Pins
    2. UART
    3. SPI
    4. I2C
    5. Miscellaneous GPIO Techniques and Protocols
  12. 10. Networking
    1. Circuit Playground Express Infrared
    2. The micro:bit Radio
    3. ESP8266/32 WiFi
    4. MQTT
  13. 11. Sound and Music
    1. Bleeps and Bloops
    2. Music
    3. Speech
  14. 12. Robots
    1. Trundle Bot
    2. Racer Bot
  15. 13. Idiomatic MicroPython
    1. The Zen of MicroPython
    2. Memory
    3. Performance
  16. 14. Next Steps
    1. The Community
    2. Going Deeper
  17. Index
3.16.81.94