Cov txheej txheem:

Visuino Yuav Siv LCD TFT ST7735: 9 Cov Kauj Ruam
Visuino Yuav Siv LCD TFT ST7735: 9 Cov Kauj Ruam

Video: Visuino Yuav Siv LCD TFT ST7735: 9 Cov Kauj Ruam

Video: Visuino Yuav Siv LCD TFT ST7735: 9 Cov Kauj Ruam
Video: Qhia Hle & Hloov Màn Hình LCD Laptop | Siv Laptop Tsis Yuav LCD 2024, Kaum ib hlis
Anonim
Image
Image
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi

Hauv qhov kev qhia no peb yuav siv LCD TFT ST7735 txuas nrog Arduino UNO thiab Visuino kom tso duab thiab tus lej tsis raug.

Saib daim vis dis aus.

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
  1. Arduino UNO (lossis lwm yam Arduino)
  2. Cov qhob cij
  3. Jumper xov hlau
  4. LCD TFT ST7735
  5. Visuino program: Rub tawm Visuino

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
Qhov Circuit
Qhov Circuit

Txuas:

1.8 TFT Display PIN [LED] rau Arduino PIN [3.3 V]

1.8 TFT Display PIN [SCK] rau Arduino PIN [13]

1.8 TFT Display PIN [SDA] rau Arduino PIN [11]

1.8 TFT Display PIN [A0 lossis DC] rau Arduino PIN [9]

1.8 TFT Display PIN [RESET] rau Arduino PIN [8]

1.8 TFT Display PIN [CS] rau Arduino PIN [10]

1.8 TFT Display PIN [GND] rau Arduino PIN [GND]

1.8 TFT Display PIN [VCC] rau Arduino PIN [5V]

NCO TSEG: Qee lub Arduino cov laug cam muaj sib txawv SPI pins kom ntseeg tau tias koj txheeb xyuas koj cov ntaub ntawv teev tseg.

Kauj ruam 3:

Duab
Duab

Txhua yam koj yuav tsum tau ua yog rub thiab tso cov khoom sib txuas thiab Txuas lawv ua ke. Visuino yuav tsim txoj cai ua haujlwm rau koj yog li koj tsis tas yuav nkim sijhawm los tsim cov cai. Nws yuav ua txhua txoj haujlwm nyuaj rau koj sai thiab yooj yim! Visuino zoo tshaj plaws rau txhua txoj haujlwm, koj tuaj yeem tsim cov phiaj xwm nyuaj nyob rau lub sijhawm!

Rub tawm Qhov Tseeb Muaj Zog Visuino Software

Kauj Ruam 4: 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 5: Hauv Visuino Ntxiv Cheebtsam

Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
Hauv Visuino Ntxiv Cheebtsam
  1. Ntxiv "TFT Xim Zaub ST7735" tivthaiv
  2. Ntxiv "Pulse Generator" tivthaiv
  3. Ntxiv "Random integer Generator" tivthaiv

Kauj Ruam 6: Hauv Visuino Teeb Cov Khoom Sib Ntsib

Hauv Visuino Teeb Cov Khoom Txheej Txheem
Hauv Visuino Teeb Cov Khoom Txheej Txheem
Hauv Visuino Teeb Cov Khoom Txheej Txheem
Hauv Visuino Teeb Cov Khoom Txheej Txheem
  1. Xaiv "PulseGenerator1" tivthaiv thiab teeb tsa zaus rau 1
  2. Xaiv "RandomIntegerGenerator1" tivthaiv thiab teeb tsa "Max" rau "1000" thiab "Min" rau '' 0"
  3. Xaiv "Display1" tivthaiv thiab teeb tsa "Hom" rau "dtST7735R_BlackTab"

NCO TSEG: Qee Cov Lus Qhia muaj cov khoom sib txawv yog li sim los ntawm xaiv hom sib txawv los nrhiav qhov uas ua haujlwm tau zoo tshaj plaws, hauv kuv qhov xwm txheej kuv xaiv "dtST7735R_BlackTab"

Ob npaug nias rau ntawm "Display1" tivthaiv thiab:

  • hauv qhov kev sib tham luag "Text Field" mus rau sab laug, teeb tsa loj: 3, X: 10, Y: 10
  • hauv kev sib tham rub "Kos Bitmap" mus rau sab laug, ntsaws bitmap (Hauv kuv qhov xwm txheej Visuino logo) teeb X: 5, Y: 50

Kauj Ruam 7: Hauv Visuino Connect Components

Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
Hauv Visuino Connect Components
  1. Txuas "PulseGenerator1" tiv thaiv tus pin [Tawm] rau "RandomIntegerGenerator1" tus pin [Clock]
  2. Txuas "RandomIntegerGenerator1" tiv thaiv tus pin [Tawm] rau "Display1"> "TextField1" tus pin [Hauv]
  3. Connecrt "Display1" tiv thaiv Pin [Tawm] SPI rau Arduino Pin SPI [Hauv]
  4. Connecrt "Display1" tiv thaiv Pin [ChipSelect] rau Arduino Digital Pin [10]
  5. Connecrt "Display1" tiv thaiv Pin [Pib dua] rau Arduino Digital Pin [8]
  6. Connecrt "Display1" tiv thaiv Pin [Sau Npe Xaiv] rau Arduino Digital Pin [9]

Kauj Ruam 8: 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 9: Ua si

Yog tias koj ua lub zog Arduino UNO tus qauv, Cov Zaub yuav pib pom cov duab thiab txhua thib ob tus lej tsis raug.

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

Pom zoo: