Cov txheej txheem:

4 Lig 7-Segment Timer With Reset Button: 5 Kauj Ruam
4 Lig 7-Segment Timer With Reset Button: 5 Kauj Ruam

Video: 4 Lig 7-Segment Timer With Reset Button: 5 Kauj Ruam

Video: 4 Lig 7-Segment Timer With Reset Button: 5 Kauj Ruam
Video: 4 Digit 7 segment display using Arduino 2024, Kaum ib hlis
Anonim
4 Zauv 7-Segment Timer Nrog Rov Pib Dua
4 Zauv 7-Segment Timer Nrog Rov Pib Dua

Cov Lus Qhia no yuav qhia koj li cas los tsim lub sijhawm suav rov qab siv 4 Tus Zauv 7-Segment Display uas tuaj yeem rov pib dua nrog khawm.

Suav nrog hauv Cov Lus Qhia no yog cov ntaub ntawv xav tau, cov xov txuas raug, thiab rub tawm cov ntaub ntawv ntawm tus lej uas yog los ua haujlwm ntawm 4 Tus lej 7-Segment Display.

Kauj Ruam 1: Kauj Ruam 1: Yam Yuav Tsum Tau

Kauj Ruam 1: Qhov Yuav Tsum Tau
Kauj Ruam 1: Qhov Yuav Tsum Tau
Kauj Ruam 1: Qhov Yuav Tsum Tau
Kauj Ruam 1: Qhov Yuav Tsum Tau

Txhawm rau tsim 4 Zauv 7-Segment Display timer, koj yuav xav tau cov hauv qab no:

4 Zauv 7-Segment Zaub

Tus qauv siv yog 5641AS

14 Xov

  • 11 xov hlau tau siv los txuas 4 Tus lej 7-Segment Display rau Arduino
  • 2 xov hlau tau siv los txuas Lub Laub Khawm rau Arduino
  • 1 xaim tau tso ua qhov seem rau qhov kev xaiv suav nrog cov lej zauv ntawm koj 4 Zauv 7-Segment Display
  • Arduino Uno nrog nws Cov Txuas Hluav Taws Xob
  • Laub Khawm

Kauj Ruam 2: Kauj Ruam 2: Txheeb Xyuas LED's ntawm 4 Digit 7-Segement Display

Kauj Ruam 2: Txheeb xyuas LED's ntawm 4 Tus lej 7-Segement Display
Kauj Ruam 2: Txheeb xyuas LED's ntawm 4 Tus lej 7-Segement Display
Kauj Ruam 2: Txheeb xyuas LED's ntawm 4 Tus lej 7-Segement Display
Kauj Ruam 2: Txheeb xyuas LED's ntawm 4 Tus lej 7-Segement Display

Txhawm rau pab xaim 4 Digit 7-Segment Display, Kuv xub txheeb xyuas tus pin ntawm 4 Digit 7-Segment Display thiab lawv tswj hwm dab tsi.

Tom qab txheeb xyuas cov pins ntawm 4 Tus Zauv 7-Segment Display, Kuv tsim kuv tus kheej cov phiaj xwm los txiav txim siab yuav ua li cas kuv yuav mus Hlau rau Arduino mus rau 4 Zauv 7-Segment Display. Ntxiv rau qhov ntawd, Kuv tau ua daim ntawv los pab txheeb xyuas 4 Digit 7-Segment Display pin, nws txoj haujlwm, thiab tus pin ntawd txuas nrog rau ntawm Arduino li cas.

Kauj Ruam 3: Kauj Ruam 3: Txuas 4 Tus Zauv 7-Segment Display thiab Laub Khawm rau Arduino

Kauj Ruam 3: Txuas 4 Tus Zauv 7-Segment Display thiab Push Button rau Arduino
Kauj Ruam 3: Txuas 4 Tus Zauv 7-Segment Display thiab Push Button rau Arduino

Tom qab tso 4 Tus lej 7-Segement thiab Push Button ntawm koj daim Breadboard, thawj kauj ruam yog xaim 4 tus lej sib txawv rau thawj plaub tus lej rau Arduino raws li daim ntawv hais.

Tom qab qhov no, txuas ntxiv txuas ntxiv 4 Tus lej 7-Segment Display pins rau Arduino raws li daim ntawv qhia. Txhawm rau ua kom yooj yim rau kuv tus kheej, Kuv tau pib nrog xaim Tus lej Pins tom qab ua tiav nrog cov teeb pom kev ntawm tus kheej raws li qhov sib ntxiv ntawm cov xov hlau ua tsis zoo. Tom ntej no, cov pins uas tseem tshuav ntawm Arduino (13 thiab 5), yuav siv los xaim khawm Push. Cov xov hlau no yuav nyob ntawm ib sab ntawm lub pob.

Kauj Ruam 4: Kauj Ruam 4: Code

Txuas nrog cov theem no ntawm Cov Lus Qhia yog tus lej kuv siv rau program 4 Digit 7-Segment Display.

Txoj cai no hais txog cov kauj ruam dhau los nrog txheeb xyuas cov pins ntawm 4 Digit 7-Segment Display, lawv cov haujlwm, thiab qhov twg lawv tau xaim ntawm Arduino.

Tsis tas li, ib feem ntawm txoj cai hais txog thaj chaw uas tuaj yeem hloov kho kom hloov pauv lub sijhawm pib raug suav nrog, nrog rau lub sijhawm uas khawm rov pib dua tom qab khawm raug nias.

Nco ntsoov: 1 thib ob = 1000ms

Kauj Ruam 5: Kauj Ruam 5: Nco Ntsoov Txog Kuv Tus Txhawb Nqa

Kauj Ruam 5: Nco Ntsoov Txog Kuv Tus Txhawb Nqa
Kauj Ruam 5: Nco Ntsoov Txog Kuv Tus Txhawb Nqa

Qhov ntawd xaus qhov kev tshaj tawm no, tab sis tus neeg txhawb nqa ntawm txoj haujlwm no yog PCBWay leej twg, thaum lub sijhawm ua kev zoo siab rau lawv li 5 xyoos. Txheeb xyuas lawv ntawm https://www.pcbway.com/ thiab tsis txhob hnov qab lawv cov kev pabcuam sib dhos tam sim no qis dua $ 30.

Pom zoo: