Yun Jin Yonggledel임동교
Published © GPL3+

Innovation Lab #1 Rotary Potentiometer LED

A Bongilcheon High School Innovation Lab project for brightness control.

BeginnerShowcase (no instructions)10 minutes956
Innovation Lab #1 Rotary Potentiometer LED

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Breadboard (generic)
Breadboard (generic)
×1
Rotary potentiometer (generic)
Rotary potentiometer (generic)
×1
LED (generic)
LED (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Potentiometer_LED

Potentiometer_LED

Code

Potentiometer_LED

Arduino
Control the brightness of the LED by turning the potentiometer.
int ledPin = 11;
int sensorPin = 0;

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

void loop() {
  int sensorValue;
  sensorValue = analogRead(sensorPin);
  analogWrite(ledPin, sensorValue/4)
}

Credits

Yun Jin Yong
6 projects • 10 followers
Contact
gledel
100 projects • 116 followers
Looking back on my childhood, I was happy when I was making something and I was proud of myself. "Making is instinct!"
Contact
임동교
0 projects • 12 followers
Contact

Comments

Please log in or sign up to comment.