This document is structured as follows:
Motivation (글 작성 계기)
How to use (사용법)
Specification (기본 사양)
let’s start.
Motivation
There was no post about 5 pin potentiometer.
Never before has there been such a thing.
Before you read
After you read it, you will be able to perform the following tasks
basic instruction for 5 pin potentiometer
Requirement)
basic Arduino C++ knowledge
basic circuit wiring
How to use
Pin Configuration (5pin)
number | role |
1 | VCC |
2 | SIGNAL |
3 | GND |
4 | Switch |
5 | Switch |
Fortunately, the difference between the 5-pin and 3-pin is that the 5-pin has 2 addtional pins for the switch.
Example
basic Code (Arduino) for Voltage Divider
wiring
number | role | Arduino |
1 | VCC | VCC |
2 | SIGNAL | A0 |
3 | GND | GND |
4 | Switch | x(optional) |
5 | Switch | x(optional) |
code
#define basic A0
void setup() {
Serial.begin(19200);
}
void loop() {
int val = analogRead(basic);
Serial.println(val);
}
result of serial monitor)
0~ 1023
Using the Switch
wiring
number | role | Arduino |
4 | Switch | one side of the switch circuit |
5 | Switch | other side of the switch circuit |
Specification
Maximum Resistance: 10 kΩ
Resistance Tolerance: ±20%
Rated Power: 0.05 W
Residual Resistance: 20 Ω
Variable Noise: 100 mV
Breakdown Voltage: 250 V AC for 1 minute
Tracking Error: -40 dB to 0 dB ±3 dB Max
Rotation Angle: 300˚ ±5˚
Switch Rated Voltage: 12 V
Inside
The resistance between pins 1 and 3 is 250k ohms. As you rotate pin 2, the resistance between pins 1 and 2, and between pins 2 and 3, changes accordingly, adjusting the overall resistance.