How to read analog converted value 18bit => 262143

I want to read analog value with 18 bit resolution . means 10v=262143. how can i read?


Ganesh Datt Joshi
Ganesh Datt Joshi
| 1 1 2
Asked on 11/15/16, 3:18 PM

After trying a lot i did not get succes to get 18 bit resolution raw data. i got 4096 evertime.
kindly help if possible.

Ganesh Datt Joshi
on 12/23/16, 4:25 AM

Hi Ganesh, 

That's a good point, i have updated our github documentation as follows:

Please note that the output of the Indio.analogRead() in RAW mode is not of the type INTEGER, but FLOAT. The output range is fixed from 0 to 4096 for all resolutions, but only in 12-bit mode this returns integers; for higher resolution the measurements are floating point numbers.

So you can easily change the resolution setting without having to change your data handling as the range is independent of resolution. Just make sure to use FLOAT type to read your inputs.


| 0 0 1
Answered on 11/18/16, 5:25 AM

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Keep Informed

About This Forum

This community is for professionals and enthusiasts of our products and services.

Read Guidelines

Question tools

29 follower(s)


Asked: 11/15/16, 3:18 PM
Seen: 473 times
Last updated: 12/23/16, 4:25 AM