Digital Clock Using Arduino ||TINKERCAD
HTML-код
- Опубликовано: 26 авг 2024
- In this video, I gonna show you how to make a Digital Clock using An Arduino and a 16*2 LCD display. The display shows the time as well as the calendar of the year Hope you enjoy this video.
Source Code »
drive.google.c...
Schematic »
drive.google.c...
Simulation Link »
www.tinkercad....
Link For Source code ►
drive.google.com/drive/folders/1UnyrzZNO9ncReGZeZI6-5Sjgs-Ajuwhm?usp=sharing
Your video is great but I am confusing the code.
brother tell us more about code.
We are not that much genius to understand the code.
Why the code gets error
Please copy code from simulation
thank you sooooooooo much, bro. Now I am confident that i will get star performance award in Advanced Electronics course.
All the best.
@@technicalshubham789 thxma guy
So good video, wish I can be as cool as TECHNICAL SHUBHAM 😌
Works perfectly! Have to hold set button for a sec before editing. Have to do a little tweaking for breadboard usage. Great build!
please can you make smart watch project including all necessary things like solar system ,bluetooth etc.
Can you explain the code ?
it helps me alot
keep it up from pakistan
“Hello, thank you so much for your encouragement and feedback. I’m glad you found the video useful and informative. It’s great to hear from you and to know that you are watching from Pakistan. Stay safe and stay tuned for more videos coming soon!”
I can’t set the time
Can you pls explain the advantage of using digital clock.
This Source code dont open pleace can you send me this code?
cual es el codigo
Where is the code that permit put big numbers in LCD 16x2
thanks so much
but there is a small problem that sometimes the set pushbutton doesn't work even in the simulation link
Sometimes it happens i also face the same issue but the problem is in simulation not in circuit. When you make the hardware it works smoothly. ..
Hey same prblm with me :(
Even some time up pushbutton didn't work properly. 😕
Thannnnnnkkk youuuu muchhh moreeee🎉
It is working but the up and down button are not working thankyou so much for supporting to develop skills
Yo was wondering if you could do a video where you explain the code i am doing this for an assignment
Can i get the explanation how to explain in viva?
mujhe bas tinkercad mein submit karna hai yeh project push button kaam nhi kar rahi hai ..kya karu samne sir ko dikhana hai explain karna hai..pls koi solution batao
I think there might be a problem to the code, as ive rewatched the video mutiple times and it still does not work. Every wire is placed right, but it just wont change the time no matter if i press the buttons.
I'm sorry to hear that you're experiencing difficulties with the code despite following the instructions and checking the wiring. Sometimes errors can occur in coding, and it can be frustrating when things don't work as expected.
check the connection again and also code for better understanding..🙂
The clock is appearing but it not start to running plz help me
Please do simulation as I said
i havent got how the date was showing i m misconcepted at where the date was & where was the month& year
bro please also do the project of smart home say for example Alexia with codes.
it gives an error
muito bom ficou top de mais, obrigado pelo tutorial
THANK-YOU SO MUCH .🏆
can u explain the code and future scope??
it is not working
Is this clock still accurate on a larger scale (no discrepancy this and true time after months?)
que asombroso proyecto me gusta mucho
¡Gracias por tu apoyo! Me alegra que te haya gustado el proyecto. Si tienes más preguntas o comentarios, ¡no dudes en compartirlos!
Its not working
can anyone tell me what is the "s" in the variable stand for ?
Thx but the time wont change if i press the buttons. when it does want to work it goes 30 at a time. its driving me CRAZY. Please help. Thx
Thinkercad having some lagging issue that's why buttons not works properly. If you want I will send you the same data files for you ..
Than you very much brother
Design and implement 2 bit magitude comparator using both NAND and NOR
CODE PLSS
not working):
code please !!
www.tinkercad.com/things/1jMWzCrQL1i
what is the vlaue for resistor
1k
Can you share the code please?
// include the library
#include
// initialize the interface pins
LiquidCrystal lcd(2,3,4,5,6,7);
int s,m,h,a,d,state,state1,state2,dg,cnt,dt,mo;
char months[13]={' ','1','2','3','4','5','6','7','8','9','o','n','d'};
int l[13]={0,31,29,31,30,31,30,31,31,30,31,30,31};
// the 8 arrays that form each segment of the custom numbers
byte bar1[8] =
{
B11100,
B11110,
B11110,
B11110,
B11110,
B11110,
B11110,
B11100
};
byte bar2[8] =
{
B00111,
B01111,
B01111,
B01111,
B01111,
B01111,
B01111,
B00111
};
byte bar3[8] =
{
B11111,
B11111,
B00000,
B00000,
B00000,
B00000,
B11111,
B11111
};
byte bar4[8] =
{
B11110,
B11100,
B00000,
B00000,
B00000,
B00000,
B11000,
B11100
};
byte bar5[8] =
{
B01111,
B00111,
B00000,
B00000,
B00000,
B00000,
B00011,
B00111
};
byte bar6[8] =
{
B00000,
B00000,
B00000,
B00000,
B00000,
B00000,
B11111,
B11111
};
byte bar7[8] =
{
B00000,
B00000,
B00000,
B00000,
B00000,
B00000,
B00111,
B01111
};
byte bar8[8] =
{
B11111,
B11111,
B00000,
B00000,
B00000,
B00000,
B00000,
B00000
};
void setup()
{
// assignes each segment a write number
lcd.createChar(1,bar1);
lcd.createChar(2,bar2);
lcd.createChar(3,bar3);
lcd.createChar(4,bar4);
lcd.createChar(5,bar5);
lcd.createChar(6,bar6);
lcd.createChar(7,bar7);
lcd.createChar(8,bar8);
state=1;
state1=1;
state2=1;
// sets the LCD's rows and colums:
lcd.begin(16, 2);
pinMode(8,INPUT);
pinMode(9,INPUT);
pinMode(10,INPUT);
s=0;
m=0;
h=0;
dt=1;
mo=1;
}
void custom0(int col)
{ // uses segments to build the number 0
lcd.setCursor(col, 0);
lcd.write(2);
lcd.write(8);
lcd.write(1);
lcd.setCursor(col, 1);
lcd.write(2);
lcd.write(6);
lcd.write(1);
}
void custom1(int col)
{
lcd.setCursor(col,0);
lcd.write(32);
lcd.write(32);
lcd.write(1);
lcd.setCursor(col,1);
lcd.write(32);
lcd.write(32);
lcd.write(1);
}
void custom2(int col)
{
lcd.setCursor(col,0);
lcd.write(5);
lcd.write(3);
lcd.write(1);
lcd.setCursor(col, 1);
lcd.write(2);
lcd.write(6);
lcd.write(6);
}
void custom3(int col)
{
lcd.setCursor(col,0);
lcd.write(5);
lcd.write(3);
lcd.write(1);
lcd.setCursor(col, 1);
lcd.write(7);
lcd.write(6);
lcd.write(1);
}
void custom4(int col)
{
lcd.setCursor(col,0);
lcd.write(2);
lcd.write(6);
lcd.write(1);
lcd.setCursor(col, 1);
lcd.write(32);
lcd.write(32);
lcd.write(1);
}
void custom5(int col)
{
lcd.setCursor(col,0);
lcd.write(2);
lcd.write(3);
lcd.write(4);
lcd.setCursor(col, 1);
lcd.write(7);
lcd.write(6);
lcd.write(1);
}
void custom6(int col)
{
lcd.setCursor(col,0);
lcd.write(2);
lcd.write(3);
lcd.write(4);
lcd.setCursor(col, 1);
lcd.write(2);
lcd.write(6);
lcd.write(1);
}
void custom7(int col)
{
lcd.setCursor(col+0,0);
lcd.write(8);
lcd.write(8);
lcd.write(1);
lcd.setCursor(col, 1);
lcd.write(32);
lcd.write(32);
lcd.write(1);
}
void custom8(int col)
{
lcd.setCursor(col, 0);
lcd.write(2);
lcd.write(3);
lcd.write(1);
lcd.setCursor(col, 1);
lcd.write(2);
lcd.write(6);
lcd.write(1);
}
void custom9(int col)
{
lcd.setCursor(col, 0);
lcd.write(2);
lcd.write(3);
lcd.write(1);
lcd.setCursor(col, 1);
lcd.write(7);
lcd.write(6);
lcd.write(1);
}
void printNumber(int value, int col) {
if (value == 0) {
custom0(col);
} if (value == 1) {
custom1(col);
} if (value == 2) {
custom2(col);
} if (value == 3) {
custom3(col);
} if (value == 4) {
custom4(col);
} if (value == 5) {
custom5(col);
} if (value == 6) {
custom6(col);
} if (value == 7) {
custom7(col);
} if (value == 8) {
custom8(col);
} if (value == 9) {
custom9(col);
}
}
void loop()
{
if(digitalRead(8)&&state==1){
cnt++;
state=0;
cnt=cnt%5;
}else if(!digitalRead(8)&&state==0){
state=1;
}
if (digitalRead(9)&&state1==1){
dg=1;
state1=0;
}else if(!digitalRead(9)&&state1==0){
state1=1;
}
if(digitalRead(10)&&state2==1){
dg=-1;
state2=0;
}else if(!digitalRead(10)&state2==0){
state2=1;
}
switch(cnt){
case 2:
m=m+dg;
dg=0; if(m>59){
m=0;}
if(m23){
h=h-24;}
if(hl[mo]){
dt=l[mo];}
if(dt12){
mo=1;
}
if(mol[mo]){
dt=1;
mo++;
mo=(1+(mo-1)%12);
}
break;
}
if(s>59){
s=0;
m++;
if(m>59){
m=0;
h++;
if(h>23){
h=0;
dt++;
if(dt>l[mo]){
dt=1;
mo++;
}
if(mo>12){
mo=1;
}
}
}
}
h=h;
d=(h)%10;
printNumber(d, 3);
d=(h)/10;
printNumber(d, 0);
d=m%10;
printNumber(d, 10);
d=m/10;
printNumber(d, 7);
lcd.setCursor(14, 0);
lcd.print(s/10);
lcd.print(s%10);
lcd.setCursor(13, 1);
lcd.print(months[mo]);
lcd.print(dt/10);
lcd.print(dt%10);
if(cnt==0){
s++;
lcd.setCursor(6, 0);
lcd.print(" ");
lcd.setCursor(6, 1);
lcd.print(" ");
lcd.setCursor(13,0);
lcd.print(" ");
delay(500);
lcd.setCursor(6, 0);
lcd.print(".");
lcd.setCursor(6, 1);
lcd.print(".");
lcd.setCursor(13,0);
lcd.print(":");
delay(500);
}}
Great man thanksssss a lottt
When I copy the code from your PDF file and paste it it misses some letters. Even after I spend my time rewriting it manually it still doesn't show the time on the clock. Fix your code and don't post it in PDF format.
I'll check and update the code
extremely helpful vd thxxx uuu .
Thank You for sharing your valuable feedback 💯
code plz.
code please
Bhai is sure doing this code😊
Can u please explain the code
Copy paste Kiya hai, isko thodi na pata hai code
@@soniyachauhan2491 he may have copy pasted it but he didnt said he dont know the code
where is a code?
Please provide the codes
how the hell can i get the code
It's a image at the link of source code in description
Where is code then
Please Check Simulation Link
Can I have a code for this
Link For Source code ►
drive.google.com/drive/folders/1UnyrzZNO9ncReGZeZI6-5Sjgs-Ajuwhm?usp=sharing
it didt work
Thanks man
thx
Can we make physical too?
Yesss..
@@technicalshubham789 thanks bro I made it today
Where's the code?
Link is in description also the simulation link is also there pls check
thank you very much
“Hi there, thank you so much for your kind words and support. I’m glad you enjoyed the video and found it helpful, I appreciate you and hope you have a wonderful day. Stay tuned for more videos coming soon!” :)
Provide me information about this project and it's application , working Principle, future Scope and literature review about this project
When we run the project LED is not working like it's showing blank
Can u plz tell us why it's happening
check the connection or check the source code
@@technicalshubham789 yaa it's working
can you share source code? the given link of source code is different.
www.tinkercad.com/things/1jMWzCrQL1i
// include the library
#include
// initialize the interface pins
LiquidCrystal lcd(2,3,4,5,6,7);
int s,m,h,a,d,state,state1,state2,dg,cnt,dt,mo;
char months[13]={' ','1','2','3','4','5','6','7','8','9','o','n','d'};
int l[13]={0,31,29,31,30,31,30,31,31,30,31,30,31};
// the 8 arrays that form each segment of the custom numbers
byte bar1[8] =
{
B11100,
B11110,
B11110,
B11110,
B11110,
B11110,
B11110,
B11100
};
byte bar2[8] =
{
B00111,
B01111,
B01111,
B01111,
B01111,
B01111,
B01111,
B00111
};
byte bar3[8] =
{
B11111,
B11111,
B00000,
B00000,
B00000,
B00000,
B11111,
B11111
};
byte bar4[8] =
{
B11110,
B11100,
B00000,
B00000,
B00000,
B00000,
B11000,
B11100
};
byte bar5[8] =
{
B01111,
B00111,
B00000,
B00000,
B00000,
B00000,
B00011,
B00111
};
byte bar6[8] =
{
B00000,
B00000,
B00000,
B00000,
B00000,
B00000,
B11111,
B11111
};
byte bar7[8] =
{
B00000,
B00000,
B00000,
B00000,
B00000,
B00000,
B00111,
B01111
};
byte bar8[8] =
{
B11111,
B11111,
B00000,
B00000,
B00000,
B00000,
B00000,
B00000
};
void setup()
{
// assignes each segment a write number
lcd.createChar(1,bar1);
lcd.createChar(2,bar2);
lcd.createChar(3,bar3);
lcd.createChar(4,bar4);
lcd.createChar(5,bar5);
lcd.createChar(6,bar6);
lcd.createChar(7,bar7);
lcd.createChar(8,bar8);
state=1;
state1=1;
state2=1;
// sets the LCD's rows and colums:
lcd.begin(16, 2);
pinMode(8,INPUT);
pinMode(9,INPUT);
pinMode(10,INPUT);
s=0;
m=0;
h=0;
dt=1;
mo=1;
}
void custom0(int col)
{ // uses segments to build the number 0
lcd.setCursor(col, 0);
lcd.write(2);
lcd.write(8);
lcd.write(1);
lcd.setCursor(col, 1);
lcd.write(2);
lcd.write(6);
lcd.write(1);
}
void custom1(int col)
{
lcd.setCursor(col,0);
lcd.write(32);
lcd.write(32);
lcd.write(1);
lcd.setCursor(col,1);
lcd.write(32);
lcd.write(32);
lcd.write(1);
}
void custom2(int col)
{
lcd.setCursor(col,0);
lcd.write(5);
lcd.write(3);
lcd.write(1);
lcd.setCursor(col, 1);
lcd.write(2);
lcd.write(6);
lcd.write(6);
}
void custom3(int col)
{
lcd.setCursor(col,0);
lcd.write(5);
lcd.write(3);
lcd.write(1);
lcd.setCursor(col, 1);
lcd.write(7);
lcd.write(6);
lcd.write(1);
}
void custom4(int col)
{
lcd.setCursor(col,0);
lcd.write(2);
lcd.write(6);
lcd.write(1);
lcd.setCursor(col, 1);
lcd.write(32);
lcd.write(32);
lcd.write(1);
}
void custom5(int col)
{
lcd.setCursor(col,0);
lcd.write(2);
lcd.write(3);
lcd.write(4);
lcd.setCursor(col, 1);
lcd.write(7);
lcd.write(6);
lcd.write(1);
}
void custom6(int col)
{
lcd.setCursor(col,0);
lcd.write(2);
lcd.write(3);
lcd.write(4);
lcd.setCursor(col, 1);
lcd.write(2);
lcd.write(6);
lcd.write(1);
}
void custom7(int col)
{
lcd.setCursor(col+0,0);
lcd.write(8);
lcd.write(8);
lcd.write(1);
lcd.setCursor(col, 1);
lcd.write(32);
lcd.write(32);
lcd.write(1);
}
void custom8(int col)
{
lcd.setCursor(col, 0);
lcd.write(2);
lcd.write(3);
lcd.write(1);
lcd.setCursor(col, 1);
lcd.write(2);
lcd.write(6);
lcd.write(1);
}
void custom9(int col)
{
lcd.setCursor(col, 0);
lcd.write(2);
lcd.write(3);
lcd.write(1);
lcd.setCursor(col, 1);
lcd.write(7);
lcd.write(6);
lcd.write(1);
}
void printNumber(int value, int col) {
if (value == 0) {
custom0(col);
} if (value == 1) {
custom1(col);
} if (value == 2) {
custom2(col);
} if (value == 3) {
custom3(col);
} if (value == 4) {
custom4(col);
} if (value == 5) {
custom5(col);
} if (value == 6) {
custom6(col);
} if (value == 7) {
custom7(col);
} if (value == 8) {
custom8(col);
} if (value == 9) {
custom9(col);
}
}
void loop()
{
if(digitalRead(8)&&state==1){
cnt++;
state=0;
cnt=cnt%5;
}else if(!digitalRead(8)&&state==0){
state=1;
}
if (digitalRead(9)&&state1==1){
dg=1;
state1=0;
}else if(!digitalRead(9)&&state1==0){
state1=1;
}
if(digitalRead(10)&&state2==1){
dg=-1;
state2=0;
}else if(!digitalRead(10)&state2==0){
state2=1;
}
switch(cnt){
case 2:
m=m+dg;
dg=0; if(m>59){
m=0;}
if(m23){
h=h-24;}
if(hl[mo]){
dt=l[mo];}
if(dt12){
mo=1;
}
if(mol[mo]){
dt=1;
mo++;
mo=(1+(mo-1)%12);
}
break;
}
if(s>59){
s=0;
m++;
if(m>59){
m=0;
h++;
if(h>23){
h=0;
dt++;
if(dt>l[mo]){
dt=1;
mo++;
}
if(mo>12){
mo=1;
}
}
}
}
h=h;
d=(h)%10;
printNumber(d, 3);
d=(h)/10;
printNumber(d, 0);
d=m%10;
printNumber(d, 10);
d=m/10;
printNumber(d, 7);
lcd.setCursor(14, 0);
lcd.print(s/10);
lcd.print(s%10);
lcd.setCursor(13, 1);
lcd.print(months[mo]);
lcd.print(dt/10);
lcd.print(dt%10);
if(cnt==0){
s++;
lcd.setCursor(6, 0);
lcd.print(" ");
lcd.setCursor(6, 1);
lcd.print(" ");
lcd.setCursor(13,0);
lcd.print(" ");
delay(500);
lcd.setCursor(6, 0);
lcd.print(".");
lcd.setCursor(6, 1);
lcd.print(".");
lcd.setCursor(13,0);
lcd.print(":");
delay(500);
}}
@@technicalshubham789 how to copy this???
@@ChildrenRhymesofficial23 laptop me RUclips khol ke Kar lo Ho jayega...
😘😘😘😘😘😘😘😘😘😘😘😘
you have helped us thanks
Thanks For Visit..💫
is the code html, java, CSS, or python?
C/C++
source code not found, pls share again
drive.google.com/drive/folders/1UnyrzZNO9ncReGZeZI6-5Sjgs-Ajuwhm?usp=sharing
Can you send the code
Mail??
😯👌👌👍 keep going..
Kok gambarnya dan yang di buat beda
This is same as in picture.
thakyo
thanks
You're welcome!
Bhai iska code discription me send kro, code ke naam pe circuit board ki jpg file diyi gyi hai
Thankyou brother. I'll check ....!!
does it really work in real or only a model in tinkercad
It works in both properly.. You can it make urself .
code?
Where is the code ? I cant access it. pls tell how to access code ?
found the code but not working
docs.google.com/document/d/154KdfMZ6pI0IH6LRQU5H4Pxb-LeDQNIK/edit?usp=sharing&ouid=114617762841863941216&rtpof=true&sd=true
TNX A LOT
Bang bagi dong data program nya
this shi down work
kdk