Cov txheej txheem:

Ntsej Muag Paub OSD Daim Duab Duab: 11 Kauj Ruam (nrog Duab)
Ntsej Muag Paub OSD Daim Duab Duab: 11 Kauj Ruam (nrog Duab)

Video: Ntsej Muag Paub OSD Daim Duab Duab: 11 Kauj Ruam (nrog Duab)

Video: Ntsej Muag Paub OSD Daim Duab Duab: 11 Kauj Ruam (nrog Duab)
Video: Ntxhais Hmoob Dhia Yeeb Yam - สาวม้งเต้นรำ - Hmong Girls Dance 2024, Kaum ib hlis
Anonim
Ntsej Muag Paub OSD Duab Ncej
Ntsej Muag Paub OSD Duab Ncej
Ntsej Muag Paub OSD Duab Ncej
Ntsej Muag Paub OSD Duab Ncej
Ntsej Muag Paub OSD Duab Ncej
Ntsej Muag Paub OSD Duab Ncej
Ntsej Muag Paub OSD Duab Ncej
Ntsej Muag Paub OSD Duab Ncej

Cov Lus Qhia no qhia yuav ua li cas kom ua daim duab thav duab nrog ntsej muag paub ntawm Screen Display (OSD).

OSD tuaj yeem qhia sijhawm, huab cua lossis lwm yam ntaub ntawv hauv internet uas koj xav tau.

Kauj Ruam 1: Vim Li Cas OSD Duab Ncej?

Vim li cas OSD Photo Frame?
Vim li cas OSD Photo Frame?
Vim li cas OSD Photo Frame?
Vim li cas OSD Photo Frame?

Kuv muaj 2 lub phiaj xwm yees duab ntawm Instructables ua ntej:

www.instructables.com/id/ESP32-Photo-Clock…

www.instructables.com/id/Arduino-BiJin-ToK…

Ob leeg khaws ib daim duab nrog kev zoo nkauj thiab lub sijhawm los ntawm Internet txhua feeb thiab tso tawm ntawm LCD.

Qhia kev zoo nkauj yog qhov zoo, tab sis lawv txhua tus yog neeg txawv rau kuv. Yuav ua li cas txog kev siv tus kheej nyiam cov duab thiab ntxiv lub sijhawm tam sim no thiab cov ntaub ntawv tam sim ntawd ntxiv rau nws?

Txoj haujlwm no tab tom tshawb nrhiav yuav ua li cas.

Kauj Ruam 2: Vim Li Cas Paub Txog?

Vim Li Cas Paub Paub?
Vim Li Cas Paub Paub?
Vim Li Cas Paub Paub?
Vim Li Cas Paub Paub?
Vim Li Cas Paub Paub?
Vim Li Cas Paub Paub?
Vim Li Cas Paub Paub?
Vim Li Cas Paub Paub?

Cia saib yuav ua li cas ntxiv cov ntaub ntawv tam sim OSD rau daim duab ua ntej:

  1. Random xaiv ib daim duab los ntawm daim nplaub tshev tshwj xeeb
  2. Muab sij hawm
  3. Tau txais cov ntaub ntawv tam sim los ntawm Is Taws Nem
  4. kos lub sijhawm thiab cov ntaub ntawv tam sim ntawm daim duab

Kauj ruam 1-3 yog ncaj nraim rau pem hauv ntej; Kauj Ruam 4 kuj saib yooj yim, tab sis txiav txim qhov twg los kos cov ntawv tsis yooj yim li.

Yog tias cov ntawv me me dhau, nws nyuaj rau nyeem hauv qhov tsim nyog nrug; Yog tias cov ntawv me me loj dhau, feem ntau nws yuav npog cov khoom duab. Tshwj xeeb tshaj yog yog nws yog duab duab, cov ntawv npog lub ntsej muag tsis nyiam.

Txij li txoj haujlwm ntawm lub ntsej muag rau txhua daim duab tsis zoo ib yam, txhawm rau zam OSD npog ntsej muag peb xav tau txheej txheem tshuaj xyuas lub ntsej muag ua ntej. Tom qab ntawd peb tuaj yeem pom thaj tsam tsis muaj ntsej muag txhawm rau kos cov ntawv.

Kauj Ruam 3: 2-tiers Tsim

2-tiers Tsim
2-tiers Tsim

Lub ntsej muag txheeb xyuas cov txheej txheem xav tau qee lub zog ua haujlwm, hauv qhov sib txawv, cov duab thav duab tuaj yeem hnyav heev. Yog li kuv faib nws ua 2 qib:

Neeg rau zaub mov

Lub ntsej muag paub lub tshuab yees duab yog Node.js app server. Rau txhua qhov thov HTTP, nws yuav:

  1. Xaiv ib daim duab los ntawm daim ntawv tais ceev tseg
  2. Pom lub ntsej muag
  3. txiav txim siab tsis muaj ntsej muag lossis tsawg kawg ntsej muag thaj tsam
  4. Lub sijhawm ntawd, khaws cov huab cua lossis lwm yam ntaub ntawv muaj txiaj ntsig los ntawm Is Taws Nem txhua lub sijhawm
  5. Kos lub sijhawm thiab cov ntaub ntawv tam sim ntawm daim duab
  6. Xa daim duab nrog OSD hauv JPEG hom ntawv raws li HTTP cov lus teb

Neeg

Tus neeg siv khoom tuaj yeem yog lub vev xaib, applet lossis IoT ntaus ntawv.

Piv txwv li ESP32 dev boasrd nrog 2-4 nti LCD yog qhov haum rau tso rau ntawm lub desktop ua cov duab me me.

Kauj Ruam 4: Teeb Duab Cov Neeg Siv Khoom Xaiv 1: Docker Duab

Teeb Duab Cov Neeg rau zaub mov Xaiv 1: Docker Duab
Teeb Duab Cov Neeg rau zaub mov Xaiv 1: Docker Duab
Teeb Duab Cov Neeg rau zaub mov Xaiv 1: Docker Duab
Teeb Duab Cov Neeg rau zaub mov Xaiv 1: Docker Duab

Txhawm rau kom yooj yim, Kuv tau tsim ua ntej Docker duab rau lub ntsej muag paub yees duab OSD Node.js app server.

Yog tias koj tseem tsis tau teeb tsa Docker, thov ua raws li Docker Pib Pib qhia:

www.docker.com/get-started

Tom qab ntawv khiav cov lus txib hauv qab no: (hloov/txoj hauv kev/rau/duab rau koj tus kheej txoj kev yees duab)

docker run -p 8080: 8080 -v/path/to/photo:/app/photo moononournation/ntsej muag-paub-yees duab-osd: 1.0.1

Ntsuas nws los ntawm kev mus rau https:// localhost: 8080/

Koj yuav pom lub sijhawm tso tawm tsis nyob hauv koj cheeb tsam sijhawm:

docker run -p 8080: 8080 -e TZ = Asia/Hong_Kong -v/path/to/photo:/app/photo moononournation/face -aware -photo -osd: 1.0.1

Yog tias koj nyob hauv Hong Kong zoo li kuv, koj tuaj yeem ntxiv xov xwm huab cua hauv Hong Kong:

docker run -p 8080: 8080 -e TZ = Asia/Hong_Kong -e OSD = HK_Weather -v/path/to/photo:/app/photo moononournation/face -aware -photo -osd: 1.0.1

Yog tias koj xav txhim kho koj tus kheej cov ntaub ntawv OSD:

mkdir -p ~/git

cd ~/git git clone https://github.com/moononournation/face-aware-photo-osd.git docker run -it -p 8080: 8080 -e TZ = Asia/Hong_Kong -e OSD = HK_Weather -e DEBUG = Y -v/path/to/photo:/app/photo -v ~/git/ntsej muag-paub-yees duab-osd/app.js: /app/app.js moononournation/ntsej muag-paub-yees duab-osd: 1.0. 1

Hloov kho update_osd () muaj nuj nqi hauv app.js kom txiav txim siab koj tus kheej OSD cov ntaub ntawv. Tom qab kev txhim kho, yooj yim tshem DEBUG = Y ib puag ncig los ntawm cov lus txib docker.

Kauj Ruam 5: Teeb Duab Cov Neeg Siv Khoom Xaiv 2: Tsim Los Ntawm Qhov Chaw

Yog tias koj paub nrog Node.js, koj tuaj yeem tsim lub app server los ntawm qhov chaw.

Tau qhov chaw:

git clone

Nruab pob:

cd ntsej muag-paub-yees duab-osd

npm nruab

Tsim daim ntawv tais ceev tseg thiab luam koj cov duab rau hauv daim nplaub tshev.

Khiav app server:

ntawm app.js

Kauj Ruam 6: Cov Neeg Siv Khoom Xaiv 1: Web Browser

Client Option 1: Web Browser
Client Option 1: Web Browser

Cias browser rau https:// localhost: 8080/

Nplooj ntawv tau sau ntawv pib thauj khoom kom haum cov duab me me txhua feeb.

PS Yog tias koj xauj los ntawm lwm lub tshuab uas tsis tau khiav lub app server, nco ntsoov hloov pauv localhost mus rau app server hostname lossis IP chaw nyob.

Kauj Ruam 7: Cov Neeg Siv Khoom Xaiv 2: ESP32 + LCD

Cov Neeg Siv Khoom Xaiv 2: ESP32 + LCD
Cov Neeg Siv Khoom Xaiv 2: ESP32 + LCD
Cov Neeg Siv Khoom Xaiv 2: ESP32 + LCD
Cov Neeg Siv Khoom Xaiv 2: ESP32 + LCD
Cov Neeg Siv Khoom Xaiv 2: ESP32 + LCD
Cov Neeg Siv Khoom Xaiv 2: ESP32 + LCD
Cov Neeg Siv Khoom Xaiv 2: ESP32 + LCD
Cov Neeg Siv Khoom Xaiv 2: ESP32 + LCD

Tus neeg siv daim duab thav duab tuaj yeem yooj yim ib yam li ESP32 dev board thiab LCD.

Nov yog cov cuab yeej xav tau:

ESP32 Dev Board

Ib qho ESP32 dev board yuav tsum ua tau zoo, lub sijhawm no kuv tab tom siv lub rooj tsav xwm hu ua MH-ET LIVE.

Zaub Zaub

Ib qho Arduino_GFX txhawb LCD, koj yuav pom tam sim no txhawb cov zaub ntawm GitHub nyeem:

github.com/moononournation/Arduino_GFX

Jumper Hlau

Qee Jumper Wires, nyob ntawm dev pawg thiab LCD pins teeb tsa. Feem ntau 6-9 tus poj niam rau poj niam jumper xov hlau yog txaus.

LCD Zaub

Qee qhov kev txhawb nqa pab LCD sawv ntsug ncaj, lub sijhawm no kuv tab tom siv daim npav tuav daim npav.

Kauj Ruam 8: ESP32 + LCD Sib dhos

ESP32 + LCD Los Ua Ke
ESP32 + LCD Los Ua Ke
ESP32 + LCD los ua ke
ESP32 + LCD los ua ke
ESP32 + LCD Los Ua Ke
ESP32 + LCD Los Ua Ke

ESP32 nrog tus pin header nyob rau sab saud yog qhov zoo dua. Yog hais tias tus pin header ntawm sab qis, tsuas yog muab lub rooj tsavxwm ntxeev;>

Txuas ESP32 thiab LCD nrog cov xov hluav taws xob, tom qab haum nws kom sawv ntsug.

Nov yog cov piv txwv piv txwv sib txuas:

ESP32 -> LCD

Vcc -> Vcc GND -> GND GPIO 5 -> CS GPIO 27 -> DC (yog tias muaj) GPIO 33 -> RST GPIO 18 -> SCK GPIO 19 -> MISO (xaiv tau) GPIO 22 -> LED (yog tias muaj) GPIO 23 -> MOSI / SDA

Kauj Ruam 9: ESP32 + LCD Software

ESP32 + LCD Software
ESP32 + LCD Software

Arduino IDE Cov

Rub tawm thiab teeb tsa Arduino IDE yog tias koj tseem tsis tau ua nws:

www.arduino.cc/en/main/software

Txhawb ESP32

Ua raws li Cov Lus Qhia Txhim Kho ntxiv ESP32 kev txhawb nqa yog tias koj tseem tsis tau ua nws:

github.com/espressif/arduino-esp32

Arduino_GFX Library

Rub tawm cov tsev qiv ntawv Arduino_GFX tshiab kawg: (nias "Clone lossis rub tawm" -> "Download ZIP")

github.com/moononournation/Arduino_GFX

Ntshuam tsev qiv ntawv hauv Arduino IDE. (Arduino IDE "Sketch" Menu -> "Xws li Lub Tsev Qiv Ntawv" -> "Ntxiv. ZIP Library" -> xaiv rub tawm ZIP file)

Sau & Upload

  1. Qhib Arduino IDE
  2. Qhib ESP32PhotoFrame tus qauv qauv ("Cov Ntaub Ntawv" -> "Piv txwv" -> "GFX Library rau Arduino" -> "WiFiPhotoFrame")
  3. Sau koj li WiFi AP chaw rau hauv SSID_NAME thiab SSID_PASSWORD
  4. Hloov koj lub server hostname lossis IP thiab chaw nres nkoj hauv HTTP_HOST thiab
  5. Nias Arduino IDE "Upload" khawm
  6. Yog tias koj pom qhov kev taw qhia tsis raug, hloov tus nqi "kev hloov" (0-3) hauv cov chav kawm tshiab

Kauj ruam 10: Txaus siab rau Duab

Txaus siab rau Duab!
Txaus siab rau Duab!

Nws yog lub sijhawm los muab IoT duab thav duab ntawm koj lub desktop thiab txaus siab rau!

Kauj Ruam 11: Dab Tsi Ntxiv?

  • Ntxiv koj tus kheej cov ntaub ntawv tam sim
  • Ua tib zoo qhib qhov loj me ntawm daim duab kom pom lub ntsej muag zoo dua
  • Tsis siv neeg ua haujlwm los tso cov duab tshiab rau tus neeg rau zaub mov daim duab
  • Siv cov duab ntau;>

Pom zoo: