Cov txheej txheem:

ILI9341 Kov Shield rau Wemos D1 Mini: 4 Cov Kauj Ruam
ILI9341 Kov Shield rau Wemos D1 Mini: 4 Cov Kauj Ruam

Video: ILI9341 Kov Shield rau Wemos D1 Mini: 4 Cov Kauj Ruam

Video: ILI9341 Kov Shield rau Wemos D1 Mini: 4 Cov Kauj Ruam
Video: Arduino Nano + TFT Shield Arduino UNO 2024, Kaum ib hlis
Anonim
ILI9341 Kov Shield rau Wemos D1 Mini
ILI9341 Kov Shield rau Wemos D1 Mini

Nyob Zoo Makers!

Kuv ua ILI9341 daim thaiv rau Wemos D1 mini series. Siv daim ntaub thaiv no kuv tuaj yeem siv txhua txoj haujlwm ntawm 2.8 TFT. Nws ua haujlwm raws li lub vijtsam (tau kawg), ntxiv rau kuv tuaj yeem siv txoj haujlwm kov thiab lub qhov (socket) SD.

Cov lus qhia no tau tshoov siab los ntawm tsab cai no ntawm Nailbuster Inc.

Hauv cov theem tom ntej no kuv yuav qhia koj li cas tuaj yeem ua koj tus kheej daim thaiv.

Kauj Ruam 1: Cheeb Tsam Koj Xav Tau

Cheeb Tsam Koj Xav Tau
Cheeb Tsam Koj Xav Tau
Cheeb Tsam Koj Xav Tau
Cheeb Tsam Koj Xav Tau
  • ILI9341 2.8 "tft nrog kov nti
  • Wemos D1 mini (lossis mini Pro)
  • pawg thawj coj saib xyuas (min. 36colsx35rows)
  • L7805 tus tswj hluav taws xob IC + heatsink
  • 5.5x2.1 lub qhov hluav taws xob
  • 330nF capacitor
  • 100 nF capacitor
  • puv daim npav SD (lossis micro SD nrog lub adapter)
  • ib kab txiv neej thiab poj niam header
  • xov hlau
  • micro USB cable rau program rub tawm
  • 6-12V fais fab mov (xaiv tau)

Yog tias koj xav siv qhov kov tau ntawm TFT, koj yuav tsum yuav ib qho nrog kov nti.

Kauj ruam 2: Ntxiv SD Function

Ntxiv SD Function
Ntxiv SD Function
Ntxiv SD Function
Ntxiv SD Function

Raws li koj tuaj yeem pom Nailbuster's Circuit txiav txim siab qhov tseem ceeb ntawm tus pin txuas. Peb tsuas muaj ib yam ua, txuas SD tus pin rau MCU.

Txhua feem ntawm TFT sib tham nrog MCU los ntawm SPI npav. Yog li peb yuav tsum txuas peb SD tus pin rau SPI ntau zaus.

  • SD_MOSI rau MOSI tus pin ntawm MCU
  • SD_MISO rau MISO tus pin ntawm MCU
  • SD_SCK rau SCK tus pin ntawm MCU.

Tsuas yog SD_CS (qhev xaiv lossis SS) yuav tsum muaj qhov tshwj xeeb. Kuv siv tus pin D3 ua SD_CS.

Tau kawg koj yuav tsum muab plaub tus pin ntev txiv neej tus pin txuas rau SD txuas.

Xav paub ntau ntxiv txog lub tsheb npav SPI ntawm Wikipedia.

Kauj Ruam 3: Ua PCB

Ua PCB
Ua PCB
Ua PCB
Ua PCB
Ua PCB
Ua PCB
  • PCB dimension kuv siv yog 36 colons los ntawm 35 kab. Thaum xub thawj kuv tso cov khoom tseem ceeb thiab txheeb xyuas qhov kawg ntawm PCB. Tom qab ntawd kuv txiav nws mus rau qhov ntev kawg.
  • Ua plaub lub qhov rau hauv plaub lub ces kaum uas koj tuaj yeem txhim kho PCB.
  • Nthuav lub qhov los ntawm qhov uas koj tuaj yeem ntxig lub qhov hluav taws xob.
  • Txiav cov poj niam lub taub hau thiab muab lawv tso rau hauv PCB. Koj xav tau

    • 8 tus pin ntev x2 rau Wemos board
    • 14 pin ntev x1 thiab
    • 4 tus pin ntev x1 rau TFT
  • Solder

    • lub qhov hluav taws xob
    • cov capacitors
    • tus tswj hluav taws xob
    • cov xov hlau.
  • Tom qab ntawd koj yuav tsum txiav qee daim ntawm PCB kom tshem tawm cov luv. (Saib daim duab saum toj no.)
  • Hauv cov kauj ruam tom ntej no kuv qhia kom siv lub multimeter thiab tshawb xyuas cov kev sib txuas. Ua cov kauj ruam no koj tuaj yeem tshem tawm qee cov pa luam yeeb thiab cov khoom hlawv.:-)
  • Thaum kawg ntxig rau Wemos board thiab TFT rau hauv daim ntaub thaiv.

Txhawm rau txiav cov kab ntawv PCB muaj txoj hauv kev yooj yim heev. Siv lub laum me me nrog txoj kab uas hla 3.5 hli. Teem nws mus rau hauv lub qhov thiab tig nws nruab nrab ntawm koj cov ntiv tes.

Txhawm rau txuag koj lub Circuit Court los ntawm kev luv luv koj tuaj yeem sib sau ua ke ntawm daim ntawv yas uas siv qee qhov txuas thiab ntsia hlau.

Kauj Ruam 4: Qauv Qauv

Thaum xub thawj koj yuav tsum rub tawm thiab teeb tsa cov tsev qiv ntawv tom ntej:

  • Adafruit GFX lub tsev qiv ntawv duab duab nraaj thiab
  • Arduino tsev qiv ntawv rau XPT2046 los ntawm Github.

Tom qab ntawd rub tawm daim duab plaub txuas nrog.

  • Ua "khawm_SD_test_03" nplaub tshev thiab muab plaub cov ntaub ntawv tso rau hauv.
  • Qhib "button_SD_test_03.ino" los ntawm Arduino IDE thiab xa qhov program mus rau MCU.

Hauv cov phiaj xwm txuas nrog koj yuav pom cov qauv uas yuav coj koj mus siv daim ntaub thaiv.

Raws li koj yuav pom lub vijtsam ntsuas ntawm lub vijtsam portrait tsis zoo li. Yog tias koj muaj qhov ntsuas tau zoo dua thov qhia lawv rau peb.

Muaj qee cov pins uas tseem tshuav uas tuaj yeem siv los txuas koj daim thaiv npog rau cov ntsuas lossis lwm yam khoom siv.

  • D0 - digital I/O lossis SS ib qho cuab yeej SPI ntxiv
  • A0 - phau ntawv qhia tswv yim
  • RST
  • TX, RX - kev sib txuas lus hauv xov tooj cua, I2C lossis SS cov cuab yeej SPI ntxiv

Tau kawg koj tuaj yeem sib txuas lus nrog lwm cov khoom siv lossis khaws cov ntaub ntawv los ntawm Is Taws Nem los ntawm WiFi thiab. Txhawm rau ua nws pom kuv cov lus qhia yav dhau los.

  • Kev sib txuas WiFi ntawm ESP8266 MCUs los ntawm lub tsev router
  • Accesspoint -Station kev sib txuas lus ntawm ob ESP8266 MCUs.

Pom zoo: