ADC Linux iMX6

Dear Community;

When I change directory to cd /sys/bus/iio/devices/iio:device0/ and I read in_voltage4_raw for example, what is what I am getting back? I suppose they are points of resolution. Are they?


HI @Andermutu

Could you provide the version of the hardware and software of your module?

The Resolution of the ADC can be found here. You are getting the voltage in 12bit scaled to 3.3V.

Best regards, Jaski

Hi @jaski.tx ,

I am using Iris carrier board 1.2A, Colibri IMX6S 256MB RAM with Linux LXDE 2.7b4 image.

Thanks you.

Colibri iMX6/T30 and Apalis iMX6/T30 has on-board ADC chip STMPE811. The STMPE811 supports up to 8 analogue inputs win 12 bit resolution. Input 1-4 are used for the resistive touchscreen interface.
When you do read from “in_voltageX_raw” you just get direct value of STMPE811 12bit data register.
Since reference voltage is 3.3V raw value of 0xFFF represents 3.3V.