Skip to main content

Menu

Deliveries to Western Australia and the Northern Territory will no longer arrive in time for Christmas.
Orders to all other states must be placed by 19/12.

Temperature Sensor Module (DS18B20) Arduino Compatible

ARD2-2201
Arduino Compatible Temperature Sensor (DS18B20)

$6.45

QTY Price
1 $6.45

Description

The new DS18B20 Temperature Sensor Module is a fully compatible Arduino platform that allows users to easily set up sensor networks. It's suitable for most DIY projects that require accurate temperature data. This module uses a single-bus digital temperature sensor DS18B20 with an external power supply voltage range of 3.0V to 5.0V (no standby power).

The DS18B20 looks like a normal transistor but be careful not to reverse the power and ground lines in order to avoid damaging it.

Test Code

# Include <OneWire.h>
/* 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 < 8; 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 < 9; i++) { // we need 9 bytes
data [i] = ds.read();
}
}

Features

  • Fully digital temperature conversion and output
  • Advanced single-bus data communication
  • Detect temperature range of -55°C to +125°C
  • Detect temperature range of -55°C to +125°C
  • Built in EEPROM, limit temperature alarm function
  • 64-bit lasered ROM, built in unique product serial number, to facilitate multi-machine mount

Specifications

Operating Voltage

3.0 - 5.0V

Measurement Accuracy

±0.5°C

Output

Digital Sensor

Sensitivity

10mV per degree Celsius

Board Colour

Black

Weight

10g

Material

PCB

Resources

You Might Also Like

All prices are in Australian Dollars and include GST. GST will be removed from your order if you are ordering from outside Australia.
Products may differ from pictured.
All trademarks and trade names are the properties of their respective owners. Wiltronics disclaims any proprietary interest in trademarks and trade names other than its own.

We use cookies to ensure you have the best experience on our site. If you continue to use this site you consent to the use of these cookies. OK

Find out more in our Privacy Policy