Payment

Verified by

For EU Customers

All prices are WITHOUT VAT 20.00%

If you are located in EU and your company has valid VAT number we will reduce the VAT charge AFTER you make the order as our site does not support online VAT number validation. We do it as partial refund. You can use this online tool for VAT validation: http://ec.europa.eu/taxation_customs/vies/

DAE-AN004: Connecting analog sensors to DAEnetIP2

This page is about how to connect analog sensors to DAEnetIP2 ethernet controller. In this way it is possible to measure different analog values like temperature, humidity, distance and control electrical device or send traps based on the meausred values.

This article main aim is to help you in projects where a various analog sensors must be connected to the inputs of our DAEnetIP2 controllers or modules based on them. In most of the cases, our DAEnetIP2 controller can work with analog sensors like LM35DZ (temperatre), HIH-4000 humidity and so on... Some of these sensors are with linear voltage output and some of them not. In the first case, their value can be easily calculated with single equation (linearization by 2 points). In the second case, however this is not possible with this method but still such sensors can be used for triggers(to switch relay, send snmp trap). Here, we've put some example schematics how to connect such sensor to DAEnetIP2 controller.

How to convert ADC units into sensor value (°C,m,%RH....). For example the browser showings of the ADC are in units (0-1023);

How to convert sensor value into ADC units. For example when you want to set the low/high threshold but you know the sensor value is °C;

Solve linearization by two points (which is required in software applications, where the ADC value can displayed directly in units like °C,m,%RH and so on); For example some applications require to enter sensor value in °C at 0 units and sensor value at 1024 unuts. This file will help you to solve them.

Connecting LM35DZ (temperature sensor) to DAEnetIP2

The schematic is tested with 20 meters flat cable and works well in our laboratory. However for more noisy environment and longer cabel, an extra measurements may be required which are not object of this example.

The power supply 12VDC for LM35DZ may be taken either from DAEnetIP2 either from external power source;

The C1 capacitor is optional. It is recommend to be used if the sensor value is not constant.

Settings for DAEnetIP2 Manager. The software allows to scale the sensor value so it is possible to display the data (and set thresholds) directly in °C. The settings according the schematic above are shown on the next image (to reach this window: DAEnetIP2 Manager->Analog Inputs->Settings button).

Connecting LM335Z (temperature sensor) to DAEnetIP2

The schematic is tested with 20 meters flat cable and works well in our laboratory. However for more noisy environment and longer cabel, an extra measurements may be required which are not object of this example.

The power supply 12VDC for LM335Z may be taken either from DAEnetIP2 either from external power source;

The C1 capacitor is optional. It is recommend to be used if the sensor value is not constant.

Settings for DAEnetIP2 Manager. The software allows to scale the sensor value so it is possible to display the data (and set thresholds) directly in °C. The settings according the schematic above are shown on the next image (to reach this window: DAEnetIP2 Manager->Analog Inputs->Settings button).

Some data, which may help you:

Parameter

Value

Dimension

Note

ADCRes

10

bits

The resolution of the ADC

Vref

3.3

V

The referent voltage of the DAEnetIP2 controller

R1

4.7

Kohm

See the above schematic (must be connected additionaly)

R2

10

Kohm

See the above schematic (must be connected additionaly)

SensMin

-40

°C

The minimum value of the sensor

SensMax

100

°C

The maximum value of the sensor

SensorRes

0.01

V / °C

Sensor resolution, it is taken from the sensor datasheet

Vtest

25

°C

Testpoint value

Vvalue

2.98

V

Output voltage during the testpoint (Vtest)

The other sensors from this sieries are LM235 and LM135 - they can also be used with DAEnetIP2 the same way, however please refer to their specification.

Connecting HIH-4000 (humidity sensor) to DAEnetIP2

The schematic is tested with 20 meters flat cable and works well in our laboratory. However for more noisy environment and longer cabel, an extra measurements may be required which are not object of this example.

The power supply 5VDC for HIH-4000 must be taken from external power source.

The C1 capacitor is optional. It is recommend to be used if the sensor value is not constant.

Settings for DAEnetIP2 Manager. The software allows to scale the sensor value so it is possible to display the data (and set thresholds) directly in %RH. The settings according the schematic above are shown on the next image (to reach this window: DAEnetIP2 Manager->Analog Inputs->Settings button).

The schematic is tested with 20 meters flat cable and works well in our laboratory. However for more noisy environment and longer cabel, an extra measurements may be required which are not object of this example.

The power supply 5VDC for GP2Y0A21YK must be taken from external power source;

The C1 capacitor is optional. It is recommend to be used if the sensor value is not constant;

The schematic is tested with 20 meters flat cable and works well in our laboratory. However for more noisy environment and longer cabel, an extra measurements may be required which are not object of this example.

The power supply 5VDC for TSL250R must be taken from external power source;

The C1 capacitor is optional. It is recommend to be used if the sensor value is not constant.

The R1 and R2 resistors must be connected additionally

The other sensors from this sieries are TSL251R and TSL252R - they can also be used with DAEnetIP2 the same way, however please refer to their specification