Questions tagged [ds18b20]

DS18B20 is a digital temperature sensor.

Filter by
Sorted by
Tagged with
3
votes
1answer
631 views

Getting the DS18B20 detected and temperature read

I'm quite new with the electronics part of Arduino, but I thought that this was the basic way to get the DS18B20 temperature device hooked up. However, I can't detect it in my program using OneWire ...
2
votes
2answers
2k views

DS1820 bad reading from 4th sensor

I am very new to Arduino. I want to add about 50 sensors to Arduino R3. I get good readings from 3 sensors, but when I connect 4th one, I get 'No devices found'. Here is a diagram: and here is the ...
2
votes
2answers
420 views

Arduino: Reading DS18B20 interferes with servo

I have an Arduino with a servo, INA219 (current and voltage sensor) and 2 DS18B20 connected to it. DS18B20 are connected in full-power mode with 5k resistor connected between DATA line and +5V. I ...
2
votes
1answer
1k views

Arduino + DS18B20 array

I want to connect 24 DS18B20 sensors to arduino by onewire library in the same digital pin . Can anyone post an example code ? Thanks
1
vote
1answer
69 views

DS18B20 sending variable via Enthernet shield

I am trying to send temperature read from DS18B20 to a web server. I know two things: to read a temperature, and to send something to web server. What I don't know is how to convert float that ...
1
vote
1answer
4k views

Compilation Error in nodeMCU along with oneWire temperature sensor ds18b20, and 2x16 LCD display (not I2C)

I am using nodeMCU along with oneWire temperature sensor ds18b20, and 2x16 LCD display (not I2C). I am using Arduino IDE to program nodeMCU. I am getting a compilation error: C:\Program Files (x86)\...
1
vote
1answer
1k views

Powering 3.3v sensors from a coin cell

I want to build some small wireless temperature measurement boards, to sprinkle around the house. I'd like to power these from a single coin cell battery (CR2032). For these I'd like to use the ...
1
vote
2answers
2k views

ESP-01 not waking correctly up after deep sleep

I have an ESP-01 that I want to measure pool temperature with. It will send the data over MQTT to the broker. I have connected RST to GPIO16 so I can use the deep sleep functionality. Currently I am ...
1
vote
1answer
1k views

DHT22 and DS18B20 together

I am trying to get DHT22 and DS18B20 to work together. The code below is the one I am using: #include <SD.h> #include "SPI.h" #include "DHT.h" #include <RTClibExtended.h> #include <...
1
vote
1answer
6k views

74HC595 with 4 digit 7 segment display. Any way to get rid of leading zeros?

I am working on an Arduino based temperature reader using a DS18B20 temperature IC. The display is a 4 digit 7 segment LED common anode display driven by a single 74HC595 shift register. Currently, it ...
1
vote
3answers
1k views

DS18b20 Order of sensors on a cable

I have a string of 10x DS18b20 sensors on a single two wire line (parasitic power). Below is a table of the sensors, Where they are located on the wire, and in what order where they discovered. ...
1
vote
2answers
165 views

Temperature sensor and LCD

I have a project which uses a DS18B20 temperature sensor and an LCD with an I2C interface on it. I have connected the sensor to my micro-controller (the DS18B20 has a 12-bit digital output) to the ...
1
vote
3answers
510 views

FreqMeasure.h uncompatible with my code problem

I have written code to read temperatures on a motor which also has pulse feedback to see speed, (one hall sensor) and my previous version of the code does work fine, however when i add example ...
1
vote
0answers
196 views

Arduino Uno - temperature sensor DS18B20 not responding

I try to use a new DS18B20+ temperature sensor (sealed water proof version). It doesn't work. My own code doesn't work, examples from DallasTemperature Library don't work, example from OneWire ...
1
vote
0answers
908 views

ESP8266 can't read parasitic DS18B20 temperature (reset during conversion, 85°C)

tl;dr at the end I was running two DS18B20+PAR temperature sensors without any problems for the last two years on an ESP-01 module running on 3.3V on GPIO 2 using a 4.7K pullup resistor. Now, ...
1
vote
0answers
122 views

Interference in readings

I have an project which control a heat exchanger. I read 4 temperature sensors DS18B20, a distance with HC-SR04 Ultrasonic Sensor, and a flow with YF-S201 (with attach interrupt). I can turn on and ...
1
vote
0answers
280 views

1-wire bus apparently working, but OneWire::reset() fails

I encounter a strange thing. I have a star shaped topology of 1-wire devices. Every branch (there are four of them) of the star has a DS2413 and a DS18B20 at its end. The DS18B20 is supplied with a +...
0
votes
1answer
218 views

MKR1000 and DS18B20 temperature sensor

I am new to Arduino and electronics in general and I can't get my MKR1000 to read correct data from a DS18B20 temperature sensor. Here is the tutorial I followed. The issue is: I always get the same ...
0
votes
2answers
2k views

How to connnect Arduino to Wemos D1 (send data)? [closed]

I made a project with an Arduino Uno, a 16x2 LCD display and a DS18B20 temperature sensor. It shows the temperature in the display: I want to connect it to Internet so I got a Wemos D1 Mini. It works ...
0
votes
1answer
79 views

Connection of a DS18B20 on a Arduino pro mini

I'm actually trying to connect a DS18B20 sensor to a homemade board build with a ATmega328P processor running with a power of 3.3V and at 8 Mhz. In order to get the address I wired the board as the ...
0
votes
1answer
850 views

DS18B20 setting resolution without addressing

As i understand the dallas library, there are two ways of referencing the sensor, one is to refer to the address, and the other is just to grab it as it is indexed.(gettempbyindex) I want to know ...
0
votes
2answers
474 views

DS18B20 - Thermometer and Sensor discrepancy (varying)

This is a follow-up question from this other question I followed of the user Jot (get the sensor away from the sun and use a delay in arduino program) But the results are still varying. I recorded ...
0
votes
1answer
1k views

DS18B20 - Temperature a bit off?

I'm trying to measure the temperature using a DS18B20 sensor. I'm using the DallasTemperature and OneWire Libraries. The sensor is connect in Pin 10 with a 4k7 resistor between VDD and DQ (actually I'...
0
votes
1answer
280 views

Weird OneWire bus problem

I have two DS18B20 temperature sensors connected via a OneWire bus to an arduino. I noticed that these sensors get hot, when permanently powered and decided to just turn them on for measurment. First ...
0
votes
1answer
2k views

DS18B20 Temperature Sensor return as float function returning null 50% of the time

I just got an DS18B20 Temperature sensor and am trying to modify the example code to use a function instead. Below is my getTemp function. It's working but returning results with a 0 value part of the ...
0
votes
0answers
55 views

OneWire with DS18B20 digital sensor only works on the I2C (20 and 21) pins of my Mega?

I am using an Arduino Mega to read a DS18B20 temperature sensor using the OneWire library in the code below which I got here: #include <OneWire.h> #define DS18S20_Pin 20 //DS18S20 Signal pin ...
0
votes
1answer
76 views

Detect DS18B20 sensors and correctly assign them to relays

I'm relatively new to microcontroller programming, so please excuse me if my question is dumb. I've created a simple device that allows me to control 4 relays based on temperature. I bought four ...
0
votes
0answers
285 views

DS18B20 flaky with LOLIN32 ESP32 board, rock-solid with Uno

I'm trying to read 4 DS18B20 sensor probes (https://amazon.com/gp/product/B00Q9YBIJI and https://amazon.com/gp/product/B008HODWBU) with a "Wemos" LOLIN32 ESP-32 board (https://amazon.com/gp/product/...
0
votes
0answers
344 views

DS18S20 (Not DS18B20) reading FF FF

I found a batch of DS1820 in my drawers; they worked 10 years ago on a DS9097U-09 onewire to RS232 converter. Note, not DS18B20 I use them in parasite power mode; pin 1 and 3 together to gnd. But ...
0
votes
0answers
716 views

Temperature Sensor not giving proper values

In my current project I am reading temperature through sensor which is having only two wires. To read sensor values, I have used below schematic which I have found on Arduino Project Hub site. In my ...
0
votes
4answers
3k views

Wemos D1R2 - Onewire 2 DS18B20 passing to variable

I'm a beginer, did some tests with Uno and now have a Wemos D1R2 on my hands... I'm building a sort of weather station that will send data to thingspeak.com and log this data there. I managed to ...
-1
votes
3answers
66 views

Which voltage should I use with a component that allows between 3v and 5.5v? [closed]

I have a DS18B20 temperature sensor that needs between 3v and 5.5v to work, as seen in its documentation. What's the difference? Should it work better which 5.5v? I know that a LED with more voltage ...