Programming The Raspberry Pi Pico
In MicroPython

Errata

Program Listings

Resources

 

picoPython360

ISBN: 978-1871962697

Buy from: Amazon

The Raspberry Pi Pico is a remarkable microcontroller. It has a power and sophistication that would have been unthinkable just a short time ago. For the sort of jobs it is ideal for, it has plenty of processing power and enough memory to make tasks that would have once required careful planning, relatively easy. Instead of struggling with the machine, you can now focus on getting a good implementation of your algorithms.

MicroPython is a good choice of language to program the Pico. It isn’t the fastest way, but in most cases it is fast enough to interface with the Pico’s hardware and its big advantage is that it is easy to use. As a high-level language, MicroPython is based on Python 3, and is fully object-oriented. This means that you can create classes to encapsulate hardware and make it easier to use and understand.

The purpose of Programming the Raspberry Pi Pico in MicroPython is to reveal what you can do with the Pico's GPIO lines together with widely used sensors, servos and motors and ADCs. After covering the GPIO, outputs and inputs, events and interrupts, it gives you hands-on experience of PWM (Pulse Width Modulation), the SPI bus, the I2C bus and the 1-Wire bus.

One of the key advantages of the Pico is its PIO (Programmable I/O) and while this is an advanced feature it is included in this book. After finding out how the PIO works, we apply it to writing a PIO program for the DHT22 and the 1-Wire bus. One current drawback of the Pico it is that it doesn’t have a network connection. To solve this problem there is a chapter on using the low-cost ESP8266 as a WiFi client and web server. The two devices together make the Pico a true IoT device.

Jointly authored byHarry Fairhead and Mike James, this book is along the same lines as Programming the Raspberry Pi Pico in C. As with their previous collaboration Raspberry Pi IoT In Python Using Linux Drivers Harry brings his expertise in electronics and the IoT while Mike contributes the Python code.

Harry Fairhead is also the author of Raspberry Pi IoT In C Using Linux Drivers, Raspberry Pi IoT in C, Second Edition Micro:bit IoT in C, Second Edition Applying C For The IoT With Linux and Fundamental C: Getting Closer To The Machine.

Mike James is the author of Programmer's Python: Everything is an Object and other programming and computer science titles in the I Programmer Library.

 Paperback 

  • Publisher : I/O Press (May 16, 2021)
  • Language : English
  • Paperback : 316 pages
  • ISBN-10 : 1871962692
  • ISBN-13 : 978-1871962697
  • Item Weight : 1.51 pounds
  • Dimensions : 7.5 x 0.72 x 9.25 inches

Kindle 

  • ASIN : B09522FQRY
  • Publisher : I/O Press; 1st edition (May 15, 2021)
  • Publication date : May 15, 2021
  • Language : English
  • File size : 13568 KB