Cov txheej txheem:
Video: DS1307 Moos Nrog CloudX: 4 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Puas tau xav txog koj xav ua koj tus kheej kev saib lossis moos. koom ua ke DS1307 thiab CloudX tuaj yeem ua rau koj qhov kev cia siab tsis muaj teeb meem
Kauj Ruam 1: Qhib Koj CloudX IDE
Thov txim uas tsis yog tus tham ntau, tab sis kuv paub thaum nws los txog rau Lub Sijhawm Sijhawm Tseeb, cloudX tau txais koj npog.
Cov kauj ruam yooj yim
1. ntshuam cloudX lub tsev qiv ntawv tseem ceeb nrog txo nws cov qauv qauv
2. ntshuam DS1307 thiab lwm lub tsev qiv ntawv ua haujlwm xav tau
3. txaus siab thiab ua si nrog DS1307 kev ua haujlwm los ntawm nws lub tsev qiv ntawv
Kauj ruam 2: CODE!, CODE !!, CODE !
/*
* Cov ntaub ntawv: main.c * Sau: Ogboye Godwin * * Tsim rau lub Plaub Hlis 24, 2018, 11:02 AM */
#suav nrog
#suav nrog
#suav nrog
tsis tau kos npe sijhawm luv [9], Hnub tim [11];
unsigned luv mth, Hnub, yr, hr, min, sec;
getDateTime ();
loadLcd ();
resetClock ();
int cov = 16;
int cov = 15;
int dec = 14;
teeb tsa () {
pinMode (teeb, INPUT);
pinMode (inc, INPUT);
pinMode (dec, INPUT);
pinMode (1, INPUT);
Lcd_setting (2, 3, 4, 5, 6, 7);
Ds1307_init ();
rov () {
thaum (readPin (teeb) == 0) {
getDateTime ();
loadLcd ();
qeeb (500);
}
yog (readPin (teeb) == 1)
resetClock ();
}
}
getDateTime () {
hr = Ds1307_read (teev); // hli
sijhawm [0] = BCD2UpperCh (hr);
sijhawm [1] = BCD2LowerCh (hr);
sij hawm [2] = ':';
min = Ds1307_read (feeb); // kuv
sijhawm [3] = BCD2UpperCh (min);
sij hawm [4] = BCD2LowerCh (min);
sij hawm [5] = ':';
sec = Ds1307_read (thib ob); // nqi
sij hawm [6] = BCD2UpperCh (sec);
sij hawm [7] = BCD2LowerCh (sec);
mth = Ds1307_read (hli); // hli
Mdate [0] = BCD2UpperCh (mth);
Hnub tim [1] = BCD2LowerCh (mth);
Hnub [2] = ':';
Hnub = Ds1307_read (hnub tim); // hnub
Hnub tim [3] = BCD2UpperCh (Hnub);
Hnub tim [4] = BCD2LowerCh (Hnub);
Hnub [5] = ':';
yr = Ds1307_read (xyoo); // xyoo
Hnub [6] = '2';
Hnub [7] = '0';
Hnub tim [8] = BCD2UpperCh (yr);
Hnub tim [9] = BCD2LowerCh (yr);
}
loadLcd () {
koj cx;.
Lcd_cmd (meej);
Lcd_writeText (1, 1, "Hnub tim:");
// lcdWriteTextCP (Hnub tim);
rau (cx = 0; cx <11; cx ++)
Lcd_writeCP (Hnub tim [cx]);
Lcd_writeText (2, 1, "Sijhawm:");
// lcdWriteTextCP (sijhawm);
rau (cx = 0; cx <9; cx ++)
Lcd_writeCP (sijhawm [cx]);
}
resetClock () {
Ds1307_write (thib ob, Binary2BCD (0)); // sau 0 thib ob
Ds1307_write (feeb, Binary2BCD (12)); // sau 12 feeb
Ds1307_write (teev, Binary2BCD (12)); // sau 12hrs
Ds1307_write (hnub, Binary2BCD (3)); // sau hnub tuesday
Ds1307_write (hnub tim, Binary2BCD (24)); // sau hnub tim 24
Ds1307_write (hli, Binary2BCD (4)); // sau lub hli rau lub Plaub Hlis
Ds1307_write (xyoo, Binary2BCD (18)); // sau xyoo 18 i.e 2018
Ds1307_write (SQWE, Binary2BCD (zaus)); // teeb tsa SQWE tso zis rau 1hz
Ds1307_write (thib ob, Binary2BCD (startOscilator)); // rov pib dua thib ob rau 0sec thiab pib oscilator
thaum (readPin (teeb) == 1);
}
Kauj Ruam 3: Tsim hauv Proteus
hom hauv proteus yog cov kev xav tau no
1. cloudX
2. DS1307
3. 4.7k resistor
4. khawm
5. lm016 LCD
6. Crystal ntawm 32khz
thiab lossis tsis txhob hnov qab koj qhov zoo thiab hauv av.
ua koj cov kev sib txuas zoo li kuv.
Pom zoo:
DIY Exploding Phab Ntsa Moos Nrog Teeb Pom Kev Zoo: 20 Cov Kauj Ruam (nrog Duab)
DIY Exploding Wall Clock With Motion Lighting: Hauv qhov kev qhia / vis dis aus no kuv yuav qhia koj ib kauj ruam zuj zus yuav ua li cas thiaj muaj tswv yim thiab tshwj xeeb saib phab ntsa moos nrog kev teeb tsa teeb pom kev zoo.Qhov no lub cim tshwj xeeb tsim lub tswv yim yog qhia ua kom sib tham ntau dua . Thaum kuv taug kev
Cov Tub Ntxhais Hluav Taws Xob Moos Moos: 9 Kauj Ruam (nrog Duab)
Cov Tub Ntxhais Hluav Taws Xob Moos: Kuv ib txwm tau nyiam los ntawm cov teev tsis txawv txav. Nov yog ib qho ntawm kuv qhov kev tsim kho tshiab kawg uas siv cov tub ntxhais txias txias tus lej los tso saib lub sijhawm. Cov lej tau muab tso rau ntawm ib daim me me ntawm Plexiglas uas muaj cov ntawv nyias nyias laminated rau tom qab
Ua Koj Tus Kheej Retro Nixie Moos Nrog RTC !: 7 Kauj Ruam (nrog Duab)
Ua Koj Tus Kheej Retro Nixie Moos Nrog RTC!: Hauv qhov haujlwm no kuv yuav qhia koj yuav tsim lub moos nixie retro li cas. Qhov ntawd txhais tau tias kuv yuav qhia koj li cas koj tuaj yeem tswj cov hlab nixie nrog lub zog hluav taws xob DC lub zog loj thiab tom qab ntawd kuv yuav muab 4 lub raj nixie nrog Arduino, Lub Sijhawm Tiag (RTC) thiab
ESP8266 POV Ntxuam nrog Moos thiab Web Page Hloov Kho Tshiab: 8 Kauj Ruam (nrog Duab)
ESP8266 POV Ntxuam nrog Moos thiab Web Nplooj Ntawv Hloov Kho Tshiab: Qhov no yog qhov hloov pauv tau sai, POV (Kev Pom Kev Tsis Pom Kev), Kiv cua uas tsis tu ncua qhia lub sijhawm, thiab ob kab lus uas tuaj yeem hloov kho tshiab "ntawm yoov." kuj tseem yog nplooj ntawv web server uas tso cai rau koj hloov ob kab ntawv rau kuv
Ua Nixie Moos Nrog Arduino hauv MDF Wood Case: 11 Kauj Ruam (nrog Duab)
Ua Nixie moos Nrog Arduino nyob rau hauv MDF Ntoo Rooj plaub no: Nyob rau hauv cov lus qhia no, kuv yuav qhia li cas yuav ua rau Nixie moos nrog Arduino los ntawm Circuit Court uas yog raws li ntau cias li sai tau. Txhua tus ntawm lawv tau muab tso rau hauv rooj plaub ntoo MDF. Tom qab ua tiav, lub moos zoo li cov khoom lag luam: saib zoo thiab khov kho.Let's st