How can i minitor voltages on apalis imx6?

How can i minitor voltages on apalis imx6?


Does this article on the developer website answer your question?


No above article i am unable to get voltage.
please suggest me related answer

  • 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.

i have connected 3.3v supply to AN1_ADC0.
and i tried following:

cat /sys/bus/iio/devices/iio:device0/in_voltage4_raw

cat /sys/bus/iio/devices/iio:device0/in_voltage_scale
cat: read error : Invalid argument

how can i read in_voltage_scale ??

which bsp version are u using? I tried the cat /sys/bus/iio/devices/iio\:device0/in_voltage_scale and this is working for me.

hi jaski,
i am using bsp v2.7

can you give me the exact name of the bsp file you flashed?

hi jaski,
sorry for dealy,

i flashed below bsp version and kernel branch
bsp V2.7

So you did your own build. Did you change anything (device tree, …) for the compilation?