Customers who viewed this item also viewed
Buy New
-18%
$40.91$40.91
FREE delivery Sunday, August 23
Advertisement
Advertisement
Ships from: Amazon Sold by: TEXbooks Plus
Used - Very Good
$25.01$25.01
$3.99 delivery August 24 - 27
Advertisement
Advertisement
Ships from: mediabusterbooks Sold by: mediabusterbooks
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the author
OK
Programming with MicroPython: Embedded Programming with Microcontrollers and Python
Purchase options and add-ons
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
- ISBN-101491972734
- ISBN-13978-1491972731
- Edition1st
- PublisherO'Reilly Media
- Publication dateNovember 7, 2017
- LanguageEnglish
- Dimensions7 x 0.4 x 9.2 inches
- Print length210 pages
![]() |
Frequently bought together

Customers who viewed this item also viewed
- Get started with MicroPython on Raspberry Pi Pico: The Official Raspberry Pi Pico GuidePaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Wednesday, Aug 19
- Programming ESP32: Learn MicroPython Coding and Electronics (MonkMakes Embedded Programming)PaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Thursday, Aug 20
- The MicroPython Handbook for Beginners: Your Essential Guide to Programming Microcontrollers and Creating IoT Projects.PaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Thursday, Aug 20
- Beginning MicroPython with the Raspberry Pi Pico: Build Electronics and IoT Projects (Maker Innovations Series)Paperback$3.95 shippingGet it Sep 9 - 14Usually ships within 11 to 12 days
- MicroPython for the Raspberry Pi Pico W: A gentle introduction to programming digital circuits with PythonPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Thursday, Aug 20
- Advanced Programming in MicroPython By ExamplePaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Thursday, Aug 20
Customers also bought or read
- Get started with MicroPython on Raspberry Pi Pico: The Official Raspberry Pi Pico Guide
Paperback$19.99$19.99Delivery Wed, Aug 19 - Beginning MicroPython with the Raspberry Pi Pico: Build Electronics and IoT Projects (Maker Innovations Series)
Paperback$44.89$44.89$3.95 delivery Sep 9 - 14 - Programming ESP32: Learn MicroPython Coding and Electronics (MonkMakes Embedded Programming)
Paperback$11.95$11.95Delivery Thu, Aug 20 - Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to Programming#1 Best SellerFunctional Software Programming
Paperback$27.53$27.53Delivery Wed, Aug 19 - Python for Microcontrollers: Getting Started with MicroPython
Paperback$17.30$17.30Delivery Thu, Aug 20 - Programming the Pico: Learn Coding and Electronics with the Raspberry Pi Pico
Paperback$11.99$11.99Delivery Wed, Aug 19 - Python All-in-One For Dummies (For Dummies: Learning Made Easy)
Paperback$24.77$24.77Delivery Wed, Aug 19 - AVR Programming: Learning to Write Software for Hardware (Make: Technology on Your Time)
Paperback$23.49$23.49Delivery Wed, Aug 19 - MicroPython Cookbook: Over 110 practical recipes for programming embedded systems and microcontrollers with Python
Paperback$51.99$51.99FREE delivery Thu, Aug 20 - Beginning C for Arduino, Second Edition: Learn C Programming for the Arduino
Paperback$29.53$29.53Delivery Thu, Aug 20 - Programming ESP32: Learn MicroPython Coding and Electronics (MonkMakes Embedded Programming)
Paperback$12.50$12.50Delivery Thu, Aug 20 - Effective Python: 125 Specific Ways to Write Better Python (Effective Software Development Series)
Paperback$52.80$52.80FREE delivery Wed, Aug 19 - The Pragmatic Programmer: Your Journey To Mastery, 20th Anniversary Edition (2nd Edition)#1 Best SellerSoftware Testing
Hardcover$45.97$45.97FREE delivery Wed, Aug 19 - Programming Arduino Next Steps: Going Further with Sketches, Second Edition
Paperback$19.49$19.49Delivery Thu, Aug 20 - Programming the Raspberry Pi, Third Edition: Getting Started with Python
Paperback$9.36$9.36Delivery Wed, Aug 19
From the brand
-
Your partner in learning
-
Bestsellers
-
Software Development
-
Programming Languages
-
AI / Machine Learning
-
Data Science
-
Data, Databases and more
-
Cloud Services
-
Business
-
Finance
-
Blockchain / Cryptocurrency
-
Security
-
Lean series
-
Cookbooks
-
Head First series
-
97 Things series
-
Sharing the knowledge of experts
O'Reilly's mission is to change the world by sharing the knowledge of innovators. For over 40 years, we've inspired companies and individuals to do new things (and do them better) by providing the skills and understanding that are necessary for success.
Our customers are hungry to build the innovations that propel the world forward. And we help them do just that.
From the Publisher
From the Preface
MicroPython is a re implementation of Python 3 for micro controllers and embedded systems. It’s also a staggering feat of engineering to have a reimplemention of Python that works under such constrained circumstances. Why is this important? MicroPython empowers people: it brings one of the most beautiful, easy-to-learn, and expressive programming languages to the world of embedded development.
This book is intended for anyone who wants to learn how MicroPython is used for embedded development. I expect you to already know Python, but I don’t expect you to be an expert. For example, much of the material found in this book works well in an educational context; so rather than being a professional programmer, you might be a teacher or autodidact.
I aim to give you the understanding, pointers, and ideas you need so you feel confident when working on your own projects.
Most importantly, I want this book to be both fun and inspiring. After reading it, I hope you have enough enthusiasm that you dive in, feet first, to making your own MicroPython-based doohickey, thingamabob, or enchanted object.
This book will provide an overview of the sorts of devices that run MicroPython, prompt you into thinking about how best to develop and execute embedded projects, examine how MicroPython uses and interacts with hardware in order to fulfil various common outcomes and behaviours, and explore idiomatic MicroPython development. It will close with suggestions for next steps.
As with any book, it contains compromises. Some may find it too technical, others not technical enough. Alternatively, some may feel I spend too much time on certain subjects and gloss over others. No matter the compromises I’ve had to make, my intention has been to write something that is easy to read and accessible while providing enough context and signposts to resources for further study. My ultimate aim is simple: to help bring more people to the remarkable technology that is MicroPython.
It’s important to note that MicroPython is a relatively young project. It’s an exciting time to get involved as a community evolves, tools and infrastructure are created, features are added, and bugs are fixed. Given the sharp uptake in conference talks, workshops, and community meetings, there is a lot of enthusiasm in various communities for MicroPython and its nascent potential. Python programmers are learning how to create projects with embedded devices, embedded developers are discovering how much fun it is to use Python, and educators all over the world see MicroPython as a compelling platform for teaching children how to code.
Furthermore, since MicroPython is a re implementation of regular Python, it retains Python’s state as a mature language with an international community of engaged and active programmers.
Editorial Reviews
About the Author
Product details
- Publisher : O'Reilly Media
- Publication date : November 7, 2017
- Edition : 1st
- Language : English
- Print length : 210 pages
- ISBN-10 : 1491972734
- ISBN-13 : 978-1491972731
- Item Weight : 2.31 pounds
- Reading age : 11 years and up
- Dimensions : 7 x 0.4 x 9.2 inches
- Best Sellers Rank: #1,815,216 in Books (See Top 100 in Books)
- #86 in Electronic Sensors
- #375 in Single Board Computers (Books)
- #615 in Robotics (Books)
- Customer Reviews:
About the author

Discover more of the author’s books, see similar authors, read book recommendations and more.
Customer reviews
Customer Reviews, including Product Star Ratings help customers to learn more about the product and decide whether it is the right product for them.
To calculate the overall star rating and percentage breakdown by star, we don’t use a simple average. Instead, our system considers things like how recent a review is and if the reviewer bought the item on Amazon. It also analyzed reviews to verify trustworthiness.
Learn more how customers reviews work on AmazonTop reviews from the United States
- 5 out of 5 stars
Five Stars
Reviewed in the United States on April 27, 2018Simple and easy to go with, but few examples
One person found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 5 out of 5 stars
Five Stars
Reviewed in the United States on May 18, 2018Just started the book yesterday. Really enjoying it. Well-written. Thanks Nicholas.
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 4 out of 5 stars
Excellent if you know Python and already have a little embedded programming experience.
Reviewed in the United States on April 4, 2018As the author states in the second paragraph of the Preface you *do* need to know Python (but not be an expert) before you will get much use from this book. If you know Python and you have some experience in embedded systems this book will explain all the details like using MicroPython to declare and configure digital and analog I/O pins, pin direction, pull-up and pull-down resistors, and using MicroPython to configure, read and write to sensors or other devices using I2C, SPI, etc.
I think it's probably accurate to say that this book focuses on the parts of Python that are specific to embedded systems and that won't be found anywhere else. It covers a lot of different areas using several different devices, unlike some other MicroPython books that use a MicroPython device from a single manufacturer in all the examples. I have several MicroPython books and this is probably my favorite.
I would have given it 5 stars but the price is just too high for a technical book that will very likely be outdated in a year or so.
12 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 3 out of 5 stars
Best for experienced Python programmers
Reviewed in the United States on February 10, 2018This isn't a book about HOW to program embedded systems in MicroPython, but ABOUT using MicroPython in embedded systems.
There is a big difference between the two.
If you already are adept at programming in Python you will find this an interesting take on how you can carry your existing skills over to micro-controllers and the domain of embedded programming. You will find the pages detailing development board options insightful, and appreciate the examples of using sensors and outputs. You will find the sections like "Abilities of Enchantment" and "The Zen of MicroPython" an interesting view on philosophical approaches to the language and embedded development.
If you can already write programs but are not familiar with the Python language, studying the examples will get you going but will provide minimal insight into the language's structure, features and usage. Key concepts like the language's syntax, variables, dictionaries and lists do not even get an entry in the book's index, and if they are mentioned it is only in passing. This was my situation, and I quickly decided to go to other material to learn the basics of the language.
It is stated explicitly in the footnote on the bottom of page IX, and I agree. To get value from this book you need to be familiar with Python's syntax, how do define and call a function and how to control program flow in your code. If you do not already know the Python language, or are new to the fundamentals of programming then you are going to find this book very challenging.
21 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 2 out of 5 stars
A little lacking in technical depth. More useful if you have a micro:bit.
Reviewed in the United States on January 31, 2021Overall I was disappointed in this book. I found it lacking in technical depth, with a great deal of text spent on exposition and detailing the virtues of microcontrollers and IoT. While a nod is given to a few other Micropython microcontrollers, the vast majority of the focus is on the micro:bit, with little assistance provided in porting code between devices. I would expect a book like this to cover what Micropython modules are available for each device, the functions available in those modules, and the differences between them.. none of that was included. The book spends very little time actually discussing Micropython, despite using it for every example. Very little attention is given to the ESP8266/ESP32, though a few examples are present for it. Some neat examples are presented for the micro:bit and Circuit Playground boards.
8 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 1 out of 5 stars
If you are thinking you might want to buy this book in 2026, think again!
Reviewed in the United States on June 29, 2026This book ceased to be a useful choice at least 5 years ago. It contains little to nothing that is useful in 2026.
Sending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 3 out of 5 stars
From 2017
Reviewed in the United States on November 27, 2023We are in the last quarter of 2023 and this book is from 2017, around 6 years old. A lot has happened since 2017, there needs to be an updated, contemporary version of this book, especially at $42.
2 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again - 1 out of 5 stars
Take a hard pass on this one!
Reviewed in the United States on April 20, 2021Another “micropython” book that soends half of the book explaining how to install micropython on all the things. I’m so irritated once I got to the part in the book where the author went on a multi paragraph lecture on celebrating difference and diversity, excercising capacity for empathy, adapting to change, etc(NOT A JOKE) the title of the book is misleading and now I have to read his horrible attempt to work in all the cultural buzzwords into a PROGRAMMING book! If your expecting a well written programming book like I was from O’Reilly, your going to be seriously disappointed. Tip to the Author. No one is using the Microbit! It’s old and outdated. They decided to stand still while the microcontroller revolution blew by. For a fraction of the price you can buy a board with WiFi and Bluetooth and for some reason felt the need to focus on the microbit. So disappointed O’Reilly put their name on this. Hopefully they’ll get back on track after this blunder. One more thing, most programming books are 350-600+ pages and still gloss over a lot of information. This book is 180 something pages with ideological nonsense incorporated throughout. Take a hard pass on this one!
18 people found this helpfulSending feedback...Sending feedback...HelpfulThank you for your feedback.Sorry, we failed to record your vote. Please try againThanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Top reviews from other countries
couilleaux g.5 out of 5 starsproduit de qualité et conforme
Reviewed in France on July 25, 2019produit de qualité et conforme
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
ch.tejeshsriabhay5 out of 5 starsNice book but..
Reviewed in India on July 29, 2022Nice book but you need to know python basics (you can learn at python official website in lear section)
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Thierry5 out of 5 starsGreat read.
Reviewed in Canada on July 10, 2020Thumbs up. No issues with the quality of the product or the delivery.
Book in excellent condition and great introduction for whoever wants to dip their toe in the world of microprocessors.
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Dawn5 out of 5 starsI can highly recommend this book
Reviewed in the United Kingdom on November 25, 2017I can highly recommend this book. It is well written and accessible. I passed it around the trainees yesterday after having a read myself. They liked it too. It is really well written and teacher friendly. The technical detail is explained in an accessible manner, it Is extremely useful for teachers who are engaging with new technology.
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again
Alberto V.5 out of 5 starsBuen libro
Reviewed in Mexico on April 16, 2021Da una buena reseña de diversas plataformas que son programadas con MicroPython.
Sending feedback...Thanks, we'll investigate in the next few days.Sorry, We failed to report this review. Please try again


















