26 - 09 - 2022

AltonaLab Sensors

AltonaLab temperature sensor:

The Temperature sensor is an easy to use board, which works in range -20..+100 C, accuracy: 1%. The board has a connector with three screws – ground, power +5V and signal output. The measured output voltage Vout of the sensor can be converted to temperature using the expression below:
T = (Vout-2.7315)*100.0
In case, the Vout is measured with ADC 0..3.3V, it would be good to be used a connector board with a resistor divider 1.5k/3.0k.
The used sensor element is LM335.
Only for information, the sensor can work with 12V power supply, but in this case, the only resistor on the board has to be changed to 4.7k.
The board can be used very easy at AltonaLab software, just add the block AltonaSensorTemp from Sensors library:

 

AltonaLab humidity sensor:

The Humidity sensor works in range 0 ~ 100% RH, Accuracy: ±3% RH. The board has a connector with three screws – ground, power +5V and signal output. The measured output voltage Vout of the sensor can be converted to RH using the expression below:
Rh = (Vout / 0.0318) – 23.83075
In case, the Vout is measured with ADC 0..3.3V, additional connector board is needed with a resistor divider 1.5k/3.0k.
The used sensitive element is HIH-5031-001.
The board can be used very easy at AltonaLab software, just add the block AltonaSensorHumidity from Sensors library:

PIR Motion Sensor:

This easy to use sensor has three pins:

  • + Power supply pin. The operating voltage is in range DC 2.7-12V;
  • Signal pin;
  • Ground pin;

When a motion is detected, the output becomes at high level. It can be directly connected to the analog input GPIO;

 

Water level sensor:

A presence of a water can be monitoring very easy with Water level sensor board. Just use two wires placed in a water tank. Connect the other end of the wires to the board connector GND..Probe. If the wires are contacted with water, then the output signal of the board will be at high level. The output of the board can be monitoring with board with analog or digital inputs directly connected to the sensor’s output:

 

Soil Humidity Sensor:

The sensor is designed to measure the soil resistance, and based on the resistance, the AltonaLab software calculates the soil humidity.

The image of the sensor is:

The sensor has +5V power supply and analog output 0..5V. The AltonaLab block SoilHumiditySensor converts the sensor's output voltage to resistance - output RSoil (in range 50 ohms.. 50,000 ohms) and Soil humidity - output Humidity (in range 0..100%). The sensor board has two screw connector for a Soil probe, which is shown below:

The connection diagram of a Soil humidity sensor and a Soil probe is shown below. The board's output Out is analog output which work in range 0..5V.

The parameters of the AltonaLab block SoilHumiditySensor are shown below: 

 

 

Parameters:

  • Input type - this parameter determines the type of an input of the block In. The parameter opens an interface with a few elements:

- Combo box Input type has two values - Raw data and Volts. In case Raw data is set, the input In is in ADC range, which depends on the next combo box ADC resolution: for 10bit ADC the input range is 0..1023. In case Volts is set, then the input In of the block is in voltage.

- Combo box ADC max range - can be set as 3.3V or 5.0V. For ADC with 3.3V max range, a resistor divider 1.5k/3.0k has to be used to change the sensor output level from 0..5V to ADC input level 0..3.3V. At this case, the functional block will calculate the right temperature value; 

  • HiLevelHum, LowLevelHum - with this two parameters is organized a Schmitt trigger for irrigation process. When the diagram is started, if the current soil humidity is under HiLevelHum, the irrigation will start. The irrigation will continue until the current soil humidity increases over HiLevelHum, then will stop. The current soil humidity will start slowly to decrease. The irrigation will be started again, when the current soil humidity decreases below LowLevelHum.
  • QueueSize - determines how much old measured values of the temperature to be saved at the block's memory. The output of the block will be an average value of the last measured values.

 Block's inputs:

  • In - input value of the block, can be in ADC raw data 0..1023 or in volts;
  • Process - if the input is connected, the block will calculate the input value In to humidity only at low to high front of this input. If the input is not connected, the block will calculate the input signal always.

Block's outputs:

  • Humidity - the calculated soil humidity 0..100%;
  • RSoil - this is a measured real soil humidity resistance in ohms;
  • OnReady - when the calculation of the block is ready, this output becomes to a short in time high level;
  • Irrigate - The output becomes to a high level, depending of a current soil humidity and parameters HiLevelHum, LowLevelHum;