Poging GOUD - Vrij

Cheaper sense and sensor-abilities

Linux Format

|

July 2022

The ever-frugal Les Pounder reveals how two of the cheapest sensors on the market can bring a wealth of data to your Raspberry Pi project.

- Les Pounder

Cheaper sense and sensor-abilities

The DS18B20 and DHT11 are two cheap, simple-to-use temperature sensors. They can even work side-by-side for added data collection.

OUR EXPERT

Les Pounder is the under-paid associate editor at Tom's Hardware and a freelance maker for hire.

YOU NEED

> Any Pi model

> The latest Pi OS

> DHT11 temperature sensor

> 3x female to female jumper wires

> DS18B20 temperature sensor

> 4.7K Ohm resistor (Yellow Purple Red Gold)

> Breadboard

> 3x male to female jumper wire

> Code and diagrams at https://bit.ly/Ixf290sensors

The electronics world has many different, cheap and simple sensors that we can use to gather temperature data. We've chosen two models that meet all of those categories, and will show you how to use them with just a few lines of Python.

Three wires is all we need to connect the DHT11 to our Raspberry Pi. Buy a DHT11 with a built-in resistor - they're much easier to work with.

Project 1: DHT11 sensor

The DHT11 is often bundled in electronics kits for the Raspberry Pi and Arduino. It's accurate to within five per cent between 20 and 80 per cent humidity, and ±2°C between 0 and 50°C. This makes it a great hobby sensor, but not ideal for projects that require precision.

There are two versions of the DHT11: a basic version with no pull-up resistor; and our version, which has an integrated resistor. If you can, buy this version.

MEER VERHALEN VAN Linux Format

Linux Format

Linux Format

Create your first WebSocket service

Mihalis Tsoukalos explains how to use the Go programming language to work with the WebSocket protocol.

time to read

9 mins

April 2023

Linux Format

Linux Format

Fantastic Mr Firefox

Nick Peers takes a trip down memory lane to reveal the story behind the rise - and slight fall - of Mozilla's popular web browser.

time to read

9 mins

April 2023

Linux Format

Linux Format

Set up your terminal and email like it's 1983

Jump in the hot terminal time machine with Mats Tage Axelsson who emails from the command line using the latest technology.

time to read

8 mins

April 2023

Linux Format

Linux Format

Universal layer text effects with GIMP

Posters use them, films and presentations are hard to imagine without them: text effects. Attract attention with Karsten Günther and GIMP.

time to read

8 mins

April 2023

Linux Format

Linux Format

Jump to a federated social network

Nick Peers reveals how you can get up and running with this free, decentralised and non-profit alternative to Twitter.

time to read

9 mins

April 2023

Linux Format

Linux Format

Free our SOFTWARE!

Taking anything for granted is dangerous, so Jonni Bidwell and Mike Saunders revisit how the free software movement got started to help free us from proprietary tyranny!

time to read

4 mins

April 2023

Linux Format

Linux Format

Master RPI.GPIO

Les Pounder goes back to the early days of the Raspberry Pi - and his career with this classic library! -

time to read

5 mins

April 2023

Linux Format

Linux Format

Waveshare Zero to Pi3

Transform your Pi Zero into a Pi 3, they promised Les Pounder, but it's more like adding on go-faster stripes.

time to read

2 mins

April 2023

Linux Format

Linux Format

The Best OPEN SOURCE Software Ever!

In an attempt to trigger controversy, Michael Reed and Neil Mohr unequivocally state these are the greatest free software apps ever. Probably. We’re just trying to be helpful.

time to read

19 mins

April 2023

Linux Format

Linux Format

Linux-Mandrake 7

Simplicity and a wide range of applications make this a great distribution for all Linux users.

time to read

2 mins

April 2023

Translate

Share

-
+

Change font size