Temperature Sensor Waterproof(DS18b20)

微信截图_20160129140754

Overview

The Me Temperature Sensor module is a metal tube thermometer with DS18B20 detector. Featuring strong anti-interference ability and high accuracy, it is covered with waterproof rubber hose outside and able to measure temperature in the range -55℃~+125℃. It can be connected to the RJ25 Adapter module which is then connected to Makeblock Orion for temperature measurement.

Technical specifications

● Operating voltage: 5V DC
● Sensor type: DS18B20
● Temperature range: -55℃~125℃
● Control mode: Single bus port
● Dimension: 500 x 6 x 6mm

Functional characteristics

● 9~12 bits A/D conversion accuracy
● High precision: ±0.5℃ (-10℃~+85℃)
● Probe diameter 6 mm, length 50 mm approximately, total length 1 m (including line)
● Short time delay in temperature conversion, maximum 750ms
● Support multi-point networking
● Perfect waterproof property
● Support mBlock GUI programming, and applicable to users of all ages

Pin definition

The port of Me Temperature Sensor has three pins, and their functions are as follows:微信截图_20160129141047

Wiring mode

● Connecting with RJ25
If you want to connect to a thermometer through the RJ25 port, simply connect it to the RJ25 Adapter module, and then connect the module to Makeblock Orion as follows:

微信截图_20160129141125

● Connecting with Dupont wire
When the Dupont wire is used to connect the module to the Arduino UNO Baseboard, its SIG pin should be connected to digital port as follows:微信截图_20160129141205

Guide to programming

● Arduino programming
If you use Arduino to write a program, the library Makeblock-Library-master should be invoked to control the Me Temperature Sensor-Waterproof.
This program serves to read current temperature through Arduino programming.微信截图_20160129141241

The code segment serves to read the readings of Me Temperature Sensor and output the result to the serial monitor in Arduino IDE with the cycle of 1s.
Upload the code segment to Makeblock Orion, click the Arduino serial monitor and you will see the running result as follows:

微信截图_20160129141323

● mBlock programming
The Me Temperature Sensor-Waterproof module supports the mBlock programming environment and its instructions are introduced as follows:微信截图_20160129141356

This is an example on how to use mBlock to control the Me Temperature Sensor module.
It will make the panda speaking out the value of temperature captured by the Me Temperature Sensor, and the running result is as follows:微信截图_20160129141428

Principle analysis

With the main component DS18B20, the Me Temperature Sensor module features miniaturization, low power consumption, high performance, strong anti-interference ability, and matching with microprocessor easily. Adopting unique single bus port mode, DS18B20 is in connection with a microprocessor by only a bus to implement two-way communication between the microprocessor and DS18B20. The module supports the function of multi-point networking, so several DS18B20 can be connected in parallel on the only three-line to implement multi-point temperature measurement, and the measurement results are transmitted in 9~12 bits serial digital mode. When communicated with a single chip computer, you can set the resolution by configuring the register.
The temperature sensor in DS18B20 implements measurement of temperature and provides results in 16-bit binary, in  which S is the sign bit.微信截图_20160129141520
For example:
The digital output of +125℃ is 07D0H (For a positive temperature, directly convert the hexadecimal number into a decimal number).
The digital output of -55℃ is FC90H (For a negative temperature, invert the hexadecimal number and increase it by 1, and then convert into a decimal number).

微信截图_20160129141525

3 thoughts on “Temperature Sensor Waterproof(DS18b20)”

  1. I’m impressed, I must say. Seldom do I come across a blog that’s both
    educative and amusing, and let me tell you, you’ve hit the nail
    on the head. The problem is something not enough people are speaking intelligently about.

    I am very happy I stumbled across this in my hunt for something
    regarding this.

  2. hi,
    i Buy a temperatur waterproof sensor. I have mbot robot. Where can i connect a sensor? must i have hardware interface or what? Thank’s

    Angelo Angius

Comments are closed.