Cov txheej txheem:

Yuav Ua Li Cas DIY Tswb Tswb Nrog LCD Keypad Shield: 5 Kauj Ruam
Yuav Ua Li Cas DIY Tswb Tswb Nrog LCD Keypad Shield: 5 Kauj Ruam

Video: Yuav Ua Li Cas DIY Tswb Tswb Nrog LCD Keypad Shield: 5 Kauj Ruam

Video: Yuav Ua Li Cas DIY Tswb Tswb Nrog LCD Keypad Shield: 5 Kauj Ruam
Video: Casio G-Shock Mudmaster против Gulfmaster | G Shock GWG-1000 Mudmaster против G Shock GW... 2024, Kaum ib hlis
Anonim
Yuav Ua Li Cas DIY Tswb Tswb Nrog LCD Keypad Shield
Yuav Ua Li Cas DIY Tswb Tswb Nrog LCD Keypad Shield

Nyob zoo sawv daws! Hauv cov lus qhia no, Kuv yuav qhia koj yuav ua li cas Tswb Tswb siv Arduino Board. Kuv tau siv Arduino UNO, LCD keypad Shield, 5V Buzzer thiab Jumper Wires los tsim lub moos no. Koj tuaj yeem pom lub sijhawm ntawm cov zaub thiab tuaj yeem teev sijhawm thiab tswb. Lub suab nrov nrov lub tswb thaum lub sijhawm tam sim no sib npaug rau lub sijhawm tswb ceeb toom. Koj kuj tseem tuaj yeem tua lub tswb thiab siv qhov no raws li lub moos ib txwm muaj. Tsis tsuas yog lawv tab sis kuj koj tuaj yeem teeb tsa lub tswb nrov lub sijhawm. Thaum lub tswb nrov nrov, koj yuav tsum sawv vim tias nws ua rau kuv. Yog lawm, cia peb txav mus rau ntu npe uas peb xav tau los tsim qhov no.

Khoom siv

*Arduino UNO lossis MEGA - Arduino UNO lossis Arduino MEGA*

*Arduino Keypad Shield - Shield Keypad*

*Buzzer - Buzzer*

*Jumper xov hlau Poj niam rau Poj niam*

Kauj Ruam 1: Daim Ntawv Teev Npe

Daim Ntawv Teev Npe
Daim Ntawv Teev Npe
  • Arduino UAS
  • 16x2 Tus Cim LCD Keypad Shield
  • 5v zoj
  • Jumper Hlau Khoom

Kauj ruam 2: Kev thaiv kab

Thaiv
Thaiv

Rau Cov Hluav Taws Xob thov ua raws Daim Duab Txuas Hluav Taws Xob

  • Tso lub Keypad shield ntawm Arduino
  • txuas A1 - Buzzer Teeb liab
  • txuas GND - buzzer GND

Ntawd yog txhua txoj hlua koj yuav tsum tau ua

Kauj ruam 3: Code

Code
Code

Cov cai tau piav qhia tus kheej zoo nkauj

Txoj Cai yog los ntawm qhov txuas no: Code

Lub sijhawm pib rau lub tswb ceeb toom yog 8:30 sawv ntxov (hloov kab 139 rau lub sijhawm hu xov tooj thiab 35 thiab 36 1 feeb tom qab koj lub sijhawm) nias RST khawm ntawm cov keyboard yog tias koj xav kom nrov nrov kom nres

UP = feeb + 1 (Lub Sijhawm Tam Sim No)

DOWN = teev + 1 (Lub Sijhawm Tam Sim No)

Kauj ruam 4: Xeem

Kev Xeem
Kev Xeem
Kev Xeem
Kev Xeem
Kev Xeem
Kev Xeem

! @Koj teeb tsa tam sim no yuav tsum zoo li no.

Tom qab xa cov cai, LCD yuav qhia lub sijhawm tsis raug. Nws txhais tau tias koj yuav tsum teem sijhawm. Lub sijhawm pib rau thaum qhib yog 8:30 AM. Koj tuaj yeem siv UP (Minutes + 1), thiab DOWN (teev +1) los teeb tsa lub sijhawm hauv 24 teev. Yog tias koj rov pib dua nws lossis nws poob lub zog koj yuav tsum tau teeb nws dua yog li yuav tsum tau ceev faj !!!

Kauj ruam 5: Ua tiav !

TUAJ !!!
TUAJ !!!

Thov Like thiab qhia cov lus qhia no! Yog tias koj muaj lus nug, thov tshaj tawm lawv hauv qab no !!

Pom zoo: