Sensor-Temperature-D1

From Microduino Wiki
Revision as of 09:25, 9 September 2016 by Fengfeng (talk) (Program)
Jump to: navigation, search
Language: English  • 中文
Microduino-LM75

Microduino-LM75is digital temperature detection sensor module.


LM75 is a temperature sensor produced by National Semiconductor of which the output voltage is Celsus scale.


Instruction of Sensor Pins

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

  • Electric specification
    • Working voltage: 2.8V~5.5V
    • Input device
  • Technical parameters
  • Accuracy: temperature 0.125℃
  • Measurement arrange: -55℃~+125℃
  • Size
    • Size of the sensor: 5mm*5mm
    • Size of the board: 20mm*10mm
  • 1.27mm-spacing 4Pin interface
  • Connection
  • Interface: I2C
  • 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.
MCookie-sensorhub rule.JPG

Document


Development

Preparation


Program

  • Open the program "test" in the library.
MCookie-LM75Test.JPG
  • include <lm75.h> Call the library function of LM75 temperature sensor.
  • TempI2C_LM75 termo = TempI2C_LM75(0x48,TempI2C_LM75::nine_bits); Define TempI2C_LM75 object.
  • termo.setResolution(TempI2C_LM75::ten_bits); Set the display to decimal numbers.
  • Serial.print(termo.getTemp()); Display the output temperature.

Hardware Setup

  • Connect the sensor with the IIC port of sensorhub through patch cord.

Microduino-Sensorhub

Microduino-sensorhub I2C.PNG

mCookie-Hub

MCookie-sensorhub I2C.PNG
  • Connect the core and Sensorhub and LM75 together, and then connect them to the computer with USB cable.
  • Choose the right board card and COM port, and download directly after compiling. Refer to AVR Core: Getting Started
Upload.JPG
  • 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

It can be used in environment temperature detection, and as temperature switch to control the air conditioner, fans and so on.


Purchase

History

Gallery

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