Cov txheej txheem:

Arduino Display Kub ntawm TM1637 LED Zaub: 7 Kauj Ruam
Arduino Display Kub ntawm TM1637 LED Zaub: 7 Kauj Ruam

Video: Arduino Display Kub ntawm TM1637 LED Zaub: 7 Kauj Ruam

Video: Arduino Display Kub ntawm TM1637 LED Zaub: 7 Kauj Ruam
Video: How to make a 16x16x16 LED CUBE at home with Arduino platform 2024, Kaum ib hlis
Anonim

Hauv qhov kev qhia no peb yuav kawm paub yuav ntsuas qhov ntsuas kub li cas siv LED Zaub TM1637 thiab DHT11 sensor 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
  • LED Zaub TM1637
  • DHT11 sensor
  • 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 DHT11 sensor tus pin [GND] rau Arduino tus pin [GND]
  • Txuas DHT11 sensor tus pin [VCC] rau Arduino tus pin [5V]
  • Txuas DHT11 sensor teeb liab tus pin [S] rau Arduino tus lej digital [8]

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
  • Ntxiv "TM1637 7 Segment Display 4 Digits Module + 2 Vertical Points (CATALEX)" tivthaiv
  • Ntxiv "Vaum thiab Ntsuas Kub DHT11/21/22/AM2301" 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
  • Ob npaug nyem rau ntawm "Display1" tivthaiv thiab hauv "Analog Display 7 Segments" mus rau sab laug
  • Ntawm sab laug ntawm "Tus lej" qhov rai xaiv "Analog Display 7 Segments1" thiab hauv cov khoom qhov rai teeb tsa "Suav Tus lej" rau 4 thiab "Precision" rau 2
  • Kaw qhov "Digits" window
  • Xaiv "" thiab hauv cov khoom qhov rai teeb tsa "Cov Ntsiab Lus" rau Qhov Tseeb
  • Txuas "DHT11" tus pin [Kub] mus rau "Display1"> "Analog Display 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]
  • Txuas "DHT11" tus pin [sensor] mus rau arduino board digital pin [8]

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 qhia qhov ntsuas kub tam sim no.

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: