I'm trying to read, through i2c and via python, values from a potentiometer using a very simple ADC, the MCP3021.
The datasheet claims 10 bits of precision but I can only get values from 0 to 15, which is you know, 4 bits of precision...
I was wondering if I'm doing something wrong here.
Here is the very simple class I use for that : https://gitlab.com/antoine.letouzey/boo ... ter/pot.py
The important line is l.23 where I read the data.
Any guess ?
I'm not a hardware expert so if you need more information just let me know.