Product |
Arduino Brick
|
Sensor Brick
| Arduino Temperature Sensor DS18B20
Arduino Temperature Sensor DS18B20
.jpg)
By using electronic bricks, you may connect Arduino compatible boards easily with various digital, analog and I2C/Uart interfaces. These the breadboard-less firm connection are prepared to extensive modules like poteniometers, sensors, relays, servos...even buttons, just plug and play.
Each terminal module has buckled port with VCC, GND and Output, which has corresponding port on the sensing board, with a plain 2.54mm dual-female cable you may start playing already. Buckled brick cables are like cement for bricks, make the connections easier, secure and more professional looking.
It is very interesting Electronic Brick Module-14
Description :
Different to thermometer, our digital temperature sensor based on DALLAS ' DS18B20 provides calibrated digital temperature readings directly and precisely without complicated calculation in code. It measures temperatures from -55°C to +125°C (-67°F to +257°F) with ± 0.5°C accuracy from -10°C to +85°C. Here below is a trial using this module. Firstly, connect the digital temperature sensor to digital pin of Sensor Shield, here we connected to digital pin 12.
This module can be used with Arduino Special Sensor Shield V4.0.
You can do some simple design about it,it support“plug and play”。
.jpg)
This module connect with Arduino Special Sensor Shield V4.0.
link the digital Temperature Sensor to No.12 of digital I/O .
.jpg)

Restart Arduino , then use the code below to finish test:
#include <DallasTemperature.h> DallasTemperature tempSensor; void setup(void) { Serial.begin(9600); tempSensor.begin(12); // link DS18B20 to NO.12 pin of digital I/O port } void loop(void) { // test temperature weather working normally switch(tempSensor.isValid()) { case 1: Serial.println("Invalid CRC"); tempSensor.reset(); // reset temperature sensor return; case 2: Serial.println("Not a valid device"); tempSensor.reset(); // reset temperature sensor return; } // read temperature data from DS18B20 Serial.print(tempSensor.getTemperature()); Serial.print("C"); Serial.println(); } then open the Arduino serial port watching tool , and then you can see the data reading from DS18B20![]()
Categories
Newsletter
Join our newsletter today, to get latest product information and promotion code.








