Cov txheej txheem:
- Kauj Ruam 1: Cov Cheeb Tsam Xav Tau
- Kauj Ruam 2: Sib Sau Ua Ke Txhua Yam
- Kauj ruam 3: Programming
- Kauj Ruam 4: Qhov tshwm sim
Video: Yooj Yim Digital Clock Siv Arduino Nano & DS1307: 4 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Hauv kab lus no kuv yuav qhia koj kev qhia ua lub moos digital siv Arduino.. Pawg Arduino uas kuv siv yog Arduino Nano V3, DS1307 ua lub sijhawm muab cov ntaub ntawv, MAX7219 7 Segment raws li lub moos saib.
ua ntej nkag mus rau kev qhia, Kuv pom zoo kom koj paub siv Arduino cov cuab yeej thiab khoom siv ntxiv. Qhov no yuav ua kom yooj yim rau koj ua raws cov ntawv qhia uas kuv tau qhia.
Yog tias koj tsis paub siv Arduino boards, tsis txhob txhawj.
Koj tuaj yeem nyeem kab lus no kom sov:
- Yuav Ua Li Cas Siv Arduino Nano
- MAX7219 7-Segment Siv Arduino
- Yuav Ua Li Cas Siv DS1307 Siv Arduino
Kauj Ruam 1: Cov Cheeb Tsam Xav Tau
cov no yog cov khoom peb xav tau los ua lub moos digital:
- Arduino Nano V3
- TSO DS1307
- MAX7210 7Segment
- Jumper Hlau
- USBmini
- Pawg Thawj Coj
Yuav tsum muaj tsev qiv ntawv:
- Hlau
- LedControl
- RTClib
Kauj Ruam 2: Sib Sau Ua Ke Txhua Yam
Yog tias tag nrho cov khoom tau txais, Tam sim no nws yog lub sijhawm los sib sau ua ke.
Saib cov lus piav qhia hauv qab no lossis saib daim duab saum toj no:
Arduino rau RTC DS1307
GND => GND
+5V => VCC
A4 => SDA
A5 => SCL
Arduino rau MAX7219
+5V => VCC
GND => GND
D12 => DIN
D11 => CLK
D10 => CSJ
Tom qab tag nrho cov khoom siv raug teeb tsa, txuas ntxiv mus rau ntu ntu kev qhia.
Kauj ruam 3: Programming
luam thiab muab daim duab no tso rau hauv daim duab uas koj tau ua. Tom qab ntawd rub qhov program mus rau arduno board
#include #include "LedControl.h" #include "RTClib.h"
RTC_DS1307 rtc;
LedControl lc = LedControl (12, 11, 10, 1);
void teeb tsa () {
Serial.begin (57600); yog (! rtc.begin ()) {Serial.println ("Tsis pom RTC"); thaum (1); } yog (! rtc.isrunning ()) {Serial.println ("RTC tsis ua haujlwm!"); // kab ntawv hauv qab no teeb tsa RTC mus rau hnub tim & sijhawm no cov duab kos tau muab tso ua ke // rtc.adjust (DateTime (F (_ DATE_), F (_ TIME_)))); // Cov kab no teeb tsa RTC nrog hnub tim & sijhawm qhia meej, piv txwv li teeb tsa // Lub Ib Hlis 21, 2014 thaum 3 teev sawv ntxov koj yuav hu: // rtc.adjust (DateTime (2014, 1, 21, 3, 0, 0)); } lc.shutdown (0, tsis tseeb); lc.setIntensity (0, 8); lc.clearDisplay (0); }
void voj () {
Hnub tim tam sim no = rtc.now (); yog (now.second () 40) {lc.setDigit (0, 0, now.second ()%10, tsis tseeb); lc.setDigit (0, 1, now.second ()/10, tsis tseeb); lc.setChar (0, 2, '-', tsis tseeb); lc.setDigit (0, 3, now.minute ()%10, tsis tseeb); lc.setDigit (0, 4, now.minute ()/10, tsis tseeb); lc.setChar (0, 5, '-', tsis tseeb); lc.setDigit (0, 6, now.hour ()%10, tsis tseeb); lc.setDigit (0, 7, now.hour ()/10, tsis tseeb); }
yog (now.second () == 30 || now.second () == 40)
{lc.clearDisplay (0); }
yog (now.second ()> = 31 && now.second () <40) {lc.setDigit (0, 6, now.day ()%10, tseeb); lc.setDigit (0, 7, now.day ()/10, tsis tseeb); lc.setDigit (0, 4, now.month ()%10, tseeb); lc.setDigit (0, 5, now.month ()/10, tsis tseeb); lc.setDigit (0, 0, (tam sim no.year ()%1000)%10, tsis tseeb); lc.setDigit (0, 1, (now.year ()%1000)/10, tsis tseeb); lc.setDigit (0, 2, (tam sim no.year ()%1000)/100, tsis tseeb); lc.setDigit (0, 3, now.year ()/1000, tsis tseeb); }}
Kauj Ruam 4: Qhov tshwm sim
Tom qab txhua kauj ruam ua tiav, qhov no yog qhov tshwm sim uas koj yuav pom: (saib video)
txhua txhua 31st thib ob txog thib 40 thib ob. 7 Ntu yuav tso saib hnub tim. Tsuas yog zaum thib ob, 7 ntu yuav tso saib lub moos
Pom zoo:
D.I.Y YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM LOS NTAWM SCRAPS: 4 Cov Kauj Ruam (nrog Duab)
D.I.Y YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM LOS NTAWM SCRAPS: Hnub no kuv xav qhia yuav ua li cas kom pom lub teeb pom kev zoo los ntawm lub zog xa hluav taws xob tsis siv hluav taws xob los ntawm tus txhuam txhuam hniav thiab lub tshuab solenoid valve coils uas tau khaws los ntawm scrapyard.Ua ntej pib, thov saib cov vis dis aus hauv qab no:
Txoj Kev Yooj Yim thiab Yooj Yim Los Hloov Koj Lub Xauv Screen hauv 6 Cov Kauj Ruam Yooj Yim (Windows 8-10): 7 Kauj Ruam
Txoj Kev Yooj Yim thiab Yooj Yim Los Hloov Koj Lub Xauv Screen hauv 6 Cov Kauj Ruam Yooj Yim (Windows 8-10): Xav hloov pauv yam ntawm koj lub laptop lossis PC? Xav tau kev hloov pauv hauv koj qhov chaw? Ua raws cov kauj ruam no yooj yim thiab yooj yim kom ua tiav koj tus kheej lub computer ntsuas phoo
DIY MusiLED, Music Synchronized LEDs Nrog Ib-nias Windows & Linux Application (32-ntsis & 64-ntsis). Yooj Yim Rov Ua Dua, Siv Yooj Yim, Yooj Yim rau Chaw Nres Nkoj: 3 Kauj Ruam
DIY MusiLED, Music Synchronized LEDs Nrog Ib-nias Windows & Linux Application (32-ntsis & 64-ntsis). Yooj Yim Rov Ua Dua, Siv Yooj Yim, Yooj Yim rau Chaw Nres Nkoj: Qhov haujlwm no yuav pab koj txuas 18 LEDs (6 Liab + 6 Xiav + 6 Daj) rau koj lub Rooj Tswjhwm Saib Arduino thiab txheeb xyuas koj lub khoos phis tawj Lub Suab Suab Lub suab lub sijhawm tiag tiag thiab xa lawv mus rau cov LEDs kom pom lawv raws li qhov cuam tshuam (Snare, High Hat, Kick)
YUAV UA LI CAS YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM TSHAJ PLAWS YOOJ YIM: 4 Cov Kauj Ruam
YUAV UA LI CAS YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM TSHAJ PLAWS: Nyob zoo txhua tus hauv cov lus qhia no kuv yuav qhia koj yuav ua li cas kom yooj yim " SOIL DRYNESS SENSOR ". Qhuav ntawm cov av tau txheeb xyuas siv qhov taw qhia coj. Lub teeb ci wi
Ib qho yooj yim heev/yooj yim/Tsis yooj yim txoj hauv kev kom tib neeg/tib neeg/tsiaj/neeg hlau zoo li lawv muaj txias tiag tiag/Lub zeem muag tshav kub kub (Xim ntawm Koj Xaiv) Siv GIMP: 4 Cov Kauj Ruam
Ib qho yooj yim heev/yooj yim/Tsis yooj yim txoj hauv kev kom tib neeg/tib neeg/tsiaj/neeg hlau zoo li lawv muaj txias tiag tiag/Lub zeem muag tshav kub kub (Xim ntawm Koj Xaiv) Siv GIMP: Nyeem … lub npe