Rotary potentiometer potentiometer module electronic building block analog knob module rotary encoder module
$0.21
- 1688 Link: View 1688 Product
- Product Code: EPCS8757
- Availability: In Stock
- 2 or more $0.21
Analog output voltage of 0-5V, requiring AD conversion
Rotary Potentiometer Analog Knob Module
Characteristics:
•High grade rotary electric appliance, stable performance smooth movement
•Output 0 - VCC analog voltage signal
Specification:
1.Size: 26*20mm
2.Weight: 5g
3.Voltage: 3.3V, 5V
4.Port: Analog
5.Resistance: 100K
6.Rotation angle: 270 degrees
7.Platform: Arduino\MCU\ARM\Raspberry-Pi
Connect the S port of the rotating potentiometer electronic block to the A0 end of the Arduino-plate,and use the following program to read its simulation value.Through the simulation value to set the LED brightness.
const int led = 9; // the pin that the LED is attached to
int brightness = 0; // how bright the LED is
void setup() {
// declare pin 9 to be an output:
pinMode(led, OUTPUT);
}
void loop() {
brightness = analogRead(A0); //use A0 to read the electrical signal
brightness = map(brightness, 0, 1023, 0, 255);
// set the brightness of pin 9:
analogWrite(led, brightness);
}
Product Info | |
Applicable products | rotary coding module |
Application | Potentiometer module |
Brand | other |
Dimensions | 25*21mm |
Power consumption | 0.1 |
Protection level | 0 |
Tags: Rotary, potentiometer, module, electronic, building, block, analog, knob, rotary, encoder