<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									How to use Arduino to read values from a potentiometer? - Arduino				            </title>
            <link>https://forum.etechnophiles.com/arduino/how-to-use-arduino-to-read-values-from-a-potentiometer/</link>
            <description>Hi,
Welcome to the eTechnophiles forum. 
Got a question like, \&#039;What resistor value to choose for your simple LED project\&#039; OR \&#039;Where is the resistor connected to the inbuilt LED in Arduino UNO\&#039;s schematic\&#039; - All will be answered here. 
Feel free to check out the topics below.</description>
            <language>en-US</language>
            <lastBuildDate>Sun, 12 Apr 2026 16:04:17 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Answer to: How to use Arduino to read values from a potentiometer?</title>
                        <link>https://forum.etechnophiles.com/arduino/how-to-use-arduino-to-read-values-from-a-potentiometer/#post-505</link>
                        <pubDate>Sat, 28 Jun 2025 07:40:25 +0000</pubDate>
                        <description><![CDATA[There are many tutorials available online on interfacing a potentiometer with Arduino, explaining this in depth.Still, I will cover this quickly:A typical potentiometer has 3 pins:

One si...]]></description>
                        <content:encoded><![CDATA[<p>There are many tutorials available online on interfacing a potentiometer with Arduino, explaining this in depth.<br />Still, I will cover this quickly:<br /><br />A typical potentiometer has 3 pins:</p>
<ul>
<li>One side pin goes to GND</li>
<li>The other side pin goes to 5V</li>
<li>The middle pin (wiper) connects to an analog input pin, like A0 on your Arduino</li>
</ul>
<p>This setup allows the potentiometer to act as a voltage divider, and the middle pin will give you a variable voltage between 0V and 5V as you turn the knob.<br /><br />Upload this program:</p>
<pre contenteditable="false">const int potPin = A0;  

void setup() {
  Serial.begin(9600);  
}

void loop() {
  int potValue = analogRead(potPin);  // Read value (0–1023)
  Serial.println(potValue);           // Output the value to Serial Monitor
  delay(100);                         // Small delay for readability
}
</pre>
<p><br />Once the code is uploaded, open the Serial Monitor. As you turn the knob, you’ll see values between 0 and 1023:</p>
<ul>
<li>Close to 0 when turned all the way to one side(towards GND)</li>
<li>Close to 1023 when turned to the opposite side(towards 5V)</li>
<li>Around 512 when centered</li>
</ul>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.etechnophiles.com/arduino/">Arduino</category>                        <dc:creator>Admin</dc:creator>
                        <guid isPermaLink="true">https://forum.etechnophiles.com/arduino/how-to-use-arduino-to-read-values-from-a-potentiometer/#post-505</guid>
                    </item>
				                    <item>
                        <title>How to use Arduino to read values from a potentiometer?</title>
                        <link>https://forum.etechnophiles.com/arduino/how-to-use-arduino-to-read-values-from-a-potentiometer/#post-471</link>
                        <pubDate>Sat, 07 Jun 2025 05:47:07 +0000</pubDate>
                        <description><![CDATA[I have a potentiometer and want to use it to control a component like an LED or motor eventually, but for now, I just want to read its values in the Serial Monitor using Arduino. How should ...]]></description>
                        <content:encoded><![CDATA[I have a potentiometer and want to use it to control a component like an LED or motor eventually, but for now, I just want to read its values in the Serial Monitor using Arduino. How should I wire it, and what code should I use?]]></content:encoded>
						                            <category domain="https://forum.etechnophiles.com/arduino/">Arduino</category>                        <dc:creator>catElectronics</dc:creator>
                        <guid isPermaLink="true">https://forum.etechnophiles.com/arduino/how-to-use-arduino-to-read-values-from-a-potentiometer/#post-471</guid>
                    </item>
							        </channel>
        </rss>
		