Cov txheej txheem:
- Kauj Ruam 1: Daim Ntawv Teev Npe
- Kauj Ruam 2: Daim Kab Xaim
- Kauj ruam 3: Software
- Kauj ruam 4: Cov ntsiab lus
Video: Arduino TFT Graphics Shield: 4 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Cov lus qhia no piav qhia yuav ua li cas thiaj ua tau 240 x 320 pixel (QVGA) xim daim duab thaiv rau koj Arduino UNO R3.
Cov ntaub thaiv npog, uas yog lub tsheb npav SPI thiab ILI9341 cov khoom siv saib xyuas, ntsaws ncaj qha rau koj Arduino.
Tsuas yog 5 Arduino cov ntaub ntawv pins tau siv uas tawm ntawm lwm tus pin dawb rau koj cov phiaj xwm.
Cov zaub TFT yog qhov ntev ib yam li koj li Arduino uas ua rau pob khoom huv si.
Daim ntaub thaiv:
- tshem tawm qhov xav tau rau cov kab hluav taws xob.
- muab qhov ruaj khov rau cov zaub
- muaj qhov tsim nyog 5 volt txog 3 volt qhov faib hluav taws xob
- tuaj yeem raug teeb tsa nyob rau sab saum toj ntawm lwm cov ntaub thaiv npog Arduino
Tus nqi kwv yees ntawm ib feem yog tsawg dua $ 20
Duab
Daim duab 1 qhia txog Arduino daim ntaub thaiv hluav taws xob.
Cov vis dis aus qhia txog daim thaiv npog TFT hauv kev nqis tes ua.
Kauj Ruam 1: Daim Ntawv Teev Npe
Cov hauv qab no tau txais los ntawm
- 1 tsuas yog 2.2 Ntiag TFT SPI LCD Zaub Module 240*320 ILI9341 nrog SD Card Qhov rau Arduino Raspberry Pi 51/AVR/STM32/ARM/PIC [1]
- 1 tsuas yog Tsab Ntawv Tshaj Tawm PCB nthuav dav rau Arduino ATMEGA328P UNO R3 Shield FR-4 Fiber PCB Breadboard 2mm 2.54mm Suab
Cov hauv qab no tau txais hauv zos:
- 5 tsuas yog 2K2 ohm 1/8 watt hlau zaj duab xis resistors
- 5 tsuas yog 3k3 ohm 1/8 watt hlau zaj duab xis resistors
- 1 tsuas yog 40 tus pin header davhlau ya nyob twg sawb 0.1 "/2.54mm suab rau PCBs
- 10 amp tinned tooj liab fuse xaim
Tus nqi kwv yees ntawm ib feem yog tsawg dua $ 20
Kauj Ruam 2: Daim Kab Xaim
TFT module lees paub 5 volts, vim nws muaj 3 volt tus tswj hluav taws xob, tab sis txhua qhov TFT cov tswv yim xav tau 3 volts.
2K2 | 3K3 qhov faib hluav taws xob txo Arduino 5 volt tso tawm mus rau 3 volts.
Duab
- Daim duab 1 qhia txog daim duab kab hluav taws xob TFT.
- Daim duab 2 qhia txog daim thaiv thaiv
- Daim duab 3 qhia txog daim thaiv npog hauv qab
- Daim duab 4 qhia yog saib sab saum toj ntawm daim ntaub thaiv
- Daim duab 5 qhia txog chav sib dhos
Kev Xeem
- Tshem lub TFT zaub los ntawm daim ntaub thaiv
- Ntxig daim ntaub thaiv rau hauv koj Arduino
- Txuas koj Arduino rau hauv koj lub computer
- Txheeb xyuas tias txhua qhov kev faib hluav taws xob sib cais ntsuas 3 volts.
- Tshem tawm Arduino ntawm koj lub computer
- Plug rau hauv TFT zaub
- Tam sim no koj npaj txhij mus.
Kauj ruam 3: Software
Yuav tsum muaj peb lub tsev qiv ntawv cov ntaub ntawv ntxiv nrog rau cov lej txuas
Kauj ruam 1
Rub tawm cov ntawv qiv hauv qab no:
- https://github.com/adafruit/Adafruit_ILI9341
- https://github.com/adafruit/Adafruit-GFX-Library
- https://github.com/adafruit/Adafruit_BusIO
Txhua ntawm cov ntaub ntawv saum toj no yog nyob rau hauv zip hom thiab yuav tshwm nyob rau hauv koj cov ntawv tais ceev tseg
Kauj ruam 2
Xaiv thiab teeb tsa txhua lub tsev qiv ntawv saum toj no siv koj Arduino IDE:
- Nyem "Sketch | Suav nrog Tsev Qiv Ntawv | Ntxiv Zip Library… | Adafruit_ILI9341-master.zip”
- Nyem "Sketch | Suav nrog Tsev Qiv Ntawv | Ntxiv Zip Library… | Adafruit-GFX-Library-master.zip”
- Nyem "Sketch | Suav nrog Tsev Qiv Ntawv | Ntxiv Zip Library… | Adafruit_BusIO-master.zip”
Kauj ruam 3
Los ntawm koj Arduino IDE:
- Luam cov ntawv txuas "graphicstest2.ino" txuas rau Arduino kos duab [1]
- Txuag cov duab kos ua "graphicstest2" tom qab ntawv rub nws mus rau koj Arduino
Nco tseg
[1]
Cov ntsiab lus ntawm "graphicstest2.ino" zoo ib yam rau lub tsev qiv ntawv piv txwv cov ntaub ntawv "… | Arduino | qiv | Adafruit_ILI9341-tus tswv | piv txwv | graphicstest | graphicstest.ino”tshwj tsis yog tias qee qhov tso saib ntxiv cov pins tau teev tseg hauv kab ntawv.
Cov cai rau Daim Npav Duab kuj tseem suav nrog.
Kauj ruam 4: Cov ntsiab lus
Cov lus qhia piav qhia yuav ua li cas thiaj ua daim npog TFT rau koj Arduino Uno R3
Display size is 320 x 240 pixels (QVGA)
SPI daim ntaub thaiv ntsaws ncaj qha rau koj Arduino
Tsuas yog 5 tus pin cov ntaub ntawv Arduino xav tau
Cov zaub TFT yog qhov ntev ib yam li koj Arduino uas ua rau pob ntim huv si.
Tus nqi kwv yees ntawm cov khoom yog $ 20
Nyem qhov no mus saib kuv lwm cov ntawv qhia.
Pom zoo:
Teeb Duab Neeg Hlau Nrog Adafruit Shield (Ua Kom Nws Sib Tw): 10 Kauj Ruam (nrog Duab)
Teeb Duab Neeg Hlau Nrog Adafruit Shield (Ua Kom Nws Sib Tw): Nyob zoo kuv lub npe Jacob thiab kuv nyob hauv tebchaws Askiv. Hauv qhov haujlwm no kuv yuav tsim tus neeg hlau uas kos rau koj. *Kuv paub tseeb tias ntau tus ntawm koj xav pom nws yog li yog koj xav paub thov hla mus rau txoj cai thib ob mus rau kauj ruam kawg tab sis nco ntsoov rov qab los ntawm no kom pom
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
Graphics Test ILI9341 TFT LCD SPI Zaub: 6 Cov Kauj Ruam
Kev Ntsuas Duab ILI9341 TFT LCD SPI Zaub: cuam tshuam nrog 2.8 nti SPI TFT uas muaj ILI9341 nti rau Arduino Uno
Arduino Uno: Bitmap Animation ntawm ILI9341 TFT Touchscreen Display Shield Nrog Visuino: 12 Cov Kauj Ruam (nrog Duab)
Arduino Uno: Bitmap Animation ntawm ILI9341 TFT Touchscreen Display Shield Nrog Visuino: ILI9341 raws li TFT Touchscreen Display Shields yog nrov heev tus nqi qis Shields rau Arduino. Visuino tau muaj kev txhawb nqa rau lawv ib ntus, tab sis kuv yeej tsis tau muaj sijhawm los sau Tutorial txog yuav siv lawv li cas. Tsis ntev los no txawm tias tsawg tus neeg nug