Leesounghoongledel
Published

Arduino (FabLab)

I learned arduino at school how to use analogWrite code and disitalWrite code to control the LED

BeginnerProtip15 minutes760
Arduino (FabLab)

Things used in this project

Story

Read more

Schematics

Schematic

It is a circuit that is executed by arduino code

Code

control LED

Arduino
It was turn on LED and It is controlling to Brightness of LED
int i = 9;
void setup(){
pinMode(9, OUTPUT);

}
void loop() {
  
 analogWrite(i, 10);
delay(100);
analogWrite(i, 20);
delay(100);
analogWrite(i, 30);
delay(100);
analogWrite(i, 40);
delay(100);
analogWrite(i, 60);
delay(100);
analogWrite(i, 60);
delay(100);
analogWrite(i, 70);
delay(100);
analogWrite(i, 80);
delay(100);
analogWrite(i, 90);
delay(100);
 analogWrite(i, 100);
 delay(100);
analogWrite(i, 90);
delay(100); 
analogWrite(i, 80);
delay(100);
analogWrite(i, 70);
delay(100);
analogWrite(i, 60);
delay(100);
analogWrite(i, 50);
delay(100);
analogWrite(i, 40);
delay(100);
analogWrite(i, 30);
delay(100);
analogWrite(i, 20);
delay(100);
 }

Credits

Leesounghoon
9 projects • 4 followers
Hi my name is sung hoon lee. I`m a student at Bongilcheon High School. I want to learn 3D Printing and how to use arduino code(+python code)
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