1📖💪Potentiometer

 

Fundamental Circuit Tutorial
Potentiometer Circuit Tutorial

Standard circuit to detect potentiometer positions.

Button Component Button Component
Datasheet Wharehouse
A2D
 
 
 
 
 
 

Instructions

Schematic

Program code

 Download the following example.

' Reading Analogue Devices
' Potentiometer.txt
' Kic8 

  ' Our example assumes your device is conncted to ADC1
  SYMBOL MyDevice = 1

DO

  ' Read Analogue into Variable W0
  ' at the end of the reading, the variable W0 
  ' will have a value in the range 0..1024 (decimal)

  A2D MyDevice , W0

LOOP