Analog Inputs

Your RevPi MIO has eight analog inputs, with which you can measure voltage from 0 to 10 V in millivolts. The inputs have an overhead with a buffer of 0.76 V. Measurements above 10.76 V are blocked.

Analog Inputs as Digital Inputs

Variable switching thresholds enable analog inputs to behave as digital inputs. You can define the switching thresholds for each channel. The result, i.e. whether the switching threshold at a channel has been exceeded, is shown in the process image in the fields AnalogInputLogicLevel_1-8.


To increase the accuracy of the AD converter, the signal is “oversampled”. With oversampling, an average value is calculated. All measurements (64) in a measurement period (approx. 8 ms/125 Hz) are added and the result is divided by the correction factor 8. The analog inputs are sampled with 15-bit resolution and are available in the process image as a millivolt value (0 to 10000).

If your signal is too severely affected by noise, you can set a moving average filter for the analog inputs. This filter ensures that potential disturbance values such as measurement noise are filtered out of your sensor’s signal.

Note: If you use the moving average filter, the maximum frequency that can be detected is reduced. The signal’s bandwidth is reduced as a result.


A system ground (GND) is available for the analog inputs. This ensures that all connections have the same reference level for the measurements. Connect the system ground with low impedance.

If you do not connect the system ground, your output values may be distorted.

ESD Protection

Each analog input is high impedance with a 100-kΩ input resistance and has a hardware filter with a cut-off frequency of 1.5 kHz. Each input is also protected against ESD pulses with a protective diode.

Note: Do not connect voltages over 33 V to the analog inputs. That would destroy the protective diodes that protect your device from ESD pulses, or cause a short circuit that would destroy your analog input.


Number Left

Number Right


Analog input 8



Analog input 7

System GND



System GND

Analog input 6



Analog input 5

System GND



System GND

Analog input 4



Analog input 3

System GND



System GND

Analog input 2



Analog input 1

Resistance and Current Measurement

Resistance and current measurements are not yet implemented in the software. At the moment you will need to derive these from a voltage measurement in the RevPi Core . How to do this is explained in examples B1 and B2.