Cov txheej txheem:

Google Photo Clock: 7 Kauj Ruam (nrog Duab)
Google Photo Clock: 7 Kauj Ruam (nrog Duab)

Video: Google Photo Clock: 7 Kauj Ruam (nrog Duab)

Video: Google Photo Clock: 7 Kauj Ruam (nrog Duab)
Video: Neej Sawm tuag nplaig hlauv leg 4/19/2020 2024, Hlis ntuj nqeg
Anonim
Image
Image
Google Duab Moos
Google Duab Moos
Google Duab Moos
Google Duab Moos
Google Duab Moos
Google Duab Moos

Cov lus qhia no qhia yuav siv ESP32 thiab LCD los ua lub moos digital nrog xaiv cov duab tso rau tom qab txhua feeb. Cov duab tau los ntawm koj sib koom Google Duab Duab, yooj yim nkag mus rau qhov sib txuas sib txuas ESP32 yuav ua txoj haujlwm;>

Kauj Ruam 1: Kev Npaj Kho Vajtse

Kev Npaj Kho Vajtse
Kev Npaj Kho Vajtse
Kev Npaj Kho Vajtse
Kev Npaj Kho Vajtse
Kev Npaj Kho Vajtse
Kev Npaj Kho Vajtse

YUAV TSUM UA HAUJ LWM ZOO TSHAJ PLAWS HARDWARE

Yog tias koj tau ua tiav cov lus qhia yav dhau los, koj tuaj yeem siv kho vajtse rau txoj haujlwm no thiab tuaj yeem hla cov khoom sib dhos:

  • https://www.instructables.com/id/Floating-Display/
  • https://www.instructables.com/id/COVID-19-WHO-Dash…

ESP8266/ESP32 Dev Board

Ib qho ESP8266/ESP32 Dev Board yuav tsum ua tau zoo.

Zaub Zaub

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

Cov qhob cij

Txhua daim ntawv qhia zaub mov uas tuaj yeem haum rau ESP Dev Board thiab LCD Zaub.

Jumper Hlau

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

Kauj ruam 2: Khoos phis tawj khoos phis tawj

Khoos phis tawj sib dhos
Khoos phis tawj sib dhos
Khoos phis tawj sib dhos
Khoos phis tawj sib dhos
Khoos phis tawj sib dhos
Khoos phis tawj sib dhos
Khoos phis tawj sib dhos
Khoos phis tawj sib dhos

Thawb ESP32 Dev Board rau ntawm lub khob cij thiab txuas LCD nrog cov xov hluav taws xob.

Nov yog cov piv txwv piv txwv sib txuas:

ESP8266 -> LCD

Vcc -> Vcc

GND -> GND GPIO 15 -> CS GPIO 5 -> DC (yog tias muaj) RST -> RST GPIO 14 -> SCK GPIO 12 -> MISO (xaiv tau) GPIO 4 -> LED (yog tias muaj) GPIO 13 -> MOSI / SDA

ESP32 -> LCD

Vcc -> Vcc

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

Kauj Ruam 3: Kev Npaj 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

Kev them nyiaj yug ESP8266

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

github.com/esp8266/Arduino

Arduino ESP8266 filesystem uploader

Ua raws li Cov Lus Qhia Txhim Kho ntxiv rau uploader plugin yog tias koj tseem tsis tau ua nws:

github.com/esp8266/arduino-esp8266fs-plugi…

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)

Kauj ruam 4: Teeb & Upload

Teeb & Upload
Teeb & Upload
  1. Rub tawm qhov program ntawm GitHub: (nias "Clone lossis Download" -> "Download ZIP")
  2. Qhib GooglePhotoClock.ino nrog Arduino IDE
  3. Sau koj li WiFi AP chaw rau hauv SSID_NAME thiab SSID_PASSWORD
  4. Sau cov sijhawm xov xwm hauv cheeb tsam rau GMT_OFFSET_SEC, DAYLIGHT_OFFSET_SEC thiab TZ
  5. Npaj ib qho album sib koom hauv Google Duab, tsim qhov sib koom txuas thiab sau GOOGLE_PHOTO_SHARE_LINK
  6. Yog tias koj tsis siv ILI9341 LCD, tawm lus kab 133 thiab tsis ua raws qhov kev tshaj tawm hauv chav kawm LCD raug
  7. Txuas ESP Dev Board rau lub computer
  8. Nias Upload khawm kom suav sau thiab xa qhov program mus rau ESP Dev Board

Kauj Ruam 5: ESP8266 BearSSL CertStore

ESP8266 BearSSL Ntawv Pov Thawj
ESP8266 BearSSL Ntawv Pov Thawj
ESP8266 BearSSL Ntawv Pov Thawj
ESP8266 BearSSL Ntawv Pov Thawj

Google Duab xav tau txhua qhov kev sib txuas hauv HTTPS. ESP8266 qhov hloov tshiab kawg siv BearSSL kev siv thiab nws xav tau qee qhov kev npaj ua ntej ntawm CertStore cov ntaub ntawv.

Kuv tau tsim cov ntaub ntawv CertStore ntawm 2020 Plaub Hlis 18, koj tsim dua tshiab los ntawm kev khiav:

nab hab sej make_spiffs.py

Yog tias koj siv ESP8266, ua raws cov kauj ruam txhawm rau upload cov ntaub ntawv CertStore:

  1. Qhib Arduino IDE
  2. Txuas ESP8266 dev board rau lub computer
  3. Xaiv Cov cuab yeej ntawv qhia zaub mov
  4. Xaiv ESP8266 Sketch Data Upload
  5. Tos upload tiav

Kauj Ruam 6: Nws Ua Haujlwm Li Cas?

  1. Txuas mus rau WiFi AP uas tau npaj ua ntej
  2. Tau txais lub sijhawm tam sim no los ntawm NTP server
  3. Ua rau Google Duab sib koom txuas HTTPS thov
  4. HTTPS cov lus teb 302 thiab suav nrog qhov chaw xa rov qab hauv kab lus teb
  5. Ua qhov chaw hloov chaw HTTPS thov
  6. Nyeem daim duab npe los ntawm Javascript array hauv HTML teb (HTML ntau dua 500 KB, nws xav tau qee lub sijhawm los nyeem thiab faib cov ntaub ntawv)
  7. Rau txhua qhov minitues, xaiv ib daim duab hauv daim duab npe
  8. Rau ESP8266 nkaus xwb, sim nrhiav cov duab cached hauv SPIFFS ua ntej
  9. Ua daim duab txuas HTTPS thov
  10. Rau ESP8266 nkaus xwb, khaws cov ntawv yees duab rau SPIFFS
  11. Zaub daim duab
  12. Luam lub sijhawm tam sim no ntawm daim duab

Kauj ruam 7: Txaus siab rau

Txaus siab rau!
Txaus siab rau!
Txaus siab rau!
Txaus siab rau!

Nws yog lub sijhawm los ntxiv cov duab nyiam rau daim Duab Duab Sib Koom thiab tso qhov Google Duab Clock rau ntawm koj lub rooj.

Pom zoo: