This repository has been archived by the owner. It is now read-only.

Shunt resistor values are shifted by 1 #14

Open
ptitiano opened this Issue May 16, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@ptitiano

ptitiano commented May 16, 2018

Depending on configurations (i.e. depending on inserted probes), the shunt resistor values are not the right one. Populating a cape with probes with different values for each slot, we could determine that the first slot always use the default value (10mohm) and the next ones are shift by 1 (slot 2 uses the shunt resistor value of slot 1, and so on).
This can be highlighted using special shunt resistor with respective values of 1,2,3,4,5,6,7,8 inserted in corresponding slots 1,2,3,4,5,6,7,8 (as labelled on the cape) and run a loop showing values, as below :

root@baylibre-acme:~# for probe in 0 1 2 3 4 5 6 7
    > do
    > cat /sys/bus/i2c/devices/1-004$probe/iio:device*/in_shunt_resistor
    > done
    10000
    1
    2
    3
    4
    5
    6
    7
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.