Cov txheej txheem:

Arduino Counter Siv TM1637 LED Zaub & Kev Tiv Thaiv Kev Tiv Thaiv: 7 Cov Kauj Ruam
Arduino Counter Siv TM1637 LED Zaub & Kev Tiv Thaiv Kev Tiv Thaiv: 7 Cov Kauj Ruam

Video: Arduino Counter Siv TM1637 LED Zaub & Kev Tiv Thaiv Kev Tiv Thaiv: 7 Cov Kauj Ruam

Video: Arduino Counter Siv TM1637 LED Zaub & Kev Tiv Thaiv Kev Tiv Thaiv: 7 Cov Kauj Ruam
Video: AES Encryption: What's the difference between the IV and Key? Why do we need an IV? 2024, Kaum ib hlis
Anonim
Arduino Counter Siv TM1637 LED Zaub & Kev Tiv Thaiv Kev Nyab Xeeb
Arduino Counter Siv TM1637 LED Zaub & Kev Tiv Thaiv Kev Nyab Xeeb

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

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
  • Arduino UNO (lossis lwm yam Arduino)
  • Jumper xov hlau
  • Obstacle avoidance sensor
  • 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]
  • Txuas kev tiv thaiv kev tiv thaiv kev tiv thaiv tus pin [VCC] rau Arduino tus pin [5V]
  • Txuas qhov teeb meem zam kev ntsuas tus pin [GND] rau Arduino tus pin [GND]
  • Txuas qhov teeb meem zam kev ntsuas tus pin [D0] rau Arduino tus lej digital [7]

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 "Infrared (IR) Obstacle Zam Zeem Sensor" 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
  • 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 Arduino tus lej digital [7] rau "ObstacleAvoidance1" tus pin [Hauv]

Txuas "ObstacleAvoidance1" 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
Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code

Hauv Visuino, Nias F9 lossis nyem rau ntawm lub pob uas qhia ntawm daim duab 1 los tsim Arduino code, thiab qhib Arduino IDE

Hauv Arduino IDE, nyem rau ntawm Upload khawm, txhawm rau sau thiab xa cov cai (Daim duab 2)

Kauj ruam 7: Ua si

Yog tias koj ua lub zog Arduino UNO tus qauv, cov zaub LED yuav tsum pib suav tus lej thaum qhov kev tiv thaiv kev tiv thaiv pom pom qhov teeb meem, 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: