Questions tagged [ds18b20]

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

Filter by
Sorted by
Tagged with
22
votes
1answer
24k views

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. ...
7
votes
4answers
9k views

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 ...
6
votes
3answers
6k views

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 ...
6
votes
1answer
7k views

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 ...
5
votes
1answer
3k views

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 ...
5
votes
3answers
7k views

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, ...
4
votes
3answers
7k views

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 ...
4
votes
5answers
4k views

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/...
3
votes
1answer
1k views

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 ...
3
votes
1answer
354 views

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 ...
3
votes
1answer
8k views

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 /...
3
votes
4answers
3k views

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 ...
2
votes
1answer
530 views

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?
2
votes
4answers
5k views

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. ...
2
votes
2answers
999 views

No w1_slave on DS18B20 on Raspberry Pi 3 B+

In any of these cases the red status LED on the sensor lights up. The Sensor DS18B20 is connected to the Raspberry Pi 3 B+ to the 5v on the GPIO pins. Using the 3.3v pin makes the light of the sensor ...
2
votes
2answers
2k views

DS18B20 Temperature sensor

Currently I can read the temperature reading from a file for both sensor. import os import time os.system('modprobe w1-gpio') os.system('modprobe w1-therm') temp_sensor = '/sys/bus/w1/...
2
votes
1answer
374 views

Can I pick any other GPIO in my scenario?

I have a setup with a pi 3 and a breadboard. I am using a DS18B20 temperature sensor. This is my setup (notice wrong resistor in this sketch): As far as I can see it the sensor's second pin is the ...
2
votes
1answer
1k views

How to Make the DS18B20 Temperature Probes Plug into a Bread Board Easier

I use a RPi with waterproof DS18B20 temperature probes to measure the temperature of my homebrew. Every time I brew a batch I must sanitize the probe and insert them through the airlock into the brew, ...
2
votes
2answers
4k views

Java and DS18B20

I want to read temperature from DS18B20 sensors. Sensors are connected and works fine. How can I read temperature using Pi4J? Is there API for this?
2
votes
1answer
4k views

Change GPIO pin for DS18B20+ One Wire Digital Temperature Sensor

First question on this SE site so please be gentle. Trying to get the above mentioned temp sensor working on the RPi but with a touch screen installed. When I run the following steps nothing ...
2
votes
2answers
3k views

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 ...
2
votes
2answers
316 views

Raspberry Pi B won't recognise DS18B20 sensor

I have wired up my Raspberry Pi (RPI-0007) to the pins as outlined by http://www.modmypi.com/blog/ds18b20-one-wire-digital-temperature-sensor-and-the-raspberry-pi. However, when I change directory to /...
2
votes
1answer
3k views

Dallas 1-wire temperature sensor not working

I've connected a temperature sensor (DS18B20) to my Pi and want to read it using 1-wire, but it doesn't work. I have loaded the w1-gpio and w1-therm modules, added them to /etc/modules and rebooted a ...
2
votes
1answer
411 views

One wire temperature sensor DS18B20 sudden precission drop

I wired 10 DS18B20 to the raspberry pi, in the normal powered mode. I am using the Raspbian's built in w1-gpio and w1-therm. I am able to read all the 10 sensor values. Problem is, after (seemingly ...
2
votes
1answer
2k views

I2Cs for temperature senors and multiple PWM outs

EDIT: Rewrite, this is why you don't write questions after not sleeping for two days (wait what day is it?) I have a whole bunch of 12V 4 pin (pwr, grnd, tach, pwm) fans I'd like to manually control, ...
2
votes
2answers
4k views

IndexError DS18B20 Temperature sensor

I have this temperature sensor (DS18B20). I've followed the tutorial on Adafruit (here). First I had to setup some modules by doing: sudo modprobe w1-gpio sudo modprobe w1-therm Then I check the ...
2
votes
1answer
113 views

Pi can't find 5th DS18B20

I am new in raspberry pi. In my research project, I would like to monitor ground temperature at 60 points. My team decided to set a monitoring system using raspberry pi. As a preliminary test, I ...
2
votes
1answer
131 views

Raspberry Pi 3b+ do not detect DS18b20 on 1Wire

Problem: The new raspbian kernel does not detect the DS18b20 sensor over the 1wire bus. This is due to the Device Tree that was added to Kernel 3.18.8 What hardware used: Raspberry Pi 3b+ Kernel: 4....
2
votes
0answers
35 views

DS18B20 reading double after long use

I installed two DS18B20s on a pi almost a year ago. They have worked great until the last couple months. I am doing a bit of a stress test on them and have been polling them every second for almost a ...
2
votes
0answers
521 views

PI Zero W, Running NodeJS and reading sensors - bad performance [closed]

I am doing a little project for my pet snake and that is a Terrarium controller with my Raspberry PI Zero W. Just for fun I created it using NodeJS since I am a bit familiar with it. A friend of mine ...
2
votes
1answer
2k views

Usage of python-ow One Wire File System Python Package for reading 1-wire DS18B20 data

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 ...
1
vote
1answer
209 views

Sunfounder DS18B20 disable light

I've got a problem: I have a Sunfounder DS18B20 Module for measuring the Temperature, but this Module has a little Led which i wont to turn off. Is this possible and how? Thanks
1
vote
2answers
8k views

How many sensors I can connect to one breadboard ? (raspberry pi 2)

I'm a new user of raspberry pi 2. I'm preparing a school project and I wonder how many sensors I can plug in to my raspberry pi. I would like to connect 3 sensors: PIR sensor DHT22 DS18B20 Will ...
1
vote
1answer
1k views

How to use DS18B20 in parasite power mode?

The datasheet for the DS18B20 says: To assure that the DS18B20 has sufficient supply current, it is necessary to provide a strong pullup on the 1-Wire bus whenever temperature conversions ...
1
vote
1answer
990 views

how to set precision of DS18B20 via w1-therm?

According to the documentation for w1-therm: Writing a value between 9 and 12 to the sysfs w1_slave file will change the precision of the sensor for the next readings. This value is in (volatile) ...
1
vote
2answers
898 views

need 1 Wire read / write functions

I would like to send some simple read and write commands to the Pis 1wire port. For example to be able to configure the resolution of the ds1820 Temperature sensor. The kernal modules used to access ...
1
vote
1answer
6k views

Writing a measurement to a file using python

I'm new to Raspberry so I need a bit of help. I have a DS18B20 temperature sensor, which I want to write the measurements into a file. I have a script running, making measurement printing to screen ...
1
vote
2answers
2k views

Unable to see Temp sensors at /sys/bus/w1/devices which was working until SD card got corrupted

I have several DS18B20 sensors wired to my Raspberry Pi and wrote a python script to read them all. I've had the script running for months without a problem. Last week I performed an update and an ...
1
vote
2answers
334 views

Is it bad for the PowerSwitch Tail 2 to turn on and off frequently?

I am using my Raspberry Pi with a PowerSwitch Tail 2 to control the temperature of homebrewed beer. Whenever the temperature goes above a certain range, the PST2 shuts off, and turns on when the ...
1
vote
1answer
155 views

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 ...
1
vote
1answer
36 views

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

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 ...
1
vote
1answer
176 views

DS18B20 temperature sensor not found in devices folder

I am trying to setup DS18B20 for Raspberry Pi. I have followed the instructions from Adafruit Lesson 11 updated RBPI kernal to 4.19 setup wiring (see below) with 10k resistor verified signal (yellow ...
1
vote
1answer
207 views

Can the DS18B20 be parasite powered without external pullup?

I have a DS18B20 temperature sensor which I am trying to use in parasite power mode with only two wires (data line and ground) with my Raspberry Pi Zero W. I've connected it to the RPi in the ...
1
vote
1answer
359 views

DS18b20 w1_slave file stamp doesn't change

So this is going to sound strange, but I don't see the date stamp of w1_slave files change as the contents (and temperature changes). I think it's set as the boot time and doesn't change. Ever pi@...
1
vote
1answer
670 views

Raspberry pi 2 B won't detect temp sensor DS18B20

I have a rasp pi 2 b+ and a temperature sensor DS18B20. I can't get my ls /sys/bus/w1/devices command to show anything other than w1_bus_master1. I suspect it is a problem with my set up but I've ...
1
vote
1answer
537 views

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 ...
1
vote
1answer
198 views

DS18B20 not visible

I can't make visible ds18b20 :/ w1-gpio w1-therm Are running and in /etc/modules Have added to config dtoverlay=w1-gpio,gpiopin=4 I've got some data like 00-580000000000 00-980000000000 00-...
1
vote
1answer
2k views

Raspberry PI 2 Model B Not Detecting ds18b20 Sensor (Tested with Multiple Sensors)

I just wanted to ask some advices. I have tried everything I could find, including : /boot/config.txt add Line dtoverlay=w1-gpio,gpiopin=4 Update and Upgrade Updating firmware Buying new Sensors. ...
1
vote
0answers
45 views

DS18B20 temp sensor works on Pi 3B+ but not Zero W

I have a breadboard prototype working with a cabled (waterproof and regular temp) DS18B20 sensor and a AM2302 sensor on a 3B+. All is well with it recording at a set interval from each sensor. I'd ...
1
vote
1answer
44 views

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