This is the code repository for MicroPython Projects , published by Packt.
A do-it-yourself guide for embedded developers to build a range of applications using Python
With the increasing complexity of embedded systems seen over the past few years, developers are looking for ways to manage them easily by solving problems without spending a lot of time on finding supported peripherals. MicroPython is an efficient and lean implementation of the Python 3 programming language, which is optimized to run on microcontrollers. MicroPython Projects will guide you in building and managing your embedded systems with ease.
This book covers the following exciting features:
- Develop embedded systems using MicroPython
- Build a custom debugging tool to visualize sensor data in real-time
- Detect objects using machine learning and MicroPython
- Discover how to minimize project costs and reduce development time
- Get to grips with gesture operations and parsing gesture data
- Learn how to customize and deploy the MicroPython kernel
- Explore the techniques for scheduling application tasks and activities
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter02.
The code will look like the following:
# define LED color constants
LED_RED = 1
LED_GREEN = 2
LED_BLUE = 3
LED_YELLOW = 4
Following is what you need for this book: If you are an embedded developer or hobbyist looking to build interesting projects using MicroPython, this book is for you. A basic understanding of electronics and Python is required while some MicroPython experience will be helpful.
With the following software and hardware list you can run all code files present in the book (Chapter 1-10).
No | Software required | OS required |
---|---|---|
1 | PyCharm | Windows, Mac OS X, and Linux (Any) |
2 | PuTTY | Windows, Mac OS X, and Linux (Any) |
3 | Linux Virtual Machine | Windows, Mac OS X, and Linux (Any) |
4 | Python 3.x | Windows, Mac OS X, and Linux (Any) |
5 | Anaconda Terminal | Windows, Mac OS X, and Linux (Any) |
6 | Simple TCP Socket Tester | Windows, Mac OS X, and Linux (Any) |
7 | OpenMV IDE | Windows, Mac OS X, and Linux (Any) |
8 | Pyboard | - |
9 | RobotDyn I2C 8-bit PCA8574 I/O expander | - |
10 | Adafruit RGB Pushbutton PN: 3423 or equivalent | - |
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.
- Page 38 (paragraph 4,line 18-19 ), ...for installing the library that you can find at [github link] the correct GitHub link is: https://github.com/peterhinch/micropython-async
- Page 27 - Note: The example in the book is not using the ESP but the pyboard. For the pyboard, the pyb library does exist because it is for that board. Machine is a generic library designed to work across multiple targets.
Jacob Beningo is an independent consultant who specializes in microcontroller-based embedded systems. He has advised, coached, and developed systems across multiple industries, including the automotive, defense, industrial, medical, and space sectors. Jacob enjoys working with companies to help them develop and improve their processes and skill sets. He publishes a monthly newsletter, Embedded Bytes, and blogs for publications about embedded system design techniques and challenges. Jacob holds bachelor's degrees in electrical engineering, physics, and mathematics from Central Michigan University and a master's degree in space systems engineering from the University of Michigan.
Click here if you have any feedback or suggestions.
If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.
https://packt.link/free-ebook/9781789958034