This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
university:tools:python-tutorial:tutorial3-potentiometer [12 Sep 2019 20:12] – [Activity: Potentiometer] Doug Mercer | university:tools:python-tutorial:tutorial3-potentiometer [03 Nov 2021 20:41] (current) – [Activity: Reading a Potentiometer] Doug Mercer | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Activity: | + | ======Activity: |
=====Objective: | =====Objective: | ||
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. |