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

Setting up the soil sensor

In this section, we will interface and test the soil sensor to the Pico. A Fritzing schematic of the soil sensor is shown here:

Figure 4.5 – Fritzing schematic to interface the soil sensor to the Pico

Pico Pinout

A pinout reference card for the Pico will come in handy while wiring up components. We provided a link to the pinout card in Chapter 1, Getting Started with the Raspberry Pi Pico.

The soil sensor comes with an I2C interface, and the STEMMA soil sensor connector consists of four pins—namely SCL, SDA, VIN, and GND. If you are not familiar with the I2C interface, we recommend reading Chapter 2 of this book, Serial Interfaces and Applications. In the Fritzing schematic, looking from left to right, the soil sensor is connected to the Pico as follows:

  • SCL to the GP9 pin of the Pico.
  • SDA to the GP8 pin of the Pico.
  • VIN to the 3.3V pin of the Pico.
  • The GND pins are tied together.

    Pull-Up Resistors...