Cov txheej txheem:

Yooj Yim Arduino Clock / Stopwatch: 6 Kauj Ruam (nrog Duab)
Yooj Yim Arduino Clock / Stopwatch: 6 Kauj Ruam (nrog Duab)

Video: Yooj Yim Arduino Clock / Stopwatch: 6 Kauj Ruam (nrog Duab)

Video: Yooj Yim Arduino Clock / Stopwatch: 6 Kauj Ruam (nrog Duab)
Video: How to make a STEEL MARBLE TRACK with basic tools! step by step guide 2024, Kaum ib hlis
Anonim
Image
Image

Qhov "qhia tau" no yuav qhia thiab qhia koj yuav ua li cas thiaj yooj yim Arduino Uno moos uas tseem ua lub tswb moos hauv ob peb kauj ruam yooj yim.

Kauj Ruam 1: Sau Txhua Yam Khoom Tsim Nyog

Sau Txhua Yam Khoom Tsim Nyog
Sau Txhua Yam Khoom Tsim Nyog
Sau Txhua Yam Khoom Tsim Nyog
Sau Txhua Yam Khoom Tsim Nyog

Txhawm rau pib tsim koj lub Arduino Uno moos/stopwatch, koj yuav tsum muaj Arduino Uno, DS1307 Lub Sijhawm Sijhawm Tiag Los Ua Ke Pawg Sib Tham Tawm Tsam, SainSmart 20x4 IIC/I2C/TWI LCD Module, tag nrho qhov loj me ntawm lub khob cij, Arduino pushbutton, 10k ohm resistor, txiv neej rau txiv neej jumper xov hlau, txiv neej rau poj niam jumper xov hlau, thiab USB Hom A Txiv neej rau USB Hom B Txiv neej cable. Koj tseem yuav xav tau lub khoos phis tawj nrog Arduino IDE software teeb tsa.

Kauj Ruam 2: Txuas Cov Hluav Taws Xob, Khawm, thiab Cov Hluav Taws Xob

Txuas Cov Hluav Taws Xob, Khawm, thiab Resistor
Txuas Cov Hluav Taws Xob, Khawm, thiab Resistor

Txhawm rau Arduino Uno, SainSmart LCD2004, thiab DS1307 Lub Sijhawm Teev Sijhawm Teev Sib Sau Ua Ke Pawg Sib Tham Sib Tham kom sib txuas lus nrog lwm tus, koj yuav tsum xub txuas DS1307 Lub Sij Hawm Tiag Sijhawm Sib Koom Tawm Tawm Pawg, Arduino pushbutton, thiab 10k ohm resistor kom puv qhov loj me ntawm lub khob cij ntawm qee cov ntsiab lus ntawm nws (siv schematic rau cov ntsiab lus). Thaum kawg, koj yuav tsum txuas tag nrho cov xov hlau jumper ntawm txhua yam ntawm qee cov ntsiab lus (siv cov phiaj xwm rau cov ntsiab lus).

Kauj ruam 3: Tau txais Txoj Cai

Tau txais Txoj Cai
Tau txais Txoj Cai
Tau txais Txoj Cai
Tau txais Txoj Cai
Tau txais Txoj Cai
Tau txais Txoj Cai

Tam sim no, kom tau txais txhua yam khoom siv uas txuas nrog ib leeg sib txuas lus tiag tiag thiab ua raws li lub moos/nres, peb yuav tau txais cov cai uas yuav qhia txhua yam kom ua raws qhov ntawd. Txhawm rau kom tau txais txoj cai, txhua yam koj yuav tsum ua yog rub cov ntawv txuas uas tau sau tias "clock.ino", tso tawm Arduino IDE software hauv koj lub computer, thiab qhib "clock.ino" cov ntaub ntawv (cov lus qhia ntxaws ntxiv ntawm cov txheej txheem no yog txuas raws li cov duab).

Kauj Ruam 4: Txuas Arduino rau Lub Khoos Phis Tawj

Txuas Arduino mus rau lub khoos phis tawj
Txuas Arduino mus rau lub khoos phis tawj
Txuas Arduino mus rau lub khoos phis tawj
Txuas Arduino mus rau lub khoos phis tawj

Tom qab sau tag nrho cov cai rau koj Arduino Uno hauv Arduino IDE software, txuas nws rau koj lub khoos phis tawj nrog USB Hom A Txiv neej rau USB Hom B Txiv neej cable, nrog USB Hom A Txiv neej mus rau hauv lub computer USB chaw nres nkoj thiab USB Hom B Txiv neej mus rau hauv Arduino USB chaw nres nkoj. Tam sim no Arduino Uno yuav tsum txuas nrog.

Kauj ruam 5: Upload Code

Rub tawm Txoj Cai
Rub tawm Txoj Cai

Tam sim no, txhua yam uas peb yuav tsum tau ua nyob rau ntawm qhov no yog xa cov cai mus rau Arduino Uno thiab lub moos/nres lub program yuav tsum pib ua haujlwm tsuav yog Arduino txuas tau zoo rau lub khoos phis tawj thiab txhua yam txuas nrog hauv qhov chaw raug. Txhawm rau upload cov cai rau Arduino Uno, tsuas yog nyem rau ntawm "upload" khawm hauv Arduino IDE software.

Kauj Ruam 6: Siv Nws

Thaum tag nrho cov cai tau xa mus rau koj Arduino Uno, lub moos yuav tsum pib pib ntawm lub vijtsam LCD. Koj tuaj yeem pib lub tswb moos los ntawm nias lub pob thiab nres nws los ntawm nias thiab tuav lub pob rau ib pliag. Yog tag nrho!

Pom zoo: