Questions tagged [ds18b20]

DS18B20 is a digital temperature sensor.

46 questions
5
votes
1 answer

VSCode vs. Arduino IDE - same program, different behavior

I've got this simple program for testing DS18B20 temperature sensors. #include "OneWire.h" #include "DallasTemperature.h" #define ONE_WIRE_BUS D3 // Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas…
Llaves
  • 261
  • 3
  • 11
3
votes
1 answer

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
user31562
  • 47
  • 3
3
votes
3 answers

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. Serial Order on wire* Order…
3
votes
1 answer

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 and DallasTemperature. This is an image of my…
2
votes
0 answers

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 library doesn't work. For example function…
kot
  • 33
  • 4
2
votes
2 answers

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 code I use: #include #include…
gerpaick
  • 123
  • 1
  • 6
2
votes
0 answers

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, wanting to develop a new firmware I started the…
LeoDJ
  • 21
  • 5
2
votes
2 answers

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 use DallasTemperature library:…
Leonti
  • 133
  • 4
2
votes
0 answers

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 off a monophasic motor with Arduino too. I have…
2
votes
1 answer

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)\Arduino\libraries\OneWire/OneWire.h:108:2: error:…
Bigyan Chapagain
  • 67
  • 1
  • 2
  • 10
2
votes
1 answer

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 is setup to read a variable assigned with a…
1
vote
0 answers

Weird issue with wire.requestfrom() and MailClient.sendMail() on ESP32- rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

Update_2: No change after Update_1, same error. I still have to comment either email, I2C, or Temperature out, that the other two can work. Update_1: I'm also using a DS18B20 with #include and #include . If I comment…
Christian
  • 11
  • 2
1
vote
0 answers

DS18B20 doesn't work with pinMode for other devices

i do some project. There is DS18B20, 3 mosfet modules, 1 relay, display 1602, buzzer... I built it on bread board, everything worked. Now i soldered it: arduino works, display works but DS18B20 doesn't return temperature. I tried to solder…
Влад
  • 11
  • 2
1
vote
1 answer

Obtaining wrong analog readings using the ESP32 devkitc v4

I know that the topic is not related to Arduino, but I am completely sure that someone can help me find the problem. I am testing 6 temperature sensors, (3 digital, 3 analog). The digital ones are "DS18B20" which I trust, the analog ones are…
KamelK
  • 19
  • 1
1
vote
0 answers

Combining the code of MAX30100 and DS-18B20

sorry to ask this but I am very very new to Arduino. My project aims to collect the skin temperature by 18B20 and the heart rate & SPO2 level by MAX30100. I have tested the codes for the respective sensors and they work fine, but when i am trying to…
Isaac
  • 11
  • 1
1
2 3 4