Rotary potentiometer potentiometer module electronic building block analog knob module rotary encoder module

$0.21


  • 2 or more $0.21
- +
This product has a minimum quantity of 2





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 productsrotary coding module
ApplicationPotentiometer module
Brandother
Dimensions25*21mm
Power consumption0.1
Protection level0

Write a review

Note: HTML is not translated!
Bad Good

Tags: Rotary, potentiometer, module, electronic, building, block, analog, knob, rotary, encoder