신민섭gledel
Published

Adjust Resistance to Analog

This is a way to adjust resistance to analog.

BeginnerProtip610
Adjust Resistance to Analog

Things used in this project

Story

Read more

Schematics

analog_input(led)_0o0q7ISXxr.fzz

Code

Untitled file

Arduino
int led_pin = 11;
int input_value;
int brightness;

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

void loop(){
input_value = analogRead(A0);
brightness = map(input_alue, 0, 1023, 0, 255);
analogWrite(led_in, brightness);
}

Credits

신민섭

신민섭

5 projects • 3 followers
My name is minseop ,i`m a student at Bongilcheon High School. And I`m interested in math and science.
gledel

gledel

100 projects • 115 followers
Looking back on my childhood, I was happy when I was making something and I was proud of myself. "Making is instinct!"

Comments