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.

111 questions
24
votes
1 answer

DS18B20 not listed in /sys/bus/w1/devices

I'm starting work on a fermentation monitor using the Adafruit temperature sensing tutorial, a RPi B+ running Raspbian, a 4.7 kOhm resistor and a DS18B20 to which I've soldered male breadboard pins. After wiring exactly as the tutorial states (on…
Grafton C.
  • 343
  • 1
  • 2
  • 6
14
votes
5 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
  • 285
  • 1
  • 3
  • 8
12
votes
1 answer

conflicting dtoverlays

I'm using a GPIO connected display 1 which requires a patched kernel and dtoverlay=4dpi-3x in /boot/config.txt I would like to use a DS18B20 temperature sensor which requires dtoverlay=w1-gpio to show the temperature on the display. If I try to load…
user1217949
  • 827
  • 2
  • 9
  • 14
8
votes
2 answers

DS18B20 no longer working

I had two of these running fine, but now they've stopped. From reading I've done I think this has something to do with kernel updates and device tree. There seems to be about half a dozen options now with numerous permutations of config, but I…
artfulrobot
  • 353
  • 1
  • 3
  • 13
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
7
votes
2 answers

DS18B20 and RPi Pico

I will be getting my Raspberry pi pico here in a few days and want to connect a DS18B20 and use MicroPython. I have a project the uses RPi zero w and Python3.9. Since obviously, the pico does not use an os, is there a way to read a 1-wire device? Or…
Kelby Criswell
  • 320
  • 2
  • 9
6
votes
3 answers

What is a failproof method for testing a GPIO pin?

So, basically, I've been trying to get my raspberry pi to get the room temperature from a DS18B20 1-wire temperature sensor. I've read only GPIO 4 is capable of this, and I think for some reason GPIO 4 is not working. I've tried connecting the…
Antero Duarte
  • 171
  • 1
  • 2
  • 12
5
votes
5 answers

DS18b20 sensor disappearing and turning into "00-00.."

I've read so many issues similar to mine, but haven't found any clear answers, hopefully someone will know. I have a DS18b20 installed on pin 4 with a 4.7k resistor, all settings appear to be correct and it has wrote to the database many times(View…
Tyler9one6
  • 51
  • 1
  • 2
5
votes
3 answers

Simple temperature monitor Raspberry Pi 2 + GPIOs with DS18B20 on WIndows 10 Universal App

Can somebody give me simple example code for Microsoft Windows 10 Core for IoT - Windows Universal App project C# , for having Raspberry Pi 2 with Windows 10 and reading temperature from GPIO with DS18B20 sensor ?
Hrvoje Kusulja
  • 385
  • 1
  • 4
  • 9
4
votes
1 answer

DS18B20 not detected by Raspberry Pi

I'm trying to have a DS18B20 working with my Raspberry Pi Model B Revision 1.0, and it doesn't work. No matter what I try I still see nothing in /sys/bus/w1/devices/ besides: pi@raspberrypi ~ $ ls /sys/bus/w1/devices/ 00-280000000000 …
benbbh
  • 41
  • 1
  • 1
  • 6
3
votes
1 answer

Does select/multithreading make sense when dealing with multiple DS18B20 and GPIO reads simultaneously?

As you may know, DS18B20 is not the quickest sensor and answers after around 750ms delay but, afaik, 1-wire is a relatively quick bus. I have multiple sensors connected to the board, which means if I iterate over them , I waste around 4-5 seconds…
CorellianAle
  • 133
  • 4
3
votes
1 answer

Rpi Python 1-Wire File System to read DS2482 I2C to 1-Wire bridge connected DS18B20 Temperature Sensors

I'm currently working on the project with a lot of DS18B20 Digital Thermometer Sensors. For a better performance I decided to use this Raspberry Pi compatible 1-wire master board, which is based on the DS2482-800 IC with 8 individual 1-wire…
Fabs
  • 83
  • 2
  • 9
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
5 answers

DS18B20 w1-gpio Device Tree gpiopin NOT = 4

I have a HAT which blocks GPIO4 so I cannot use the default pin for the temperature sensor, but I just cannot get it to work on another pin! I just get lots of 00- instead of 28- in /sys/bus/w1/devices Tried every available free pin using…
MillmoorRon
  • 49
  • 1
  • 5
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
1
2 3 4 5 6 7 8