Book Image

Raspberry Pi Pico DIY Workshop

By : Sai Yamanoor, Srihari Yamanoor
Book Image

Raspberry Pi Pico DIY Workshop

By: Sai Yamanoor, Srihari Yamanoor

Overview of this book

The Raspberry Pi Pico is the latest addition to the Raspberry Pi family of products. Introduced by the Raspberry Pi Foundation, based on their RP2040 chip, it is a tiny, fast microcontroller that packs enough punch to power an extensive range of applications. Raspberry Pi Pico DIY Workshop will help you get started with your own Pico and leverage its features to develop innovative products. This book begins with an introduction to the Raspberry Pi Pico, giving you a thorough understanding of the RP2040's peripherals and different development boards for the Pico designed and manufactured by various organizations. You'll explore add-on hardware and programming language options available for the Pico. Next, you'll focus on practical skills, starting with a simple LED blinking project and building up to a giant seven-segment display, while working with application examples such as citizen science displays, digital health, and robots. You'll also work on exciting projects around gardening, building a weather station, tracking air quality, hacking your personal health, and building a robot, along with discovering tips and tricks to give you the confidence needed to make the best use of RP2040. By the end of this Raspberry Pi book, you'll have built a solid foundation in product development using the RP2040, acquired a skillset crucial for embedded device development, and have a robot that you built yourself.
Table of Contents (17 chapters)
1
Section 1: An Introduction to the Pico
6
Section 2: Learning by Making
10
Section 3: Advanced Topics

Interfacing the stepper motor

In this section, we will discuss interfacing a stepper motor with the Raspberry Pi Pico using the DRV8833 Stepper Motor Driver. This will enable us to build a display where the stepper motor will point to the corresponding air quality category.

Motor Selection

For this project, we chose a stepper motor that is used in automotive gauges. This is because the motor has a total movement range of 315°. It also comes with a needle that is useful in building our visual aid. Motor selection for an application involves several factors. We recommend the following article from SparkFun: https://bit.ly/3qyYxnX.

The first step is to wire up the stepper motor driver to the Raspberry Pi Pico. Figure 7.21 shows the connections of the stepper motor driver to the Pico. The stepper motor driver is connected as follows where the left-hand side of the arrow refers to a pin available on the Raspberry Pi Pico while the right refers to a pin on the DRV8833 stepper...