Many industrial sensors. Such sensors output a voltage proportional to the signal (pressure, temperature, moisture, vibration) they are measuring.
i.e. 0V for 0°C and 10V for 100°C.
- Low Cost
- No integration required - any analogue sensor that fits within the range of the device it is connected to can be read
- Readily available
- Some can be prone to noise/inaccuracy due to electrical interference
When using the RS1 plug in card, the I/Os of interest are:
|1||Analogue Input (0-30V range)|
Analogue sensors generally come in 0-5V or 0-10V versions. They will need to be provided a voltage at least that of their full range. i.e. a 0-5V sensor needs at least 5V power supply.
Refer to the manufacturer's datasheet/wiring guide for the wiring instructions.
We now need to configure the Hawk to
- Wake up on a schedule to take a reading - (Set up a Task)
- Power on the sensor at the correct voltage (via the Vboost rail)
- Sample the sensor after some time (warm up delay)
- Log the reading and optionally upload.
Configure a task at your chosen frequency - choosing Analogue Action 1 as an action.
Configure RS1 parameters
Set Output Voltage to power the sensor.
When taking a reading, we can choose to power the sensor with 3.3V, 5V or 12V.
Shown below is to power with 5V.
Analogue Input parameters
Set the power on delay and the Analogue which the reading should be mapped to.
With the above parameters, the output would be:
|Distance||Analogue Offset Value|
|mV||2500 = 2.50V|
- When using the Analogue Input, this simply records a voltage. We need to translate this into a meaningful value. i.e. tank level, temperature, pressure etc.
- We can convert the value by creating an I/O mapping.
- We have a level sensor which outputs 1V when the tank is empty (0%), and 5V when full (100%)
- This gives us (1, 0), (5,100) in terms of x and y coordinates.
- Telematics Guru allows us to enter a conversion factor and offset
- We can use this to create an equation of the form y = mx + c
- x = voltage
- y = tank level
- i.e. the relationship between tank level from a given voltage.
- Handy calculator - https://planetcalc.com/8110/