How can i minitor voltages on apalis imx6?

  • Connect the voltage to the AN1_ADC0 pin. (Allowed voltage range 0…3.3V).
  • Read the file /sys/bus/iio/devices/iio:device0/in_voltage4_raw.
  • The number read represents the voltage measured.

  • The file /sys/bus/iio/devices/iio:device0/in_voltage_scale contains the multiplier to get from the raw ADC value to the voltage in milli volt.