Very easy timer using Arduino UNO

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Thanks man, your project gave me initial kick to start my project.

chanakyashukla
Автор

For those of you who don't know uno means one in Italian

daddyo
Автор

Really good helpful vid ruined by adding music which adds nothing to content other than distraction.

isoguy.
Автор

Code:int ledPin = 13;
int ledend = 12;
unsigned long time;



void setup(){
pinMode(ledPin, OUTPUT);
pinMode(ledend, OUTPUT);
Serial.begin(9600);
}
void loop(){
digitalWrite(ledPin, HIGH);
Serial.print("Time: ");
time = millis();
Serial.println(time);
delay(500);
if (time > 15000) {
Serial.print ("Timer has ended ");
digitalWrite(ledend, HIGH);
} else;
digitalWrite(ledPin, LOW);
delay (500);
}

onlyelectronics
Автор

Thank you for posting your video and code, its been most helpful. I would like to ask for your help as I'm a Neophyte to Arduino coding. My question is in Three Parts. 1st. What must be changed in your sketch to stop Pin 13 LED from blinking once it has blink for the time note to blink. 2nd. What additional coding needs to be added to keep Pin 12 LED on for 90 seconds (example) then turn off once the time on has been reached. 3rd. Once pin 12 LED is turn off what code should be added to blink Pin 13 once more, but turn off at the end of the time has been reached. I am trying to build a project for my Great Niece's as a gift. Once Pin 12 turn on it will power a Animated Music Box. I would greatly appreciate any help or direction to a website which may be able to help me. Thank you for posting your informative video. As the Philosopher once wrote: “The more we share, the more we learn”

salc
Автор

The timer does not rest. it keeps counting. So it works only one time, you know the code to reset it?

thelazycat_
Автор

millis() will not keep track of the time once delay() is called try to eliminate delay() in code

_ninjax
Автор

'Serial' was not declared in this scope. HELP!!

Gaminger-zohf
Автор

can we make the timer like turn on and of in a specific time, in hours? I am talking about turn on for 12 hours and then off for 12 hours.

crieliocriel
Автор

is it possible if i add a buzzer to it?

jihafiqagee
Автор

You can also add a peizo buzzer right...If so, how do you do it

alifyafaizee
Автор

Thx really much thats what i need i know date : P

xSpeed
Автор

wow this sucks the code dosent even work

wicked
Автор

Can any body tell how to blink 4 LED ON at same time but off LED1 after 30sec
2 after 1min
3 after 2min
4 after 5min

NitroPcb