Cov txheej txheem:

Social Media Counter Nrog ESP8266 thiab TFT: 10 Cov Kauj Ruam
Social Media Counter Nrog ESP8266 thiab TFT: 10 Cov Kauj Ruam

Video: Social Media Counter Nrog ESP8266 thiab TFT: 10 Cov Kauj Ruam

Video: Social Media Counter Nrog ESP8266 thiab TFT: 10 Cov Kauj Ruam
Video: Nikki Thao - Yog Hlub Nrog Kuv (Official Lyrics Video) 2024, Kaum ib hlis
Anonim
Social Media Counter Nrog ESP8266 thiab TFT
Social Media Counter Nrog ESP8266 thiab TFT
Social Media Counter Nrog ESP8266 thiab TFT
Social Media Counter Nrog ESP8266 thiab TFT
Social Media Counter Nrog ESP8266 thiab TFT
Social Media Counter Nrog ESP8266 thiab TFT

Cov lus qhia no yuav qhia koj yuav ua li cas thiaj ua lub rooj sib tham hauv xov tooj cua raws ESP8266 thiab xim TFT rau sab saum toj phab ntsa.

Tus social media counter no yuav tso tawm cov ntaub ntawv hais txog koj li Facebook, Instagram thiab Youtube account tsis tu ncua.

Kauj Ruam 1: Cov Cuab Yeej thiab Cov Khoom

Cov Cuab Yeej thiab Cov Khoom
Cov Cuab Yeej thiab Cov Khoom
Cov Cuab Yeej thiab Cov Khoom
Cov Cuab Yeej thiab Cov Khoom

Cov nqi ntawm cov khoom:

  • NodeMCU V2 Amica lossis Wemos D1 mini
  • ArduiTouch ESP cov khoom siv

Cov Cuab Yeej:

  • cam khwb cia hlau
  • ntsia hlau tsav tsheb
  • sab txiav plier
  • svoltmeter (yeem)

Software:

Arduino IDE Cov

Kauj Ruam 2: Sib dhos ntawm Arduitouch Teeb

Sib dhos ntawm Arduitouch Teeb
Sib dhos ntawm Arduitouch Teeb

Koj yuav tsum sib sau ua ke ArduiTouch cov khoom ua ntej. Thov ua tib zoo saib hauv phau ntawv qhia kev tsim kho.

Kauj Ruam 3: Txhim Kho Tsev Qiv Ntawv Ntxiv

Lub firmware tau sau nyob rau hauv Arduino IDE. Thov ua raws cov lus qhia no rau kev npaj Arduino IDE rau ESP8266:

Koj yuav xav tau qee lub tsev qiv ntawv ntxiv. Nruab ib lub tsev qiv ntawv hauv qab no los ntawm Arduino Library Manager

Adafruit GFX Library

Adafruit ILI9341 Lub Tsev Qiv Ntawv

XPT2046_Touchscreen los ntawm Paul Stoffregen

ArduinoJson

JsonStreamingParser

InstagramStats

YoutubeAPI

Koj tseem tuaj yeem rub tawm lub tsev qiv ntawv kuj ncaj qha raws li ZIP cov ntaub ntawv thiab uncompress lub nplaub tshev hauv qab koj tus lejduinosketchfolder/ qiv ntawv/ Tom qab teeb tsa Adafruit cov tsev qiv ntawv, rov pib dua Arduino IDE.

Kauj ruam 4: Firmware

Thov rub cov qauv coj mus kuaj thiab qhib nws hauv Arduino IDE. Ua ntej muab tso ua ke koj yuav tsum ntxiv qee tus neeg cov ntaub ntawv - saib cov kauj ruam tom ntej…

Kauj Ruam 5: Kev npaj rau WiFi

/*_ Txhais WiFi _*/

//#txhais WIFI_SSID "xxxxxx" // Sau koj tus SSID ntawm no

// #txhais WIFI_PASS "xxxxx" // Nkag mus rau koj tus lej Wi -nkaus ntawm no #define WIFI_HOSTNAME "Social_Counter" #define PORT 5444 #define WIFICLIENT_MAX_PACKET_SIZE 100/*_ Xaus ntawm WiFi cov ntsiab lus _*/

Nkag mus rau koj li WiFi SSID & tus lej zais hauv cov teb hauv ntu WiFi

Kauj Ruam 6: Npaj Facebook

/*_ Txhais Facebook teeb tsa _*/

#define FACEBOOK_HOST "graph.facebook.com"

#define FACEBOOK_PORT 443 #define PAGE_ID "YOUR_PAGE_ID" #define ACCESS_TOKEN "YOUR_ACCESS_TOKEN" // graph.facebook.com SHA1 fingerprint const char* facebookGraphFingerPrint = "YOUR_FINGER_PRINT"; /*_ Xaus ntawm Facebook teeb tsa _*/

  • Ua raws cov theem ntawm [nplooj ntawv no] (https://developers.facebook.com/docs/pages/getting-started) los tsim APP
  • Tom qab tsim lub app, mus rau kab ntawv tshawb.
  • Sab saum toj txoj cai hloov daim ntawv thov mus rau qhov tshiab uas koj tau tsim
  • Nyem "Tau Token" thiab tom qab ntawd nyem "Tau Txais Tus Neeg Siv Token"
  • Txheeb xyuas qhov "User_Friends" xaiv, nyem tau nkag mus token thiab lees paub qhov kev thov nrog koj tus lej nyiaj.
  • Tus yuam sij uas tshwm hauv lub bar tuaj yeem siv nrog lub tsev qiv ntawv.
  • Nyem rau ntawm [qhov txuas no] (https://developers.facebook.com/apps),
  • nyem rau ntawm lub app koj tsim. Koj tus lej siv thiab tus neeg siv khoom zais cia muaj nyob ntawm nplooj ntawv no. Koj yuav xav tau qhov no los txuas koj tus lej API, uas koj tuaj yeem ua tau siv lub tsev qiv ntawv

Kauj Ruam 7: Kev npaj rau Youtube

/*_ Txhais Youtube teeb tsa _*/

#define API_KEY "YOUR_API_KEY" // koj google apps API Token

#define CHANNEL_ID "YOUR_CHANNEL_ID" // ua qhov url ntawm channel /*_ Xaus ntawm Youtube teeb tsa _* /

Nws yog qhov tsim nyog xav tau los tsim Google Apps API qhov tseem ceeb:

  • Tsim daim ntawv thov [ntawm no] (https://console.developers.google.com)
  • Ntawm API Tus Thawj Coj ntu, mus rau "Cov Ntawv Pov Thawj" thiab tsim tus lej API tshiab
  • Pab kom koj daim ntawv thov sib tham nrog YouTube Api [ntawm no] (https://console.developers.google.com/apis/api/youtube)
  • Nco ntsoov qhov URL hauv qab no ua haujlwm rau koj hauv koj tus browser (Hloov tus yuam sij thaum kawg!):

Kauj ruam 8: Kev npaj rau Instagram

/*_ Txhais Instagram teeb tsa _*/

Txoj hlua Instagram_userName = "YOUR_USERNAME"; // los ntawm lawv cov instagram url

/*_ Xaus ntawm Youtube teeb tsa _*/

Koj tsuas yog yuav tsum sau koj lub npe Instagram hauv daim teb saum toj no.

Kauj Ruam 9: Kev Sib Sau Zaum Kawg

Tom qab muab tso ua ke thiab tso tawm koj yuav pom koj li Youtube, Facebook thiab Instagram stats tsis tu ncua ua tiav ntawm TFT.

Pom zoo: