Wish List 0

Ky 001 Ds18B20 Temperature Sensor Module

Rs. 64.00 Rs. 77.00

  • Product Code: SEN-TEMP
  • SKU -
  • Availability: In Stock
  • For Bulk Order 9962060070
    Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
-DS18B20 Temperature Sensor Module is a digital temperature sensor, and you can easily connect it to Arduino with only one 4.7-pound resistor, base 1 – Ground 2 – Output – Base 3 to the positive of the source, with resistance to base 2 Is connected.
-The connection of this sensor to the Arduino via the 1-wire protocol is established.
-Therefore, several sensors can be connected only through one common wire to Arduino.
-The output is digitally accurate to 12 bits.
-Therefore, the temperature can be measured with a precision of 0.0625 º C.

Applications:
-DS18B20 Temperature Sensor is 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 and Many more..

Features:
-Digital signal output
-18B20 Temperature Sensor Chip
-Resolution adjustment ranges from 9-12 bytes.
-Send data via a pin
-Temperature measurement ranges: -55°C to +125°C, be accurate to 0.5°C
SPECIFICATIONS:
Operating supply voltage               3 to 5.5 volts
Digital output                         Resolution 9 to 12 bits
Temperature measurement ranges         -55°C to +125°C, ( accurate to 0.5°C.)
Maximum conversion time and response   750 ms

OVERVIEW:

-Digital signal output

-18B20 Temperature Sensor Chip

-Resolution adjustment ranges from 9-12 bytes.

-Send data via a pin

-Temperature measurement ranges: -55°C to +125°C, be accurate to 0.5°C.

PACKAGE INCLUDES:

1 PCS x Ky 001 Ds18B20 Temperature Sensor Module


//SOURCE CODE TAKEN FROM BELOW LINK

//https://create.arduino.cc/projecthub/WellTronic/ky-001-temperature-sensor-ds18b20-aad5c9?ref=user&ref_id=1448962&offset=2

//**********************************************************************************************************//

// Author: 

// WellTronic

//

// Description:

// This code is part of a video series covering all Arduino sensors from the Arduino sensor kit.

// One of the sensors in this video series is the DS18B20 temperature sensor.

//

// In this video I will explain step by step how to use the DS18B20 temperature sensor.

// https://www.youtube.com/watch?v=UY4zOXchK4w

//

// You're also welcome to take a look at the YouTube channel for more details about hardware and software.

// https://www.youtube.com/channel/UC0UCNqE8i4unG8nfuakd0vw

// 

// Enjoy working with this sensor and see you soon :) !

//

//**********************************************************************************************************//


#include <DallasTemperature.h>

#include <OneWire.h>


float currentTemperature = 0.0;                                                           // define the current temperature variable

int oneWireBusPin = 8;                                                                    // define the 1 wire bus pin

OneWire oneWireBus(oneWireBusPin);                                                        // create an instance of the OneWire Library and define the oneWireBusPin in it 

DallasTemperature temperatureSensor(&oneWireBus);                                         // create an instance of the Dallastemperature Library and define the OneWire instance oneWireBus in it

DeviceAddress temperatureSensorAddress;                                                   // temperatureDeviceAddress is an uint8_t array [8]

int connectedDevicesNomber = 0;


void setup() {

Serial.begin(9600);                                                                       // start the serial monitor

Serial.println("Welcome to WellTronic's temperature sensor tutorial");                    // print the text "Welcome to WellTronic's temperature sensor tutorial" into the serial monitor        

  

temperatureSensor.begin();                                                                // start the bus 


connectedDevicesNomber = temperatureSensor.getDeviceCount();                              // returns the number of devices found on the bus

  

temperatureSensor.getAddress(temperatureSensorAddress, 0);                                // get the address of the first device connected to the bus 

printDeviceAddress(temperatureSensorAddress);                                             // print this address

   

                                                                                          

if (temperatureSensor.setResolution(temperatureSensorAddress,12, false) == true){         // set resolution of a device to 9, 10, 11, or 12 bits. If new resolution is out of range, 9 bits is used.

  Serial.print("Resolution successfully set to ");

  Serial.print(temperatureSensor.getResolution(temperatureSensorAddress));                // get the resolution of a device with a given address

  Serial.println(" bit");

}

else {

  Serial.println("Resolution configuration failed ");

  Serial.print("Resolution automatically set to ");

  Serial.print(temperatureSensor.getResolution(temperatureSensorAddress));                 // get the resolution of a device with a given address

  Serial.println(" bit");

}


temperatureSensor.setLowAlarmTemp(temperatureSensorAddress,20);                            // set the lower alarm limit

temperatureSensor.setHighAlarmTemp(temperatureSensorAddress,28);                           // set the upper alarm limit


Serial.print("Alarm lower limit: ");

Serial.println(temperatureSensor.getLowAlarmTemp(temperatureSensorAddress));               // get the lower alarm limit

Serial.print("Alarm upper limit: ");

Serial.println(temperatureSensor.getHighAlarmTemp(temperatureSensorAddress));              // get the upper alarm limit

}


void loop() {

temperatureSensor.requestTemperaturesByAddress(temperatureSensorAddress);                  // command for a device with a specific address to perform a temperature conversion (to read the temperature)

currentTemperature = temperatureSensor.getTempC(temperatureSensorAddress);                 // Get temperature for device index in C (Slow process)                                                               

 Serial.print("Temperature: ");

 Serial.print(currentTemperature);

 Serial.print(" C");

 Serial.print("   |  ");

 currentTemperature = temperatureSensor.getTempF(temperatureSensorAddress);                // Get temperature for device index in F (Slow process)

 Serial.print(currentTemperature);

 Serial.print(" F");

 Serial.print("   |  ");

 Serial.print("TemperatureAlarm: ");

 Serial.print(temperatureSensor.hasAlarm(temperatureSensorAddress));

 Serial.println("");

}


void printDeviceAddress(DeviceAddress deviceAddress){

  for (int i = 0; i < 8; i++)

  {

    Serial.print("0x");

    if (deviceAddress[i] < 0x10) Serial.print("0");

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

    if (i < 7) Serial.print(", ");

  }

  Serial.println("");

}

15 days

Write a review

Please login or register to review