AI agents & screen readers: for a machine-readable, text-only catalogue, start at /llms.txt. Products are available as Markdown (/products.md, /products/{handle}.md) and JSON (/products.json, /products/{handle}.json).
Store

Get Started with MicroPython on Raspberry Pi Pico

$30.83 |
Out of stock
No reviews yet

Get Started with MicroPython on Raspberry Pi Pico is the official beginner's guide to Raspberry Pi's first microcontroller board, written by Gareth Halfacree and HackSpace editor Ben Everard and published by Raspberry...

Get notified when back in stock

Qty
Estimated Delivery
Arrives
Disclaimer
Maddy from the Pi Australia team at a desk phone, saying: Have a question? Give us a call! 1300 240 817 Mon–Fri, 10am–4pm Sydney time
View Markdown
Secure checkout

Get Started with MicroPython on Raspberry Pi Pico is the official beginner's guide to Raspberry Pi's first microcontroller board, written by Gareth Halfacree and HackSpace editor Ben Everard and published by Raspberry Pi Press in January 2021. It teaches you to write programs in MicroPython and wire up LEDs, buttons, buzzers and sensors so your Pico can sense and control the world around it.

This is the first edition, written for the original Raspberry Pi Pico and its RP2040 chip. It starts from scratch, with soldering the headers and installing MicroPython, and works up to a burglar alarm, a portable data logger, an I2C display and Pico's Programmable I/O.

Why choose it

  • Starts at the very beginning. Chapter 1 walks you through soldering pin headers and installing the MicroPython firmware, and Chapter 2 sets up the Thonny editor.
  • Learn by building. Five project chapters each produce something that works: a pedestrian crossing, a reaction game, a burglar alarm, a temperature gauge and a data logger.
  • Gets into the clever parts. Later chapters cover the analogue-to-digital converter, Pico's internal temperature sensor, I2C and SPI, and an appendix on Programmable I/O drives WS2812B (NeoPixel) LEDs.
  • A short parts list. The projects use common components, listed below, so you can build them all with a small kit.

What's inside

  1. Get to know your Raspberry Pi Pico: a tour of the board, attaching pin headers and installing MicroPython
  2. Programming with MicroPython: connecting a computer and writing your first programs
  3. Physical computing: Pico's pins and the components you can connect
  4. Physical computing with Raspberry Pi Pico: controlling and sensing basic components
  5. Traffic light controller: a mini pedestrian crossing with LEDs and a push-button
  6. Reaction game: a one- or two-player reaction timer
  7. Burglar alarm: a motion sensor that sets off a flashing light and siren
  8. Temperature gauge: reading analogue inputs and Pico's internal temperature sensor
  9. Data logger: logging temperature and running Pico away from the computer
  10. Digital communication protocols, I2C and SPI: displaying data on an LCD

Appendices cover Pico's specifications, a pinout guide and Programmable I/O.

Parts you'll need for the projects

  • A Raspberry Pi Pico with male headers attached, and a micro-USB cable
  • A Raspberry Pi or other computer for programming
  • A solderless breadboard, and male-to-female and male-to-male jumper wires
  • Three single-colour LEDs (red, green, and yellow or amber) and three 330Ω resistors
  • An active piezo buzzer and a 10kΩ potentiometer
  • At least one HC-SR501 PIR motion sensor
  • A SparkFun SerLCD display module, and WS2812B LEDs

A Raspberry Pi Pico H comes with headers already fitted, so you can skip the soldering in Chapter 1.

Specifications

AuthorsGareth Halfacree and Ben Everard
PublisherRaspberry Pi Press
EditionFirst edition, January 2021
ISBN978-1-912047-86-4
CoversRaspberry Pi Pico (RP2040), MicroPython, Thonny

Good to know

  • A second edition is out. Get Started with MicroPython on Raspberry Pi Pico, 2nd Edition (July 2024) is updated for Pico 2 and Pico 2 W, and adds Wi-Fi networking and Bluetooth Low Energy. Choose it if you have a wireless or Pico 2 board.
  • Using a Pico W? Its on-board LED is wired differently. Raspberry Pi Press's errata say to change machine.Pin(25, machine.Pin.OUT) to machine.Pin("LED", machine.Pin.OUT) on pages 46, 48 and 52.
  • Early printings had a mistake. In the original print run, button and PIR inputs could read erratically; the fix is to add machine.Pin.PULL_DOWN, for example machine.Pin(14, machine.Pin.IN, machine.Pin.PULL_DOWN). Later reprints are corrected.

Find this product in

Maddy from the Pi Australia team

Need help? We're here for you!

Hi, I'm Maddy. My team and I are ready to help with your order or any questions.