This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
university:tools:python-tutorial:tutorial3-potentiometer [12 Sep 2019 20:12] – [Activity: Potentiometer] Doug Mercer | university:tools:python-tutorial:tutorial3-potentiometer [12 Dec 2019 17:56] – [Background:] Doug Mercer | ||
---|---|---|---|
Line 16: | Line 16: | ||
To measure an input voltage on a channel first we must set the mode to high impedance: | To measure an input voltage on a channel first we must set the mode to high impedance: | ||
- | CHA.set_mode(' | + | CHA.mode = Mode.HI_Z |
- | Then we can acquire some number of input samples to a list ( in variable | + | Then we can acquire some number of input samples to a list ( in variable |
- | AnalogInA | + | ADsignal1 |
It will then be possible to add the 20 values and calculate an average for example. | It will then be possible to add the 20 values and calculate an average for example. |