Back to Shop
Rotating Module
ACCESSORIES In Stock (30 available)

Rotating Module

☆☆☆☆☆
(0.0 / 5.0) • 0 Reviews
Price: ৳59
🔥 ... shoppers are viewing this product right now!

Product Description

<p>Characteristics:</p>
<p>•High quality rotary electric appliance, stable performance smooth movement</p>
<p>•Output 0 - VCC analog voltage signal</p>
<div>
<p>Specification:</p>
<p>1.Size: 26*20mm</p>
<p>2.Weight: 5g</p>
<p>3.Voltage: 3.3V, 5V</p>
<p>4.Port: Analog</p>
<p>5.Resistance: 100K</p>
<p>6.Rotation angle: 270 degrees</p>
<p>7.Platform:  Arduino, MCU, ARM, Raspberry Pi</p>
<p>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.</p>
<p>const int led = 9;           // the pin that the LED is attached to</p>
<p>int brightness = 0;    // how bright the LED is</p>
<p>void setup()  {</p>
<p>// declare pin 9 to be an output:</p>
<p>pinMode(led, OUTPUT);</p>
<p>}</p>
<p>void loop()  {</p>
<p>brightness = analogRead(A0); //use A0 to read the electrical signal</p>
<p>brightness = map(brightness, 0, 1023, 0, 255);</p>
<p>// set the brightness of pin 9:</p>
<p>analogWrite(led, brightness);</p>
<p>}</p>
</div>

Customer Reviews & Ratings

0

☆☆☆☆☆

Product Rating

Based on 0 active reviews

Write a Review

No reviews yet

Be the first customer to write a review for this product!

Related Components & Kits

..., ... থেকে

...

এইমাত্র অর্ডার করেছেন • ...