Hello,
can you please help me with setting of scale for measuring voltage? Now is there default value 0.439453125, but I am not able to measure 3V with this scale, so I want to set 1.000 or just higher than default. But your manual here :How to Use ADC on Torizon OS | Toradex Developer Center for this is little bit different. I don’t have so many files on my board. So how to do that?
I have revision 1.3A for Ixora and 1.1A for Apalis. Everything is up to date.
The maximum ADC input voltage is 1.8V. Applying 3V to an ADC pin can damage the SOC!
Please use a voltage divider based on resistors or an operational amplifier (OpAmp) to adjust the voltage you are measuring to the 0-1.8V range.
The ‘in_voltage_scale’ is not updateable; it simply displays the system scale for the ADC. To obtain the actual voltage in mV, you need to take the raw voltage reading and multiply it by the scale value.
In the case of using a voltage divider, you will also need to multiply the actual voltage measured by the ADC by the division coefficient