Difference between revisions of "Sensor-Temperature-D1"

From Microduino Wiki
Jump to: navigation, search
(Program)
Line 1: Line 1:
{{Language|Microduino-LM75}}
+
{{Language|Sensor-LM75}}
 
{| style="width: 800px;"
 
{| style="width: 800px;"
 
|-
 
|-
 
|
 
|
[[File: Microduino-LM75.jpg|400px|thumb|right| Microduino-LM75]]
+
[[File: Microduino-LM75.jpg|400px|thumb|right| Microduino-Sensor-Temperature-D1]]
 +
The product number of Sensor-Temperature-D1 is: MSDT11
  
Microduino-LM75is digital temperature detection sensor module.  
+
Sensor-Temperature-D1 is digital temperature detection sensor module.  
  
 +
LM75 is a temperature sensor produced by National Semiconductor whose output voltage is of Celsius scale.
  
LM75 is a temperature sensor produced by National Semiconductor of which the output voltage is Celsus scale.
+
==Introduction of the Sensor Pin==
 
 
 
 
 
 
==Instruction of Sensor Pins==
 
 
{{Sensor_explain
 
{{Sensor_explain
 
|nameA=[[Sensor-Temperature-D1]]
 
|nameA=[[Sensor-Temperature-D1]]
Line 23: Line 21:
 
*With low power consumption, long service life and good stability.
 
*With low power consumption, long service life and good stability.
 
*With wide working voltage.  
 
*With wide working voltage.  
*With small size which is easy to install.  
+
*With small size which is easy to install.
  
 
==Specification==
 
==Specification==
*Electric specification
+
*Sensor voltage
**Working voltage: 2.8V~5.5V
+
**3.3V~5V working voltage
**Input device
+
 
 +
*Size of the sensor
 +
**Size of the board: 23.5mm*13mm
 +
**1.27mm-spacing 4Pin interface connected with sensorhub
 +
**CAD drawing of the sensor: '''[[File:Sensor_CAD.zip]]'''
 +
 
 
*Technical parameters
 
*Technical parameters
*Accuracy: temperature 0.125℃
+
**Accuracy: temperature 0.125℃;
*Measurement arrange: -55℃~+125℃
+
**Measuring range: 55℃~+125℃;
*Size
+
 
**Size of the sensor: 5mm*5mm
 
**Size of the board: 20mm*10mm
 
*1.27mm-spacing 4Pin interface
 
 
*Connection
 
*Connection
*Interface: I2C
+
*This sensor can e connected to the I2C interface of the core.  
*Pin instruction: GND, VCC, signal 1 and signal 2, the signal is IIC signal, so IIC interface is needed to receive the signal, and it can be connected to the pin 1 and 2 of sensor hub.
 
[[file:mCookie-sensorhub_rule.JPG|thumb|800px|center]]
 
[[File: Microduino-LM75_I2C.jpg|600px|thumb|center]]
 
  
 
==Document==
 
==Document==
*Schematic diagram: '''[[File: Microduino_LM75.Zip]]'''
+
*Schematic diagram: '''[[File: Sensor_Temperature_D1.Zip]]'''
 
 
  
 
==Development==
 
==Development==
===Preparation===
+
===Program Download===
*Confirm that you have set up the development environment of Microduino, otherwise please refer to : [[Microduino Getting started]]
+
*Download and unzip the program '''[[File:Sensor_Temperature_D1_Test.zip]]'''
*Core selection
 
**1.Adopt [[Microduino-CoreUSB]] or [[mCookie-CoreUSB]] as the core directly.
 
**2.Adopt [[Microduino-Core]] or [[Microduino-Core+]]as the core, and you also need to use [[Microduino-USBTTL]] to download programs.
 
  
 
+
===Programming===
===Program===
+
{{Upload
*Open the program "test" in the library.
+
|nameA=[[Microduino-Core]], [[Microduino-USBTTL]]
[[file:mCookie-LM75Test.JPG|thumb|800px|center]]
+
|nameB=[[Microduino-USBTTL]]
*include <lm75.h>  Call the library function of LM75 temperature sensor.
+
|boardName=Microduino/mCookie-Core(328p), Atmega328P@16M,5V
*TempI2C_LM75 termo = TempI2C_LM75(0x48,TempI2C_LM75::nine_bits);    Define TempI2C_LM75 object.
+
|fileName=Sensor_Temperature_D1_Test.ino
*termo.setResolution(TempI2C_LM75::ten_bits);    Set the display to decimal numbers.
+
}}
*Serial.print(termo.getTemp());    Display the output temperature.
 
  
 
===Hardware Setup===
 
===Hardware Setup===
*Connect the sensor with the IIC port of sensorhub through patch cord.
+
*Referring to the following diagram, connect the Sensor-Temperature-D1 to theI2C interface of '''[[Microduino-Sensorhub]]'''.
[[Microduino-Sensorhub]]
+
<br>
[[file:Microduino-sensorhub_I2C.PNG|thumb|400px|center]]
+
[[file:Microduino-sensorhub_I2C.JPG|thumb|400px|left]]
[[mCookie-Hub]]
+
<br style="clear: left"/>
[[file:mCookie-sensorhub_I2C.PNG|thumb|400px|center]]
+
===Result===
*Connect the core and Sensorhub and LM75 together, and then connect them to the computer with USB cable.
+
*After download, open the serial monitor.  
*Choose the right board card and COM port, and download directly after compiling. Refer to [[AVR Core: Getting Started]]
+
*The serial monitor will print out the configuration information of the sensor, and then display the current temperature in cycle.  
[[file:upload.JPG|thumb|800px|center]]
 
*Open Arduino IDE, choose File→Examples→Microduino→Sensor_Tem_LM75→test sample program, and choose the right board card in Tools→Board, and then compile.
 
*Choose the right port in Tools→Serial Port of Arduino IDE, and then download the program directly.  
 
*After download you can open the serial monitor, and the console will print out the configuration information of the sensor, and then display the current temperature in cycle.  
 
  
 
==Application==
 
==Application==
  
It can be used in environment temperature detection, and as temperature switch to control the air conditioner, fans and so on.  
+
It can be sued to detect the humidity of the environment, and be sued as temperature switch to control the air conditioner, fan and other devices.  
  
  

Revision as of 06:25, 19 September 2016

Language: English  • 中文
Microduino-Sensor-Temperature-D1

The product number of Sensor-Temperature-D1 is: MSDT11

Sensor-Temperature-D1 is digital temperature detection sensor module.

LM75 is a temperature sensor produced by National Semiconductor whose output voltage is of Celsius scale.

Introduction of the Sensor Pin

Sensor backpin.png
  • Pins of the sensor:
    • PIN1: GND
    • PIN2: VCC
    • General signal pins:
      • PIN3(IO1): digital/analog signal
      • PIN4(IO2): NC(null)
    • Special signal pins:
      • If it is IIC: IO1/IO2 are respectively SDA/SCL.
      • If it is soft serial port: IO1/IO2 are respectively tx/rx.
  • Special to Sensor-Temperature-D1 sensor pins
    • PIN1: GND
    • PIN2: VCC
    • PIN3(IO1): SDA
    • PIN4(IO2): SCL


Microduino sensor can communicate with core module through the connection with Microduino-Module Sensor Hub.

Features

  • Adopts LM75 temperature whose address is optional.
  • With high accuracy and sensitivity.
  • With low power consumption, long service life and good stability.
  • With wide working voltage.
  • With small size which is easy to install.

Specification

  • Sensor voltage
    • 3.3V~5V working voltage
  • Size of the sensor
    • Size of the board: 23.5mm*13mm
    • 1.27mm-spacing 4Pin interface connected with sensorhub
    • CAD drawing of the sensor: File:Sensor CAD.zip
  • Technical parameters
    • Accuracy: temperature 0.125℃;
    • Measuring range: 55℃~+125℃;
  • Connection
  • This sensor can e connected to the I2C interface of the core.

Document

Development

Program Download

Programming

  • Follow the Software Getting Started Guide.
  • Select the Board, Processor and Port.
  • Click [File]->[Open], browse to the project program address, and click "Sensor_Temperature_D1_Test.ino" to open the program.
  • After confirming all these items are correct, click "→" to download the program to the development board.

Hardware Setup

  • Referring to the following diagram, connect the Sensor-Temperature-D1 to theI2C interface of Microduino-Sensorhub.


Microduino-sensorhub I2C.JPG


Result

  • After download, open the serial monitor.
  • The serial monitor will print out the configuration information of the sensor, and then display the current temperature in cycle.

Application

It can be sued to detect the humidity of the environment, and be sued as temperature switch to control the air conditioner, fan and other devices.


Purchase

History

Gallery

  • Front
Microduino-LM75 Front
  • Back
Microduino-LM75 Back