Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Raspberry Pi Pico DIY Workshop

You're reading from   Raspberry Pi Pico DIY Workshop Build exciting projects in home automation, personal health, gardening, and citizen science

Arrow left icon
Product type Paperback
Published in May 2022
Publisher Packt
ISBN-13 9781801814812
Length 376 pages
Edition 1st Edition
Arrow right icon
Authors (2):
Arrow left icon
Sai Yamanoor Sai Yamanoor
Author Profile Icon Sai Yamanoor
Sai Yamanoor
Srihari Yamanoor Srihari Yamanoor
Author Profile Icon Srihari Yamanoor
Srihari Yamanoor
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Section 1: An Introduction to the Pico
2. Chapter 1: Getting Started with the Raspberry Pi Pico FREE CHAPTER 3. Chapter 2: Serial Interfaces and Applications 4. Chapter 3: Home Automation Projects 5. Chapter 4: Fun with Gardening! 6. Section 2: Learning by Making
7. Chapter 5: Building a Weather Station 8. Chapter 6: Designing a Giant Seven-Segment Display 9. Chapter 7: Designing a Visual Aid for Tracking Air Quality 10. Section 3: Advanced Topics
11. Chapter 8: Building Wireless Nodes 12. Chapter 9: Let's Build a Robot! 13. Chapter 10: Designing TinyML Applications 14. Chapter 11: Let's Build a Product! 15. Chapter 12: Best Practices for Working with the Pico 16. Other Books You May Enjoy

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime