Cov txheej txheem:

Arduino Timer rau Kev Sau Ntawv Hauv Tsev: 7 Kauj Ruam
Arduino Timer rau Kev Sau Ntawv Hauv Tsev: 7 Kauj Ruam

Video: Arduino Timer rau Kev Sau Ntawv Hauv Tsev: 7 Kauj Ruam

Video: Arduino Timer rau Kev Sau Ntawv Hauv Tsev: 7 Kauj Ruam
Video: Hmong song "Daim Ntawv Hauv Lub Fwj'' Dedication to Nalee 2024, Kaum ib hlis
Anonim
Arduino Timer rau Kev Sau Ntawv Hauv Tsev
Arduino Timer rau Kev Sau Ntawv Hauv Tsev

Hauv qhov kev qhia no, koj yuav kawm tsim lub sijhawm Arduino rau cov tub ntxhais kawm hnub nyoog kom sau lawv cov ntawv ua tom tsev kom zoo. Lub sijhawm teem sijhawm yuav pib thaum nws tau ntsaws rau, thiab lub timmer muaj ob ntu tseem ceeb uas suav nrog lub sijhawm ua haujlwm thiab lub sijhawm so tom qab. Txoj cai muab ntawm no ua lub sijhawm ua haujlwm rau 10 feeb, nad so rau 5 feeb, pom tseeb, koj tuaj yeem hloov sijhawm ntev yog tias koj xav tau. Cov ntawv qhia no suav nrog cov khoom siv, cov kauj ruam, thiab cov cai xav tau los tsim lub tshuab no. Lub tshuab no yooj yim thiab yooj yim tab sis muaj kev lom zem ntau txawm tias pib rau Arduino. Yog li …… Wb pib!

*LCD siv hauv lub tshuab no xav tau lub tsev qiv ntawv, yog li rub nws thaum koj rub tawm cov cai. Qhov txuas ntawm lub tsev qiv ntawv tau muab hauv cov cai.

Kauj ruam 1: Cov ntaub ntawv

Khoom siv
Khoom siv
Khoom siv
Khoom siv
Khoom siv
Khoom siv
Khoom siv
Khoom siv

Ua ntej koj pib tsim lub tshuab no, koj yuav tsum tau npaj txhua yam ntaub ntawv xav tau kom koj lub tshuab tuaj yeem ua haujlwm tau zoo txij li koj tsis tau plam ib kauj ruam lossis plam ib feem thiab cov khoom thaum tsim. Cov ntaub ntawv xav tau los tsim lub tshuab no muaj npe hauv qab no:

- Ob LEDs

Liab x1

Ntsuab x1

- Cov qhob cij

- Arduino Leonardo

- Ob tus tiv thaiv

- Cov xov hlau

- Caj dab clip

- LCD npo

www.aliexpress.com/item/4000073836219.html

- Arduino Software

- USB kab

- Lub laptop

- Cov duab los qhia

- Cov ntawv xim

Kauj Ruam 2: Txuas LCD rau Arduino

Txuas LCD rau Arduino
Txuas LCD rau Arduino

Tom qab koj tau txais txhua yam ntaub ntawv xav tau, txuas LCD rau koj Arduino. Lub LCD yuav tsum txuas nrog plaub tus pin tshwj xeeb ntawm Arduino board. SCL thiab SDA yuav tsum txuas rau SCL thiab SDA tus pin ntawm sab laug ntawm Arduino board, thiab VCC yuav tsum txuas nrog 5v thiab GND rau GND ntawm Arduino. Ceev faj thaum txuas lub LCD rau Arduino, Lcd yuav tawg yog tias cov pins tsis txuas nrog raug. Cov duab saum toj no muab koj cov duab piv txwv ntawm yuav ua li cas kuv ntsaws nws mus rau kuv Arduino. (Koj yuav tsis xav tau daim ntawv qhia zaub mov hauv qib no.)

Kauj Ruam 3: Txuas cov LEDs rau Breadboard

Txuas cov LEDs rau Breadboard
Txuas cov LEDs rau Breadboard

Qhov thib ob, txuas tag nrho cov LEDs rau koj lub khob cij. Daim duab ntawm no yog piv txwv ntawm yuav ua li cas koj tuaj yeem txuas koj cov LEDs rau koj lub rooj noj mov. Liab LED yuav tsum txuas nrog D6 tus pin thiab LED ntsuab yuav tsum txuas nrog D7 tus pin txhawm rau ua kom qhov kev txiav txim raug. * Nco ntsoov txuas ib tus tiv thaiv rau txhua LED, thiab tom qab ntawd txuas lawv rov qab rau GND ntawm Arduino.* (Qhov no yog ib feem uas koj xav tau koj lub khob cij.)

Kauj Ruam 4: Tsim Sab Nraud Ntawm Koj Lub Tshuab

Tsim Sab Nraud Ntawm Koj Lub Tshuab
Tsim Sab Nraud Ntawm Koj Lub Tshuab
Tsim Sab Nraud Ntawm Koj Lub Tshuab
Tsim Sab Nraud Ntawm Koj Lub Tshuab

Tam sim no, siv koj lub tswv yim thiab kev muaj tswv yim los tsim lub npog ntawm koj lub tshuab. Koj tuaj yeem siv txhua yam khoom koj xav tau yog tias koj xav ua qhov tshwj xeeb thiab muaj tswv yim. Yog tsis yog, ntawm no yog qhov piv txwv ntawm yuav ua li cas kuv npog kuv lub tshuab. Kuv siv duab los qhia thiab ntawv los qhwv kuv lub tshuab.

Kauj Ruam 5: Rub koj lub LCD thiab LEDs tawm

Rub koj lub LCD thiab LEDs tawm
Rub koj lub LCD thiab LEDs tawm
Rub koj lub LCD thiab LEDs tawm
Rub koj lub LCD thiab LEDs tawm

Tom ntej no, tom qab koj ua tiav koj lub npog, nco ntsoov rub koj lub LEDs thiab LCD, yog li koj lub tshuab Arduino tseem tuaj yeem ua haujlwm txawm tias koj xav tau lub khob cij thiab feem ntau ntawm cov xov hlau nyob hauv qab npog. Tej zaum koj yuav xav tau qee cov xov hlau ntxiv lossis cov kais kais kom cov LEDs txuas nrog rau lub khob cij. Tsuas yog lo LEDs thiab LCD tawm lub hau kom lub tshuab zoo dua.

Kauj ruam 6: Code

Thaum kawg, tom qab ua tiav txhua qhov txuas, nkag mus rau Arduino code rau lub tshuab no.

Nov yog tus lej ntawm tus timmer no, koj tuaj yeem luam thiab muab nws tso rau hauv koj li Arduino software.

create.arduino.cc/editor/dorothyhsu/8ebf59…

Kauj ruam 7: Ua tiav

Image
Image

Thaum kawg, lub sijhawm ntsuas Arduino no yuav tsum ua tiav tam sim no. Yog tias koj xav tias txoj haujlwm no muaj ib feem lossis ib feem uas yuav tsum tau hloov lossis tuaj yeem txhim kho, txais tos kom txhim kho nws thiab tawm tswv yim ntawm no kom ua tau zoo dua.

Pom zoo: