Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
MicroPython Projects
MicroPython Projects

MicroPython Projects: A do-it-yourself guide for embedded developers to build a range of applications using Python

eBook
£26.99
Paperback
£33.99
Subscription
Free Trial
Renews at £9.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Key benefits

  • Delve into MicroPython Kernel and learn to make modifications that will enhance your embedded applications
  • Design and implement drivers to interact with a variety of sensors and devices
  • Build low-cost projects such as DIY automation and object detection with machine learning

Description

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 is a comprehensive project-based guide that will help you build a wide range of projects and give you the confidence to design complex projects spanning new areas of technology such as electronic applications, automation devices, and IoT applications. While building seven engaging projects, you'll learn how to enable devices to communicate with each other, access and control devices over a TCP/IP socket, and store and retrieve data. The complexity will increase progressively as you work on different projects, covering areas such as driver design, sensor interfacing, and MicroPython kernel customization. By the end of this MicroPython book, you'll be able to develop industry-standard embedded systems and keep up with the evolution of the Internet of Things.

Who is this book for?

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.

What you will learn

  • 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

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Apr 17, 2020
Length: 294 pages
Edition : 1st
Language : English
ISBN-13 : 9781789952537
Category :
Languages :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Apr 17, 2020
Length: 294 pages
Edition : 1st
Language : English
ISBN-13 : 9781789952537
Category :
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
£9.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 6,500+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
£99.99 billed annually
Feature tick icon Unlimited access to Packt's library of 6,500+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just £5 each
Feature tick icon Exclusive print discounts
£139.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 6,500+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just £5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total £ 110.97
Practical Python Programming for IoT
£38.99
MicroPython Projects
£33.99
MicroPython Cookbook
£37.99
Total £ 110.97 Stars icon
Visually different images

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.4
(10 Ratings)
5 star 70%
4 star 20%
3 star 0%
2 star 0%
1 star 10%
Filter icon Filter
Top Reviews

Filter reviews by




Tam Hanna Apr 24, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
MicroPython in general has a reputation of being a toy language. This book assumes you to know about the electronic basics, and instead looks at advanced problems such as attempts at real time scheduling, connecting to an Arduino and running basic ML payloads.This is not a book for people who just "graduated" from the Arduino. Experienced embedded engineers such as yours truly, however, can learn a lot here. Thus, my recommendation shall always, happily, be granted!
Amazon Verified review Amazon
Brad Stewart May 26, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is one of the most interesting books I've discovered for MicroPython. It's clearly written, the examples are comprehensive, and most important of all—I gained new insights and knowledge. The author has created a series of very useful projects and a design methodology that I am adopting for my own needs. The chapter on managing real-time tasks alone is worth the admission price.I'm an electrical engineer and I've been programming embedded systems for about 40 years. I've used many different languages, debuggers, middleware, and IDEs. A couple of years ago, I discovered MicroPython that runs on a STM32F405 MCU. Since then, I've developed several products from automotive to industrial applications that utilize the MicroPython environment. And unless I really need to program in C, I'm sticking with MicroPython. It's that good.One thing I must mention first. This is not a book for beginners. It helps if you have some Python experience, but you should really have some hands-on experience with MicroPython. There are excellent sources on the web and other books such as Programming with MicroPython: Embedded Programming with Microcontrollers and Python by Nicholas Tollervey. But when you're ready to take the next step, then MicroPython Projects should be on your list of must reads.The first chapter makes the case for MicroPython. Although the author makes it clear of the advantages of using MicroPython, I would go even further and make the bold statement that MicroPython will become the dominant embedded programming language in the foreseeable future. My main justification is that Python is the world most popular computer language. Even embedded projects that utilize the Raspberry Pi use Python. Furthermore, those knowledgeable in embedded C are becoming a scarce resource, especially in the U.S.The second chapter is my favorite. It's about managing real time tasks. Yes, it's possible with MicroPython which makes it different from regular Python. The author explains standard methods familiar with RTOS programmers. This includes round-robin scheduling, periodic scheduling using timers, event-driven scheduling, cooperative scheduling, and even using the nascent (and too early to use) MicroPython thread mechanism. Of these, the “asyncio” library has the ability to do cooperative multitasking,and a simple example is provided. Brilliant. My only comment is that not all versions of MicroPython (e.g. CircuitPython) can use these techniques and perhaps this could have been pointed out.The third chapter goes into details on hooking up some hardware to a PyBoard and writing the drivers to support it. The author details the design methodology including flow diagrams, building a series of “test cases,” and creating class objects to drive the hardware. My only comment is that one of the libraries was written as a class object, where as the second example is not. However, a glance at the git repository where the example code is available shows everything tied together as class libraries and invoked with a “main.py” module.The fourth chapter introduces the concept of “test harnesses.” These are used to test the MicroPython modules and application code. A simple example is used to convey the general idea.The fifth chapter is also very useful. It explains how you can customize the MicroPython kernel. This is important if you need to port to another MCU or if you want to develop custom libraries that can be included in the kernel. I've had to do this in the past to overcome some MCU peripheral limitations and functionality, as well as “freezing” libraries into the kernel as I started to run out of SRAM. Although the procedures for doing the modifications can be found on the internet, this is the first time I've seen it clearly presented in a book form.Chapter Six discusses ways to visualize data which is very useful during code development such as plotting data from a sensor in real-time (or near real-time) on your PC. In a typical C development, this is a bit of a challenge. The REPL prompt of MicroPython (and PC Python) is a very powerful feature which can be leveraged to send data to a PC over USB and displaying the data graphically using the Python mathplotlib (or Tkinter) libraries.To round out the rest of the book, Chapter Seven goes through a gesture recognizer that uses IR emitters and detectors, Chapter Eight explains how to use Android and the web to communicate with a ESP32 MicroPython board, Chapter Nine has examples for machine learning, and Chapter Ten provides a glimpse into the near future of MicroPython.So what's not to like about MicroPython Projects? I found the mix of examples using class objects and regular code to cause some temporary confusion. But my main complaint is the quality of some of the pictures and diagrams. For $40, I would expect higher print quality. But that is really the fault of the publisher.Although this book has a lot of useful information, more is needed. By it's nature, MicroPython can be slow and memory hungry. But it doesn't have to be as there are many ways to speed it up and optimize memory. Perhaps this can be covered in a second volume.All in all, an excellent read and I highly recommend it.
Amazon Verified review Amazon
jerzy wilder Feb 22, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Thanks
Amazon Verified review Amazon
Carl W. Livingston Jul 07, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I read this book because I use Micropython for personal projects. As such, I am always looking for good books on the subject of Micropython.If you want to make small changes or additions to the Python core, this book will tell you how to do that.If you use the ESP32 controller, you will want to read the section on setting up a project using the ESP32 wireless module...
Amazon Verified review Amazon
Clive (Max) Maxfield May 18, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Let’s commence with the full disclosure “weasel words” (remember that eagles may soar, but weasels rarely get sucked into jet engines). First, I’m a friend of the author; second, the publisher gave me a free copy of the book to peruse, ponder, and review.OK, so I’ll start by saying that this book is not for everyone. It’s intended for a specific audience and for that audience it’s a fantastic book, but it’s not intended for beginners.The high-level blurb for the book says: “A basic understanding of electronics and Python is required while some MicroPython experience will be helpful.” When you start reading the book, it becomes a little more specific by saying: “This book assumes that the reader has a basic understanding of Python and that they have at least built a few embedded systems projects previously.”I think the key point here is the fact that the book is targeting readers who have already created a couple of embedded systems, so they understand concepts like hardware abstraction layers (HALs) and they are familiar with using GitHub and suchlike.I’m a hardware design engineer by trade. I can read and write software (predominantly C with a hint of a sniff of Python), but you wouldn’t want to use my hobbyist-level code for anything serious. Also, I’ve found it difficult in the past to meander my way around GitHub and download and install libraries and make sense of other peoples’ implementations, which is something professional embedded systems developers appear to have no problems with at all.So, assuming that you already have a clue what you are doing with regard to microcontroller development boards and embedded systems, and aren’t afraid when you hear the term “Python,” then this book provides an awesome introduction to MicroPython, which is an efficient and lean implementation of the Python 3 programming language optimized to run on microcontrollers.The book starts by setting the scene -- talking about the advantages and disadvantages of languages like C/C++ and Python and MicroPython. Next, we look at different ways to manage real-time tasks in MicroPython, using blinking a couple of unicolor LEDs as examples. This leads us into creating a simple application to read a pushbutton and use it to cycle through a series of colors on a tricolor (RGB) LED.From here, the author keeps building things up layer-by-layer, developing an application test harness, customizing the MicroPython Kernel start-up-code for your own boards, and creating a visualizer tool to display sensor data. By the end of the book, we are using MicroPython, computer vision, and machine learning (ML) to build an object detection system using the OpenMV Camera.I know many embedded systems developers who are devoted to C, but although C is incredibly powerful, it also provides you with a lot of ways to mess up (I found most of them on my own). I also know developers who started off by dipping their toes in the MicroPython waters and who subsequently became ardent users, especially for things like sensor evaluation and rapid prototyping.If you are an embedded systems developer, then the worst-case scenario is that reading this book could give you “another string to your bow” -- but beware, because you may find yourself sliding down the slippery slope to becoming a MicroPython advocate.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.