Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
idk
Published

Arduino uno blinker

This is a Arduino uno blinker.

BeginnerProtip1 hour167
Arduino uno blinker

Things used in this project

Story

Read more

Schematics

screenshot_2023-10-13_162455_QBkbGNTQoY.png

put the long end of the led in the GND and the short end in 13

Code

Code

Arduino
just paste it
const int ledPin = 13;

void setup() {
  Serial.begin(9600);
  pinMode(ledPin, OUTPUT);
}

void loop() {
 static int delayPeriod = 100;
  int countDir = 1;
  
digitalWrite(ledPin, HIGH);
delay(delayPeriod);
digitalWrite(ledPin, LOW);
delay(delayPeriod);



delayPeriod += 000.8 * countDir;
Serial.print("New Wait Time : ");
Serial.println(delayPeriod);
}




    


    
 

Credits

idk
3 projects • 0 followers
i like science and hardware hacking and robots and rockets
Contact

Comments

Please log in or sign up to comment.