Microcontrollers, like the RP2040 chip at the heart of Raspberry Pi Pico, are computers stripped back to their bare essentials. You don't use monitors or keyboards with them — instead, you program them over USB to take their input from (and send their output to) on-board input/output pins.
Using these programmable connections, you can light LEDs, make noises, send text to screens, and much more. In Get started with MicroPython on Raspberry Pi Pico 2nd Edition, you will learn how to use the beginner-friendly MicroPython language to write programs, and you’ll connect up hardware to make your Raspberry Pi Pico interact with the world around it. Using these skills, you can create your own electromechanical projects, whether for fun or to make your life easier.
Fully updated for Raspberry Pi Pico W and the latest version of MicroPython, this book shows you how to:
Get started with Raspberry Pi Pico and Pico WWork with various electronic componentsCreate your own programmable electronic contraptionsTurn Raspberry Pi Pico W into a network-connected node for the Internet of ThingsLink your Pico W to your smartphone, tablet, or another Pico W with Bluetooth Low Energy (BLE)
Whether you’re using Raspberry Pi Pico for a home project, industrial automation, or learning (or teaching!) electronics and programming, this book will show you how.
Chapter 1: Get to know your Raspberry Pi PicoChapter 2: Programming with MicroPythonChapter 3: Physical computingChapter 4: Physical computing with Raspberry Pi PicoChapter 5: Traffic light controllerChapter 6: Reaction gameChapter 7: Burglar alarmChapter 8: Temperature gaugeChapter 9: Data loggerChapter 10: Digital communication protocols: I2C and SPIChapter 11: Wi-Fi connectivity with Pico WChapter 12: Bluetooth connectivity with Pico WAppendix A: Raspberry Pi Pico specificationsAppendix B: Pinout guideAppendix C: Programmable I/O