Working with a Potentiometer and an LED

Working with a Potentiometer and an LED © GPL3+

Use of a potentiometer to control brightness of an LED.

  • 213 views
  • 0 comments
  • 0 respects

Components and supplies

Apps and online services

About this project

Abstract

  • This project demonstrates working with a potentiometer.

Also visit here.

Objective

  • To control the brightness of a LED using potentiometer.
Working with a Potentiometer

Code

CodeArduino
const int analog_ip = A0;
const int LED = 3;
int inputVal = 0;

void setup() {
  pinMode (LED, OUTPUT);
}

void loop() {
  inputVal = analogRead(analog_ip);
  analogWrite (LED, inputVal/4);
  delay(100);
}

Schematics

Circuit Diagram
Workingwithpotentiometerandled etoscp220i
Schematic Diagram
Workingwithpotentiometerandled pshjuace3w
Breadboard Diagram
Workingwithpotentiometerandled kbdp9mb0rq

Comments

Similar projects you might like

Working with Shift Register

by SBR

  • 3,561 views
  • 2 comments
  • 8 respects

Bluetooth control led with lcd led status display real time.

Project tutorial by Youssef Sabaa

  • 27,086 views
  • 4 comments
  • 51 respects

Control LED By Clap Using Arduino and Sound Sensor

by IoTBoys

  • 81,682 views
  • 20 comments
  • 45 respects

Ambient Light Sensor Using Photo Resistor and LED Lights!

Project tutorial by DCamino

  • 9,061 views
  • 9 comments
  • 21 respects

LED Blinkies: Arduino Basics

by Alex Glow

  • 12,206 views
  • 3 comments
  • 25 respects

LED Cube

Project tutorial by Praditha Alwis

  • 9,946 views
  • 0 comments
  • 17 respects
Add projectSign up / Login