Difference between revisions of "Module/Hygrosens TEMOD-I2C-R1"

From PaparazziUAV
Jump to navigation Jump to search
(Hygrosens TEMOD-I2C-R1 temperature converter for PT1000)
 
m
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
===Overview===
===Overview===


The Hygrosens TEMOD-I2C-R1 is a digital converter board to read data from a PT1000 temperature sensor. It is the standard fast temperature sensor for the SUMO.
The Hygrosens TEMOD-I2C-R1 is a converter board to measure temperature by a PT1000 sensor and output the data through an I2C interface. It is the standard fast temperature sensor for the SUMO.
 
There are -R2 (-32°C .. +224°C) and -R3 (-32°C .. +480°C) modules available that have a higher maximum temperature but lower resolution.
 
{|border="1"
|-valign="top"
||Module name||meteo/temp_temod
|-
|Sensor type
|temperature
|-
|Range
| -32°C .. +96°C
|-
|Resolution
|(1/256)°C
|-
|Refresh rate
|8Hz
|-
|I2C address
|0xF0
|}
 
[http://www.produktinfo.conrad.com/datenblaetter/500000-524999/502001-da-01-en-TEMPERATURMODUL_I2C_32_96_C.pdf Product data sheet]


[http://alt.hygrosens.de/en/products/sensor-module Hygrosens product homepage]
[http://alt.hygrosens.de/en/products/sensor-module Hygrosens product homepage]


[http://heraeus-sensor-technology.de/media/webmedia_local/media/pdfstemperatursensorelemente/m_222_d.pdf Heraeus PT1000]
[http://heraeus-sensor-technology.de/media/webmedia_local/media/pdfstemperatursensorelemente/m_222_d.pdf Heraeus PT1000]
module: temp_temod


===Hardware===
===Hardware===


The board does have a 5V I2C interface. It can not be directly interfaced to 3.3V I2C interfaces as the Paparazzi boards have. A level shifting adapter board is needed. The PT1000 sensor is not included. The Heraeus M222 sensor can be used as it has a small mass.
The data sheet mentions a minimum supply voltage of 6V but it seems to work ok with 5V. The board does have a 5V I2C interface. It can not be directly interfaced to the Paparazzi autpilot 3.3V I2C interfaces. A level shifting adapter board is needed. The PT1000 sensor is not included with the module. The Heraeus M222 sensor is used as it has a small mass.


Supplier:
Module supplier:
[http://www.conrad.de/ce/de/product/502001 Conrad]
[http://www.conrad.de/ce/de/product/502001 Conrad]


Level shifter:
Level shifter supplier:
[http://www.sparkfun.com/products/8745 Sparkfun]
[http://www.sparkfun.com/products/8745 Sparkfun]


PT1000 sensor:
PT1000 sensor supplier:
[http://www.conrad.de/ce/de/product/172041 Conrad]
[http://www.conrad.de/ce/de/product/172041 Conrad]
==== Wiring ====
{|border="1"
|-valign="top"
||'''Autopilot I2C pin'''||'''Autopilot I2C'''||'''Level Shifter'''||'''TEMOD-I2C-R1'''||'''TEMOD-I2C-R1 pin'''
|-
|1
|GND
|LV_GND
|
|
|-
|2
| +5V
|HV_HV
|Vdd
|1
|-
|3
| +3.3V
|LV_LV
|
|
|-
|4
|SDA
|LV_TXI_Chan1
|
|
|-
|5
|SCL
|LV_TXI_Chan2
|
|
|-
|
|
|HV_GND
|GND
|2
|-
|
|
|HV_TXO_Chan1
|SDA
|3
|-
|
|
|HV_TXO_Chan2
|SCL
|4
|}


===Usage===
===Usage===


To use the humidity sensor:
To use the temperature sensor add the module to your airframe file.
{{Box Code|conf/airframes/myplane.xml|
<source lang="xml">
  <modules>
    <load name="temp_temod.xml"/>
  </modules>
</source>
}}
 
The standard module is the TEMOD-I2C-R1 with the highest resolution. The -R2/-R3 type can be configured.
{{Box Code|conf/airframes/myplane.xml|
{{Box Code|conf/airframes/myplane.xml|
<source lang="xml">
<source lang="xml">
   <modules>
   <modules>
     <load name="temp_temod.xml"/>
     <load name="temp_temod.xml"/>
      <configure name="TEMOD_TYPE" value="TEMOD_I2C_R2"/>
    </load>
   </modules>
   </modules>
</source>
</source>
}}
}}
===Result message===
The raw data (itemp) and the converted result (temp) is written to the log file. The message is automatically sent when new data is received, it does not have to be added to the telemetry file.
{{Box Code|conf/messages.xml|
<source lang="xml">
  <message name="TMP_STATUS" id="86">
    <field name="itemp" type="uint16"/>
    <field name="temp" type="float" unit="deg_celsius" format="%.2f"/>
  </message>
</source>
}}
Sample log file lines
5.980 123 TMP_STATUS 13486 20.68
6.081 123 TMP_STATUS 13483 20.67
6.106 123 TMP_STATUS 13486 20.68
6.313 123 TMP_STATUS 13489 20.69


===NOTES===
===NOTES===


The location of the sensor on the aircraft does matter. There are various papers that analyze the best location. So far we have installed them within tubes (to protect from sunlight/heating) on the wings. That might not be the optimum place. The precise -R1 sensor only operates down to -32°C.
The location of the sensor on the aircraft does matter. There are various papers that analyze the best location. So far we have installed them within tubes (to protect from sunlight/heating) on the wings. That might not be the optimum place.


[[Category:User_Documentation]] [[Category:Modules]]
[[Category:User_Documentation]] [[Category:Modules]]

Latest revision as of 08:49, 5 March 2013

TEMOD-I2C-R1 with PT1000 and level shifter
back side

Overview

The Hygrosens TEMOD-I2C-R1 is a converter board to measure temperature by a PT1000 sensor and output the data through an I2C interface. It is the standard fast temperature sensor for the SUMO.

There are -R2 (-32°C .. +224°C) and -R3 (-32°C .. +480°C) modules available that have a higher maximum temperature but lower resolution.

Module name meteo/temp_temod
Sensor type temperature
Range -32°C .. +96°C
Resolution (1/256)°C
Refresh rate 8Hz
I2C address 0xF0

Product data sheet

Hygrosens product homepage

Heraeus PT1000

Hardware

The data sheet mentions a minimum supply voltage of 6V but it seems to work ok with 5V. The board does have a 5V I2C interface. It can not be directly interfaced to the Paparazzi autpilot 3.3V I2C interfaces. A level shifting adapter board is needed. The PT1000 sensor is not included with the module. The Heraeus M222 sensor is used as it has a small mass.

Module supplier: Conrad

Level shifter supplier: Sparkfun

PT1000 sensor supplier: Conrad

Wiring

Autopilot I2C pin Autopilot I2C Level Shifter TEMOD-I2C-R1 TEMOD-I2C-R1 pin
1 GND LV_GND
2 +5V HV_HV Vdd 1
3 +3.3V LV_LV
4 SDA LV_TXI_Chan1
5 SCL LV_TXI_Chan2
HV_GND GND 2
HV_TXO_Chan1 SDA 3
HV_TXO_Chan2 SCL 4


Usage

To use the temperature sensor add the module to your airframe file.

File: conf/airframes/myplane.xml
  <modules>
    <load name="temp_temod.xml"/>
  </modules>

The standard module is the TEMOD-I2C-R1 with the highest resolution. The -R2/-R3 type can be configured.

File: conf/airframes/myplane.xml
  <modules>
    <load name="temp_temod.xml"/>
      <configure name="TEMOD_TYPE" value="TEMOD_I2C_R2"/>
    </load>
  </modules>


Result message

The raw data (itemp) and the converted result (temp) is written to the log file. The message is automatically sent when new data is received, it does not have to be added to the telemetry file.

File: conf/messages.xml
  <message name="TMP_STATUS" id="86">
    <field name="itemp" type="uint16"/>
    <field name="temp" type="float" unit="deg_celsius" format="%.2f"/>
  </message>


Sample log file lines

5.980 123 TMP_STATUS 13486 20.68
6.081 123 TMP_STATUS 13483 20.67
6.106 123 TMP_STATUS 13486 20.68
6.313 123 TMP_STATUS 13489 20.69

NOTES

The location of the sensor on the aircraft does matter. There are various papers that analyze the best location. So far we have installed them within tubes (to protect from sunlight/heating) on the wings. That might not be the optimum place.