"A potentiometer is a
three-terminal resistor with a sliding or rotating contact
that forms an
adjustable voltage divider.
(wikipedia)
In synths, usually terminal 3 is connected to ground.
They come in lots of shapes and sizes.
Eg Slider, thumb, trim pots.
Sliders are often called faders.
-----------------------------------------------------------
Trimpots come in lots of shapes too.
They are meant for fine tuning, and to be adjusted infrequently.
----------------------------------------------------------------------------
There are two main types of pots:
1. Logarithmic or audio (A)
2. Linear (B)
Linear
The resistance between the contact (wiper) and one end terminal is proportional to the distance between them. ... ie the angle of shaft rotation is proportional to the resistance.
Used mainly for CV (control voltage) pots
Logarithmic
The resistive element follows a logarithmic taper.
Used alot in audio pots.
----------------
// set up variables
int myVoltPin=A2;
int readVal;
float V2;
int delayT=250;
void setup()
{
Serial.begin(9600);
}
void loop()
{
readVal=analogRead(myVoltPin);
V2=(5./1023.)*readVal;
// converts to a voltage -- remember to place the decimal
// points after the 5 & 1023 ... these may be floating points
Serial.println(V2);
delay(delayT);
}
---------------------------------
No comments:
Post a Comment