+

37 in 1 Kit Accessories DS18B20 Temperature Sensor Module KY-001 DS18B20

USD 0.77USD 0.86

37 in 1 Kit Accessories DS18B20 Temperature Sensor Module KY-001 DS18B20

Description
18B20 temperature sensor

The product is made of DALLAS company's DS18B20 networkable digital temperature sensor chip package, with wear-resistant touch, small size, easy to use, packaging in various forms, suitable for a variety of small space equipment, digital temperature measurement and control. Technical performance description:

Unique single-line interface, DS18B20 in connection with the microprocessor only need a mouth line to achieve the microprocessor and DS18B20 two-way communication; Temperature range: -55 ° ~ +125 °, the inherent temperature resolution of 0.5 °; Support multi-point network function, multiple DS18B20 can be connected in parallel on the only three lines, up to only 8 in parallel, if the number is too much, will make the power supply voltage is too low, resulting in signal transmission instability, Temperature; working power: 3 ~ 5V / DC; in use without any external components; measurement results to 9 to 12 digital serial transmission; PVC cable direct outlet or German ball junction box outlet, easy and other Electrical equipment connection.

Applications:

The products are suitable for the cold storage, granaries, storage tanks, telecommunications room, electric power room, cable trough and other temperature measurement and control areas; bearing, cylinder, textile machinery, air conditioning, and other small space industrial equipment temperature and control; , Refrigerator, freezer, and low-temperature drying oven, etc .; heating / cooling pipe calorie measurement, central air conditioning household thermal energy measurement and industrial temperature measurement and control. Product model and specifications:

Model Temperature range Mounting thread Cable length Applicable pipe

TS-18B20 -55 ~ 125 no 1.5 m

TS-18B20A -55 ~ 125 M10X1 1.5 m DN15 ~ 25

TS-18B20B -55 ~ 125 1/2 "G junction box DN40 ~ 60

The DS18B20 digital temperature sensor is availableVarious SCM controllerOn the application, especially in the controllerOn the more simple, ready-made library function call, you can complete the temperature measurement, through3P sensor cablePlug in to dedicated sensor expansion board, It is very easy to achieve interactive work related to ambient temperature perception.

The following comes with comes with the program:

#include

/ * DS18S20 Temperature chip i / o

* /

OneWire ds (10); // on pin 10

Void setup (void) {

// initialize inputs / outputs

// start serial port

Serial.begin (9600);

}

Void loop (void) {

Byte i

Byte present = 0;

Byte data [12];

Byte addr [8];

Int Temp;

If (! Ds.search (addr)) {

//Serial.print("No more addresses. \ N ");

Ds.reset_search ();

Return;

}

Serial.print ("R ="); // R = 28 Not sure what this is

For (i = 0; i

Serial.print (addr [i], HEX);

Serial.print ("");

}

If (OneWire :: crc8 (addr, 7)! = Addr [7]) {

Serial.print ("CRC is not valid! \ N");

Return;

}

If (addr [0]! = 0x28) {

Serial.print ("Device is not a DS18S20 family device. \ N");

Return;

}

Ds.reset ();

Ds.select (addr);

Ds.write (0x44,1); // start conversion, with parasite power on at the end

Delay (1000); // maybe 750ms is enough, maybe not

// we might do a ds.depower () here, but the reset will take care of it.

Present = ds.reset ();

Ds.select (addr);

Ds.write (0xBE); // Read Scratchpad

Serial.print ("P =");

Serial.print (present, HEX);

Serial.print ("");

For (i = 0; i

Data [i] = ds.read ();

Serial.print (data [i], HEX);

Serial.print ("");

}

Temp = (data [1]

Temp = Temp >> 4; // divide by 16 to get pure celcius readout

// next line is Fahrenheit conversion

Temp = Temp * 1.8 + 32; // comment this line out to get celcius

Serial.print ("T ="); // output the temperature to serial port

Serial.print (Temp);

Serial.print ("");

Serial.print ("CRC =");

Serial.print (OneWire :: crc8 (data, 8), HEX);

Serial.println ();

}

Specification

Model Number : KY-001

Origin : Mainland China

Brand Name : SZYTF

Application : 37 accessories

Type : Open source components

Condition : New

25P80VG M25P80VG SOP8 10PCS
USD 3.90USD 4.70
+