김은지gledel
Published

Analog OUTPUT

Analog output is possible using pins 3, 5, 6, 9, 10, and 11 of arduino uno. The LED is getting brighter and off again and again.

BeginnerWork in progress2,151
Analog OUTPUT

Things used in this project

Story

Read more

Schematics

Analog OUTPUT

Code

Analog OUTPUT

Arduino
int led_pin = 11;

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

void loop(){
analogWrite(led_pin, 0);
delay(1000);
analogWrite(led_pin, 80);
delay(1000);
analogWrite(led_pin, 160);
delay(1000);
analogWrite(led_pin, 255);
delay(1000);
}

Credits

김은지
6 projects • 0 followers
I am a high school student in Korea.
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!"

Comments