The cookie settings on this website are adjusted to allow all cookies so that you have the very best experience. If you continue without changing your cookie settings, we'll assume that you are happy to receive all cookies on our website. However, if you would like to, you can change your settings at any time using the Change cookie settings link in the Special menu. 
    
 
+44 (0)20-84520161 Contact Us
Now FREE Delivery on UK mainland orders over £30+VAT

Waterproof Digital Temperature Probe for Arduino DS18B20

  • Details

  • Recommended

  • Send

Details

Item Number
DS18B20
Item Condition
New
Was
£4.50
Price
£3.50 (Save 22%) (inc VAT £4.20)

Options

Quantity


  •  Fuse holder for Blade Fuse (Vehicle Fuses)

    Fuse holder for Blade Fuse (Vehicle Fuses)

    High Quality In Line Blade Fuse Holder for Cars and other Vehicles.

    Complete with Short Red Cable, and housing cover 

    • Reccomended for cars, lorries, boats, trucks etc.
    • Completely encapsulated housing
    FHBLADE
    £1.35
  • Red Top Push to Make Miiniature Switch

    Red Top Push to Make Miiniature Switch

    Miniature Push to Make, Release to Break Switch

    125VAC 500mA, With 2 Solder Tags.

    Dimensions 27.5mm long, 9.7mm diameter. 7mm nut.

    Red Button

    PTM1R
    £0.65
  • 3 Amp Latching Switch with Red Button

    3 Amp Latching Switch with Red Button

    Push to make, Push again to Break (Alternate Action) Push to Latch Switch

    Cut-out 12mm (M12 thread). Red Button 3A 125V AC, 1A 250V AC

    PTL3R
    £1.25
  • Green Top Push to Make Miniature Switch

    Green Top Push to Make Miniature Switch

    Miniature Push to Make, Release to Break Switch

    125VAC 500mA, With 2 Solder Tags.

    Dimensions 27.5mm long, 9.7mm diameter. 7mm nut.

    Green Button

    PTM1G
    £0.65
  • Quality Miniature Attractive Toggle Switch SPDT with Removable Red Dolly

    Quality Miniature Attractive Toggle Switch SPDT with Removable Red Dolly

    Quality Miniature Toggle Switch SPDT Single Pole Changeover with removable Red Dolly.

    Max ratings: 250V 3A, 125V 6A

    Metal toggle with red plastic dolly.Dimensions: 35 x 9.5 x 6.5mm

    TD11N
    £1.25
  • Standard Toggle Switch Single Pole On Off 250VAC 1.5A

    Standard Toggle Switch Single Pole On Off 250VAC 1.5A

    Toggle Switch Standard Size SPST On / Off

    Rated at 250VAC 2A.Body Dims: L:25mm H:14mm W:14mm. 2 Solder Terminals

    Panel cutout 12mm 

    Rated 1.5A 250VAC

    Contact resistance 50mΩ max.

    Dielectric strength 1000VAC/1min

     

    TL10N
    £1.50
  • Spring Assortment of 150 pieces

    Spring Assortment of 150 pieces

    150piece Assortment Hard to Find Springs
    Thus is a range of 20 of the most useful sizes
     
     
    Extended springs 
    8pc 5.2 x 20.6mm
    8pc 5.6 x 25.4mm 
    8pc 6.5 x 22.2mm
    7pc 8.7 x 46.8mm
    7pc 7.1 x 50.8mm
    6pc 7.1 x 38.1mm
    7pc 8.7 x 36.5mm
    6pc 7.9 x 28.6mm
    6pc 8.0 x 31.8mm
    7pc 8.0 x 44.5mm
    7pc 4.0 x 79.4mm
    5pc 4.8 x 44.5mm
     
    Compressed springs 
    10pc 7.1 x 12.7mm
    10pc 6.4 x 10.3mm
    10pc 7.1 x 19.1mm
    6pc 9.5 x 15.9mm
    9pc 9.5 x 19.1mm
    5pc 9.1 x 34.9mm
    8pc 5.6 x 38.1mm
    10pc 5.6 x 17.5mm
    SPR150
    £6.50

Send to Friend

: *
: *
: *
Type the characters you see in the picture:


*

Waterproof digital temperature probe for Arduino and other microcontroller projects

 
This probe has a DS18B20 digital temperature IC inside a waterproof probe. It will give you a digital output that will vary depending on temperature.
 
Voltage : 3.3 to 5VDC
Temperature : -55C to 110C
Length : 1M

Example project: 
 

DS18B20 High Accuracy Digital Thermometer.

 
This DS18B20 digital thermometer is extremely useful as a tool for measuring temperature for all kinds of different applications. It has a very wide temperature range (-55°C to 110°C) and high accuracy, especially at temperatures between -10°C to 85°C.  In this project, we will be using an Arduino to read the temperature from the probe and display it on an LCD screen equipped with a KY1602 module.
 
Here’s what you will need: 
 
Tools
 
Components

Libraries

Step 1
First, you will need to connect the probe to the breadboard. This should be easy to do since the probe comes with pre-tinned leads. Simply push the ends of the leads into the breadboard sockets and use a 4.6kΩ pull-up resistor on the data pin as shown in fig.1. Now, you will need to connect the Arduino to the breadboard. Use the jumper leads to connect the male to male jumper leads to connect the power, ground and digital pin to the breadboard. 
 
Step 2
Solder the KY1602 module onto the 1602 LCD screen. Pin 1 on the KY1602 module is the one closest to the 4 data and power pins. Once soldered, you can now connect the LCD display to the Arduino as shown in fig.1:
 

Fig. 1




Step 3
Connect the Arduino to your computer and install the libraries mentioned above. If you need help installing the libraries, CLICK HERE for a quick tutorial.
 
Step 4
You can now start writing the code to get this all working: 


First, clear the IDE window. Then, include the aforementioned libraries:

#include <DS18B20.h>
#include <LCD_I2C.h>



Initialize the KY1602 I2C LCD driver (address 0x27 in this example) and specify the LCD display (in this case 16 characters, 2 rows):
   
DS18B20 ds(12);
LCD_I2C lcd(0x27, 16, 2);
   


Initialize the LCD display and turn on the LCD backlight. This is done inside the void setup function:
   
void setup() {
lcd.begin();
lcd.backlight();
}
   


Start a while loop. This is done inside the void loop function:
   
void loop() {
while (ds.selectNext()) {
   


Set the cursor to the first character and display the temperature in ºF and ºC:
   
lcd.setCursor(0,0);
  lcd.print(ds.getTempC());
  lcd.print((char)223);
  lcd.print("C");
  lcd.setCursor(0,1);
  lcd.print(ds.getTempF());
  lcd.print((char)223);
  lcd.print("F");
  }
   


Choose how often to update the screen (in this case, 800ms):
   
  delay(800);
}
   


The completed code should look like this:
   
#include <DS18B20.h>
#include <LCD_I2C.h>

DS18B20 ds(12);
LCD_I2C lcd(0x27, 16, 2);

void setup() {
  lcd.begin();
  lcd.backlight();
}

void loop() {
  while (ds.selectNext()) {
  lcd.setCursor(0,0);
  lcd.print(ds.getTempC());
  lcd.print((char)223);
  lcd.print("C");
  lcd.setCursor(0,1);
  lcd.print(ds.getTempF());
  lcd.print((char)223);
  lcd.print("F");
  }
  delay(800);
}

   
Step 4
Press the “Upload” button at the top (button with tick, located below “File”). The IDE will now compile the code and upload it to your Arduino (this will take a few moments).
 
Step 5
Done! If the connections are correct and there are no errors with the code, the LCD should display the temperature. 
 

Recently Viewed


Trustpilot