Questions tagged [ds18b20]

DS18B20 is a digital 1-wire thermometer chip that can be connected to Raspberry Pi GPIO pins.

DS18B20 is a digital thermometer chip by Dallas Semiconductor communicating using a 1-Wire bus which can be connected to GPIO pins on a Raspberry Pi.

109 questions
13
votes
4 answers

max length of wire w/ 3.3v or other issue

I have a raspberry pi connected to a DS18B20 temperature sensor shown in the diagram below. The one-wire software is installed and I am able to successfully read the temperature from the devices folder/file in /sys/bus/w1/devices. The problem I am…
BryanK
  • 275
  • 1
  • 3
  • 8
7
votes
4 answers

How to change DS18B20 reading resolution?

I've got my 4 Maxim DS18B20 devices up and working using the w1-gpio and w1-therm modules. I would however like to change the temperature resolution by writing to the config register of the devices, as described on page 8 of the Maxim spec here Is…
s445203
  • 101
  • 1
  • 1
  • 4
3
votes
1 answer

DS18B20 temperature sensor not working on Raspberry Pi 2 Model B

I am using a Raspberry Pi 2 Model B and trying to hook up a DS18B20 temperature sensor to it. Current Running Raspbian Jesse which was installed onto SD card about a month ago. Running uname -a returns: Linux raspberrypi 4.1.18 v7+ #846 SMP Thu…
Eric B
  • 73
  • 2
  • 6
3
votes
1 answer

DS18b20 address finding

Can anyone help me how to find the address of DS18b20 temp sensor automatically and display the temperature using a simple python code?
Assazzin
  • 193
  • 3
  • 9
2
votes
2 answers

DS18B20 Sensor not detecting

I've got a DS18B20 Temperature Probe connected to my Pi but it can't seem to detect it. I run: sudo modprobe w1-gpio sudo modprobe w1-therm and then go to cd /sys/bus/w1/devices and do ls and it shows the file as empty. I know its not a problem…
Kersakov
  • 415
  • 2
  • 5
  • 9
2
votes
5 answers

What is the maximum number of DS18B20 probes that can attached to one input port?

I initially asked this as an 'answer' to an existing thread on DS18B20 temperature probes as it seemed the obvious way to ask a question of people who were connecting the probes to various hardware. However this was deleted as it wasn't an answer,…
Tim Barker
  • 29
  • 1
  • 1
  • 3
2
votes
2 answers

Need another voltage pin

I'm trying to make a thermostat controlled by my Raspberry Pi 4. It has a touchscreen, which covers the first 13 pins on both sides (pins 1-26). I obviously need to attach a temperature sensor (DS18B20). While I have access to a few grounds, all the…
pkSML
  • 163
  • 1
  • 1
  • 6
1
vote
1 answer

Can't get multiple DS18B20 to work. What am I doing wrong?

I am really struggling with this one. I want to attach multiple (5 or so would be nice) DS18B20 sensors (3 meter cable), but I can't get more than two to function. Two will show up in the devices folder with their proper address, but once I attach…
Viktor Gruber
  • 43
  • 1
  • 5
1
vote
1 answer

Conflict or some other issue with "usual" ds18b20 vs waterproof version of this sensor

I have 5 normal ds18b20 sensors and one ds18b20 waterproof sensor and YL-10 adapter (with 4k7 resistor) to connect these sensors to Raspberry Pi. Problem is, that when I connect my "usual" sensors to adapter - everything works well. I see these…
roman
  • 11
  • 2
1
vote
1 answer

Interfacing DS18B20 sensor to Raspberry pi in long distance

I have a Raspberry Pi connected with two ds18b20 temperature sensors. -sensor1 is fixed on the outside of my garage (distance 20m from raspberry Pi) -sensor2 is just connected in a breadboard near the Raspberry Pi. Everything is working well. I…
Octobre
  • 11
  • 1
1
vote
0 answers

DS18B20 way too high temperature values

I am using 2 DS18B20 temperature sensors connected to my raspi. They are connected to a 5 meter long cable together with a DHT11 humidity sensor, do they share plus and minus. The problem I have is both the sensors are returning really high values…
qwertz
  • 180
  • 2
  • 10
1
vote
1 answer

Is it possible to break a DS18B20 temperature probe via a software bug?

After using the same code for over a year, I made some changes to my code a month ago, and now it appears that one of my DS18B20 temperature probes is broken. My program reads anywhere from 2 to 4 probes at a given time. I can plug three different…
Matthew Moisen
  • 745
  • 5
  • 11
  • 25
1
vote
1 answer

Dallas ds18b20 stopping randomly

I have an issue with Dallas 18b20: randomly I loose connection (serial number of sensors disappear). I have two sensors that have been connected to Raspberry, with 4k7 resistor. I didn’t have problems till two month ago. Now I loose the sensors,…
1
vote
0 answers

multiple DS18B20 error: 'list index out of range'

I power a RPi 4B, and DS18B20 sensors. My aim is to build an measurement system for our heating system. With 15-20 temperature senors. Useing 4,7 kOhm pullup Resistor to 3 V Powering star typology VCC 3 V useing python in two files:…
Gari
  • 11
  • 1
1
vote
0 answers

DS18b20 not detected on Linux raspberrypi 4.19.75-v7

We did following steps: Installed Linux version 4.19.75-v7+ on SD card. Have two DS18B20 connected to the pi (via terminal block). We are using 3v3 ground and GPIO 4.Enabled 1 wire 4.7K Ohm resistor is connected between the 3V red and the…
Rheal
  • 11
  • 2
1
2