กลับไปหน้ารวมไฟล์
led-controller-using-potentiometer-51ed7d-en.md

Small and easy to understand LED controller using potentiometer.

All the pictures and files you need can be found further down. I hope everyone likes the new version I have made, and if you do please show me some respect by hitting the thumbs up so that more people can find this project. =)

(Be careful to connect everything correctly so that you don't accidentally break anything!)

EXPANDED TECHNICAL DETAILS

Analog-to-Digital Intensity Control

This project explores the foundations of PWM (Pulse-Width Modulation) by using a physical knob to control the brightness or transition-speed of an LED.

  • ADC High-Resolution Sampling: The Arduino captures the analog voltage (0V-5V) from a potentiometer. The firmware maps this 10-bit range (0-1023) to an 8-bit PWM duty cycle (0-255).
  • Logarithmic Brightness Mapping: (Advanced version) Because human eyes perceive light logarithmically, the Arduino uses a "Gamma Correction" lookup table, ensuring that the LED appears to brighten and dim smoothly as you turn the knob.

Prototyping

  • Verified with Arduino IDE: Optimized for 100% stability, with a software "Hysteresis Filter" that prevents the LED from flickering when the potentiometer is at rest.

ข้อมูล Frontmatter ดั้งเดิม

title: "LED Controller using Potentiometer"
description: "A easy to understand  LED Controller projekt"
author: "sweden_duck"
category: "Lights & LEDs"
tags:
  - "Arduino User Group"
  - "Lights"
views: 131
likes: 0
price: 435
difficulty: "Easy"
components:
  - "1x Electrolytic Capacitor 100 uF"
  - "1x LED, Green"
  - "3x 220 resistor"
  - "1x LED, Yellow"
  - "1x 10 jumper wires 150mm male"
  - "1x 10kOhm potentiometer"
  - "1x Arduino UNO R3 - Made in italy"
  - "1x LED, Red"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "1ac74b82dd68eee1772ad797a353962a061aa2274ac0ec4d41c8a8fbfcec72e4"
encryptedPayload: "U2FsdGVkX18dibZJEZN/ieqCTgdLrR6ATG3L9jKFqFbg+zUzVaSPuc88HXnmtv8DNWIUg4D9IYcvdnj6YwBzhmwsgEkpomUFemfPlWIa+Tc="
seoDescription: "Learn how to build an LED Controller using a Potentiometer with Arduino. Perfect for beginners and DIY projects."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/led-controller-using-potentiometer-51ed7d_cover.jpg"
lang: "en"