{"id":114,"date":"2026-03-12T02:14:29","date_gmt":"2026-03-12T02:14:29","guid":{"rendered":"https:\/\/shop.zynoxweb.in\/?p=114"},"modified":"2026-03-12T02:14:29","modified_gmt":"2026-03-12T02:14:29","slug":"arduino-variable-resistor-potentiometer-control","status":"publish","type":"post","link":"https:\/\/shop.zynoxweb.in\/?p=114","title":{"rendered":"Arduino Variable Resistor (Potentiometer) Control"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>A <strong>variable resistor (potentiometer)<\/strong> allows you to control voltage levels manually. In this project, we use a potentiometer to control LED brightness using Arduino PWM.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Components Required<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Arduino Uno R3<\/li>\n\n\n\n<li>Potentiometer (10K)<\/li>\n\n\n\n<li>LED<\/li>\n\n\n\n<li>220\u03a9 resistor<\/li>\n\n\n\n<li>Breadboard<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Circuit<\/h2>\n\n\n\n<p>Potentiometer connections:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Left pin \u2192 <strong>5V<\/strong><\/li>\n\n\n\n<li>Right pin \u2192 <strong>GND<\/strong><\/li>\n\n\n\n<li>Middle pin \u2192 <strong>A0<\/strong><\/li>\n<\/ul>\n\n\n\n<p>LED connections:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>LED positive \u2192 <strong>Pin 9<\/strong><\/li>\n\n\n\n<li>LED negative \u2192 <strong>220\u03a9 resistor \u2192 GND<\/strong><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Arduino Code<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">int potPin = A0;<br>int ledPin = 9;void setup() {<br>  pinMode(ledPin, OUTPUT);<br>}void loop() {<br>  int value = analogRead(potPin);<br>  int brightness = map(value, 0, 1023, 0, 255);  analogWrite(ledPin, brightness);<br>}<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">How It Works<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>analogRead()<\/code> reads the potentiometer value<\/li>\n\n\n\n<li>The value ranges from <strong>0\u20131023<\/strong><\/li>\n\n\n\n<li><code>map()<\/code> converts it to <strong>0\u2013255<\/strong><\/li>\n\n\n\n<li><code>analogWrite()<\/code> controls LED brightness using PWM<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>This project demonstrates:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Analog input reading<\/li>\n\n\n\n<li>PWM output control<\/li>\n\n\n\n<li>Variable brightness adjustment<\/li>\n<\/ul>\n\n\n\n<p>It is a fundamental Arduino project used in <strong>motor control, dimmers, and sensor systems<\/strong>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction A variable resistor (potentiometer) allows you to control voltage levels manually. In this project, we use a potentiometer to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-114","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/shop.zynoxweb.in\/index.php?rest_route=\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shop.zynoxweb.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shop.zynoxweb.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shop.zynoxweb.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shop.zynoxweb.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=114"}],"version-history":[{"count":1,"href":"https:\/\/shop.zynoxweb.in\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions"}],"predecessor-version":[{"id":121,"href":"https:\/\/shop.zynoxweb.in\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions\/121"}],"wp:attachment":[{"href":"https:\/\/shop.zynoxweb.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shop.zynoxweb.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shop.zynoxweb.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}