Vodootporni temperaturni senzor s kabelom od 5 metara.
SKU: OT2058-D113 Broj artikla: AB165 EAN: 8720618827999 Lokacija: D11.04
Alternativa
Modul temperaturnog senzora DS18B20 (Dallas-klon)
€ 1,90
Pogledaj ovu alternativu
Ovako spoji DS18B20 vodootporna sonda temperaturni senzor 5m kabel na Arduino UNO ili ESP32, uz primjer sketcha koji možeš odmah učitati.
Ovaj primjer očitava temperaturu okoline ili tekućine pomoću vodootporne digitalne temperaturne sonde DS18B20. Arduino komunicira sa senzorom putem 1-Wire protokola i svake sekunde prikazuje vrijednosti u Celsius i Fahrenheit na Serial Monitoru.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : DS18B20 Temperature Sensor Reading
* Board : Arduino UNO (arduino:avr:uno)
* Parts : DS18B20 waterdichte probe temperatuursensor 1 m cable
* Libraries : OneWire 2.3.8, DallasTemperature 4.0.6
*
* Codey Online is an AI-powered browser IDE for Arduino and ESP32.
* Describe your project and Codey writes the code, draws the wiring
* diagram and uploads it to your board, straight from the browser.
* This code is free to use, modify and share, without warranty.
* ==================================================================
*/
#include <OneWire.h>
#include <DallasTemperature.h>
const int ONE_WIRE_BUS = 2;
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
void setup() {
Serial.begin(115200);
sensors.begin();
Serial.println(F("DS18B20 Temperature Sensor Initialized"));
}
void loop() {
sensors.requestTemperatures();
float tempC = sensors.getTempCByIndex(0);
if (tempC == DEVICE_DISCONNECTED_C) {
Serial.println(F("Error: Sensor not detected"));
} else {
float tempF = DallasTemperature::toFahrenheit(tempC);
Serial.print(F("Temperature: "));
Serial.print(tempC, 2);
Serial.print(F(" °C | "));
Serial.print(tempF, 2);
Serial.println(F(" °F"));
}
delay(1000);
}
Potrebne biblioteke: OneWire 2.3.8, DallasTemperature 4.0.6
Wiring diagram and example code generated by Codey.online — https://www.codey.online
This project reads ambient or liquid temperature using a waterproof DS18B20 probe sensor on a 1-Wire bus. A 4.7kΩ pull-up resistor is placed between 3.3V and the data pin (DQ) to ensure reliable communication. Open the Serial Monitor at 115200 baud to view continuous real-time temperature readings in Celsius and Fahrenheit.
/*
* ==================================================================
* Generated by Codey.online — https://www.codey.online
* ==================================================================
* Project : DS18B20 Temperature Sensor on ESP32
* Board : ESP32 DEVKIT V1 (esp32:esp32:esp32doit-devkit-v1)
* Parts : DS18B20 waterdichte probe temperatuursensor 1 m cable
* Libraries : OneWire 2.3.8, DallasTemperature 4.0.6
*
* Codey Online is an AI-powered browser IDE for Arduino and ESP32.
* Describe your project and Codey writes the code, draws the wiring
* diagram and uploads it to your board, straight from the browser.
* This code is free to use, modify and share, without warranty.
* ==================================================================
*/
#include <OneWire.h>
#include <DallasTemperature.h>
// DS18B20 data line is connected to GPIO 4
#define ONE_WIRE_BUS 4
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
void setup() {
Serial.begin(115200);
sensors.begin();
Serial.println("DS18B20 Temperature Sensor Demo");
}
void loop() {
sensors.requestTemperatures();
float tempC = sensors.getTempCByIndex(0);
float tempF = sensors.getTempFByIndex(0);
if (tempC == DEVICE_DISCONNECTED_C) {
Serial.println("Error: Could not read temperature data");
} else {
Serial.print("Temperature: ");
Serial.print(tempC, 2);
Serial.print(" °C | ");
Serial.print(tempF, 2);
Serial.println(" °F");
}
delay(2000);
}
Potrebne biblioteke: OneWire 2.3.8, DallasTemperature 4.0.6
Wiring diagram and example code generated by Codey.online — https://www.codey.online
Vodootporni DS18B20 temperaturni senzor s ukupnom duljinom od 5 metara.
Promjer senzora je 6mm i ima duljinu od 50mm.
Debljina žice je 4mm i sadrži 3 male žice od 1,1mm u bojama crvena, nema i crna.
Voltage: 3V do 5.5V
Dimenzije
Duljina: 500cm
Širina: 0,04cm
Visina: 0,04cm

| Širina | 0,04 cm |
|---|---|
| Promjer žice | 4 mm |
| Duljina | 500 cm |
| Promjer | 6 mm |
| Visina | 0,04 cm |
Lijep i jednostavan proizvod. Radi ono što treba.
DS18B20 vodootporna sonda temperaturni senzor 5m kabel