Cov txheej txheem:
Video: Yooj Yim CloudX M633 Digital Stopwatch: 4 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Hauv txoj haujlwm no, peb tab tom tsim ib lub moos digital uas tuaj yeem khaws cov teev teev, feeb thiab vib nas this, ib yam li lub tswb moos ntawm koj lub xov tooj ntawm tes! Peb yuav siv LCD los tso saib lub sijhawm
Kauj Ruam 1: Cov Cheeb Tsam Xav Tau
- CloudX M633
- CloudX SoftCard
- Zaub Zaub
- Potentiometer
- Laub Khawm
- Pawg Mov Ci
- Jumper Hlau
- V3 USB kab
- 10k ua
Koj tuaj yeem tau txais koj cov khoom ntawm no
Kauj ruam 2: HARDWARE
Kauj Ruam 1: Txhim kho lub LCD zaub hauv lub rooj noj mov thiab txuas rau CloudX M633 Board raws li cov hauv qab no
- R/S rau tus pin 1
- ENA to pin 2
- D4 to pin 3
- D5 pin 4
- D6 pin 5
- D7 pin 6
Ib qho ntxiv, xaim 10k lauj kaub rau +5V thiab GND, nrog nws lub wiper (tso tawm) rau LCD cov ntxaij vO pin.
- txuas Vss thiab K rau GND
- txuas Vdd thiab A rau +5v
- txuas R/W rau GND
NB: A yog Anode, K yog Cathode
Kauj ruam 2
- Kho thawj lub laub khawm (Pib thiab Nres) hauv lub rooj noj mov thiab txuas thawj ceg mus rau 10k thiab Pin7 ntawm CloudX Board thiab lwm ceg rau GND.
- Txhim Kho Qhov Thib Ob Laub khawm (rov pib dua) hauv breadBoard thiab txuas thawj ceg mus rau 10k thiab pin8 ntawm CloudX Board thiab lwm ceg rau GND.
Kauj ruam 3: CODING
Luam cov cai no rau koj li CloudX IDE
#include #include #include
#define START_PAUSE 7
#define RESET 8 #define START 1 #define PAUSE 0
char timer = "00: 00: 00: 0";
unsigned char HH, MM, SS, mSS, mscount, RFlag = 0; ntsis OmSF = 0, S_PFlag = 0;
cuam tshuam TimerOmSD () {
yog (INTCONbits. T0IF) {
INTCONbits. T0IF = 0; TMR0 += 60; yog (mscount ++ == 10) {mscount = 0; OmSF = 1; }}}
teeb tsa () {
// teeb tsa ntawm no
pinMode (START_PAUSE, INPUT);
pinMode (RESET, INPUT); lcdSetting (1, 2, 3, 4, 5, 6); lcdCmd (meej); lcdCmd (cursorOff); lcdWriteText (1, 1, "CLOUDX STOPWATCH");
rov () {
// Program ntawm no
yog (! readPin (START_PAUSE)) {
yog (S_PFlag == pib) {delayMs (200); INTCON = 0b00000000; OPTION_REG = 0b00000000; mSS-; }
yog (S_PFlag == PAUSE && RFlag == 1) {
delayMs (200); INTCON = 0b11100000; OPTION_REG = 0b00000111; }
yog (S_PFlag == PAUSE && RFlag == 0) {
delayMs (200); INTCON = 0b11100000; OPTION_REG = 0b00000111; TMR0 += 60; mscount = 0; OmSF = 0; } S_PFlag = ~ S_PFlag; RFlag = 1; }
yog (! readPin (RESET)) {
delayMs (200); HH = 0; MM = 0; SS = 0; MSS = 0; INTCON = 0b00000000; OPTION_REG = 0b00000000; mscount = 0; OmSF = 0; RFlag = 0; S_PFlag = PAUSE;
}
yog (OmSF) {
OmSF = ~ OmSF; mSS ++; yog (mSS == 10) SS ++; yog (SS == 60) MM ++; yog (MM == 60) HH ++; }
yog (HH == 100) HH = 0; yog (MM == 60) MM = 0; yog (SS == 60) SS = 0; yog (mSS == 10) mSS = 0; timer [1] = (HH%10) +48; timer [0] = (HH/10) +48; timer [4] = (MM%10) +48; timer [3] = (MM/10) +48; timer [7] = (SS%10) +48; timer [6] = (SS/10) +48; timer [9] = mSS +48; lcdWriteText (2, 2, timer);
}
}
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:
Kev Ceeb Toom Hluav Taws Xob Siv Arduino [Hauv Qhov Yooj Yim Yooj Yim Yooj Yim]: 3 Kauj Ruam
Kev Ceeb Toom Hluav Taws Xob Siv Arduino [Hauv Ob Qes Yooj Yim Yooj Yim]: Puas yog koj tab tom nrhiav kom ua txoj haujlwm yooj yim thiab nthuav nrog Arduino uas nyob rau tib lub sijhawm tuaj yeem muaj txiaj ntsig tiag tiag thiab muaj peev xwm cawm txoj sia? tej yam tshiab thiab tshiab. Hauv kab ntawv no peb mus
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
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
YOOJ YIM YOOJ YIM TSHAJ PLAWS COMPACT LIGHT !! 3 KAUJ RUAM YOOJ YIM !!: 3 Kauj Ruam
YOOJ YIM YOOJ YIM TSHAJ PLAWS COMPACT LIGHT !! 3 KAUJ RUAM YOOJ YIM !!: Koj Yuav Tsum Tau Li Cas - Tin ntawv ci 1 AA roj teeb (qee lub roj teeb AAA yuav ua haujlwm) 1 Mini Lub Teeb Pom Kev (lub teeb siv rau feem ntau lub teeb nyem; xa mus rau daim duab) Tus Tswj (yog xav tau)