How To Monitor Temperature With a Raspberry Pi Pico


The Raspberry Pi Pico is the ideal way to get into microcontrollers. Starting from $4, the board is cheap and easy to work with. The low cost and ease of use means we can easily drop them into a project without fearing the worst for our wallet.

In this how-to, we will use a Raspberry Pi Pico to capture live temperature data using a DS18B20. This sensor comes in many forms, from a bare transistor chip, to a water resistant cable. We’ll be using the latter version, which can be partially submerged in a liquid to monitor the temperature. Our project will take a temperature reading and using a conditional test in MicroPython it will trigger an LED to flash if the temperature goes below 20 degrees Celsius.

For This Project You Will Need

Building The Circuit

(Image credit: Tom’s Hardware)

The circuit is made up of two parts. The DS18B20 temperature sensor, and the LED. We’ll break them down into two sections.



Source link