Cov txheej txheem:

Arduino Counter Siv TM1637 LED Zaub: 7 Cov Kauj Ruam
Arduino Counter Siv TM1637 LED Zaub: 7 Cov Kauj Ruam

Video: Arduino Counter Siv TM1637 LED Zaub: 7 Cov Kauj Ruam

Video: Arduino Counter Siv TM1637 LED Zaub: 7 Cov Kauj Ruam
Video: 7 segment display 4 digit by using multiplexer #sevensegmentdisplay 2024, Hlis ntuj nqeg
Anonim

Hauv qhov kev qhia no peb yuav kawm paub yuav ua tus lej lej yooj yim siv LED Zaub TM1637 thiab Visuino li cas.

Saib cov yees duab.

Kauj ruam 1: Yam Koj Yuav Tsum Tau

Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
  • Arduino UNO (lossis lwm yam Arduino)
  • Jumper xov hlau
  • LED Zaub TM1637
  • Visuino program: Rub tawm Visuino

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
  • Txuas LED Display pin [CLK] rau Arduino tus pin [10]
  • Txuas LED Display pin [DI0] rau Arduino tus pin [9]
  • Txuas LED Zaub pin [GND] rau Arduino tus pin [GND]
  • Txuas LED Display pin [VCC] rau Arduino tus pin [5V]

Kauj Ruam 3: Pib Visuino, thiab Xaiv Arduino UNO Board Type

Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type

Txhawm rau pib ua haujlwm rau Arduino, koj yuav tsum muaj Arduino IDE teeb tsa los ntawm no:

Thov nco ntsoov tias muaj qee qhov teeb meem tseem ceeb hauv Arduino IDE 1.6.6. Nco ntsoov tias koj nruab 1.6.7 lossis siab dua, txwv tsis pub Cov Lus Qhia no yuav tsis ua haujlwm! Yog tias koj tsis tau ua raws cov kauj ruam hauv Phau Ntawv Qhia no teeb tsa Arduino IDE rau program Arduino UNO! Visuino: https://www.visuino.eu tseem yuav tsum tau teeb tsa. Pib Visuino raws li pom hauv thawj daim duab Nyem rau ntawm "Cov cuab yeej" khawm ntawm Arduino tivthaiv (Daim Duab 1) hauv Visuino Thaum qhov kev sib tham tshwm, xaiv "Arduino UNO" raws li qhia hauv daim duab 2

Kauj Ruam 4: Hauv Visuino ADD Cheebtsam

Hauv Visuino ADD Cheebtsam
Hauv Visuino ADD Cheebtsam
Hauv Visuino ADD Cheebtsam
Hauv Visuino ADD Cheebtsam
Hauv Visuino ADD Cheebtsam
Hauv Visuino ADD Cheebtsam
  • Ntxiv "TM1637 7 Segment Display 4 Digits Module + 2 Vertical Points (CATALEX)" tivthaiv
  • Ntxiv "Counter" tivthaiv
  • Ntxiv "Pulse generator" tivthaiv

Kauj Ruam 5: Hauv Visuino Teeb thiab Txuas Txuas

Hauv Visuino Teeb thiab Txuas Cov Khoom Siv
Hauv Visuino Teeb thiab Txuas Cov Khoom Siv
Hauv Visuino Teeb thiab Txuas Cov Khoom Siv
Hauv Visuino Teeb thiab Txuas Cov Khoom Siv
Hauv Visuino Teeb thiab Txuas Cov Khoom Siv
Hauv Visuino Teeb thiab Txuas Cov Khoom Siv
Hauv Visuino Teeb thiab Txuas Cov Khoom Siv
Hauv Visuino Teeb thiab Txuas Cov Khoom Siv
  • Xaiv "Counter1" tivthaiv thiab hauv cov khoom qhov rai teeb tsa "Max> Tus nqi" rau 9999
  • Xaiv "Counter1" tivthaiv thiab hauv cov khoom qhov rai teeb tsa "Min> Tus nqi" rau 0
  • Ob npaug nyem rau ntawm "Display1" tivthaiv thiab hauv "Tus lej" qhov rai luag "Cov Zaub Zoo Tshaj 7 Ntu" mus rau sab laug
  • Ntawm sab laug ntawm "Tus lej" qhov rai xaiv "Zaub Zaub 7 Segments1" thiab hauv cov khoom qhov rai teeb tsa "Suav Tus lej" rau 4
  • Kaw qhov "Digits" window
  • Txuas "PulseGenerator1" tus pin [Tawm] rau "Counter1" tus pin [Hauv]
  • Txuas "Counter1" tus pin [Tawm] mus rau "Display1"> "Zaub Zauv 7 Segments1" tus pin [Hauv]
  • Txuas "Display1" tus pin [Clock] rau Arduino board digital pin [10]
  • Txuas "Display1" tus pin [Cov ntaub ntawv] rau Arduino board digital pin [9]

Kauj Ruam 6: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code

Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code

Hauv Visuino, hauv qab nyem rau ntawm "Tsim" Tab, xyuas kom tseeb tias qhov chaw nres nkoj raug xaiv, tom qab ntawd nyem rau ntawm "Compile/Build and Upload" khawm.

Kauj ruam 7: Ua si

Yog tias koj ua lub zog Arduino UNO module, cov zaub LED yuav tsum pib suav tus lej, thaum nws mus txog 9999 nws yuav rov pib dua 0 thiab suav dua.

Nrog koj zoo siab! Koj tau ua tiav koj txoj haujlwm nrog Visuino. Kuj txuas nrog yog Visuino project, uas kuv tau tsim rau Cov Lus Qhia no, koj tuaj yeem rub tawm nws ntawm no thiab qhib nws hauv Visuino:

Pom zoo: