Cov txheej txheem:

Follower thiab Subscriber Counter: 5 Kauj Ruam
Follower thiab Subscriber Counter: 5 Kauj Ruam

Video: Follower thiab Subscriber Counter: 5 Kauj Ruam

Video: Follower thiab Subscriber Counter: 5 Kauj Ruam
Video: Koj Thiab Kuv Xub Lub Ntiajteb - Coolaycoo x Zong Pha Xiong ZPX Solo Version 2024, Kaum ib hlis
Anonim
Follower thiab Subscriber Counter
Follower thiab Subscriber Counter
Follower thiab Subscriber Counter
Follower thiab Subscriber Counter

Txoj haujlwm no ua rau suav Instagram cov thwjtim thiab cov neeg rau npe hauv youtube..

platform siv:

Nab hab sej

Arduino

Kauj Ruam 1: Cov Ntaub Ntawv / Cov Cuab Yeej:

Cov Ntaub Ntawv / Cov Cuab Yeej
Cov Ntaub Ntawv / Cov Cuab Yeej
Cov Ntaub Ntawv / Cov Cuab Yeej
Cov Ntaub Ntawv / Cov Cuab Yeej
  • Arduino ib
  • Lcd ntaub thaiv npog
  • Programming kab
  • Windows PC

Kauj ruam 2: Tsim Api Keys

Tsim Api Keys
Tsim Api Keys
Tsim Api Keys
Tsim Api Keys

Rau instagram Api

Mus rau Lub Vev Xaib no:

thiab thawb tsim kom nkag tau token

Rau youtube Api

Koj tuaj yeem Ua Raws Cov Kauj Ruam Ntawm Lub Vev Xaib no:

Kauj ruam 3: Upload Sketch rau Arduino

Upload Sketch rau Arduino
Upload Sketch rau Arduino
Upload Sketch rau Arduino
Upload Sketch rau Arduino

Koj tuaj yeem rub Cov Cai Thiab Cov Haujlwm Los Ntawm Kuv Github Nplooj Ntawv:

github.com/ayberkeren/social-media-counter

Arduino Txoj Cai:

#suav nrog

Txoj hlua youtube_name = ""; // koj lub npe youtube String youtube_token = ""; // koj tus youtube token String instagram_token = ""; // koj instagram token unsigned ntev DELAY = 10; // ncua nruab nrab ntawm lub vijtsam (vib nas this) // teeb tsa lcd screen pins const int rs = 8, en = 9, d4 = 4, d5 = 5, d6 = 6, d7 = 7; LiquidCrystal lcd (rs, en, d4, d5, d6, d7); // tsim cov kev hloov pauv uas tsis tau kos npe rau tus neeg ua haujlwm ntev = 0, tus ua raws 2 = 0, tus neeg siv npe = 0, tus neeg siv npe 2 = 0, x = millis (); // tsim bytes rau logos byte instagram1 [8] = {0b00000, 0b01111, 0b10000, 0b10000, 0b10000, 0b10000, 0b10000, 0b11111}; byte instagram2 [8] = {0b00000, 0b11111, 0b00000, 0b00000, 0b00000, 0b00000, 0b01110, 0b10001}; byte instagram3 [8] = {0b00000, 0b11110, 0b00001, 0b11001, 0b11001, 0b00001, 0b00001, 0b11111}; byte instagram4 [8] = {0b10000, 0b10000, 0b10000, 0b10000, 0b10000, 0b10000, 0b10000, 0b01111}; byte instagram5 [8] = {0b10001, 0b10001, 0b01110, 0b00000, 0b00000, 0b00000, 0b00000, 0b11111}; byte instagram6 [8] = {0b00001, 0b00001, 0b00001, 0b00001, 0b00001, 0b00001, 0b00001, 0b11110}; byte youtube1 [8] = {0b11111, 0b11100, 0b11000, 0b10000, 0b10000, 0b10000, 0b10000, 0b10000}; byte youtube2 [8] = {0b11111, 0b00000, 0b10000, 0b11000, 0b11100, 0b11110, 0b11111, 0b11111}; byte youtube3 [8] = {0b11111, 0b00111, 0b00011, 0b00001, 0b00001, 0b00001, 0b00001, 0b10001}; byte youtube4 [8] = {0b10000, 0b10000, 0b10000, 0b10000, 0b10000, 0b11000, 0b11100, 0b11111}; byte youtube5 [8] = {0b11111, 0b11111, 0b11110, 0b11100, 0b11000, 0b10000, 0b00000, 0b11111}; byte youtube6 [8] = {0b10001, 0b00001, 0b00001, 0b00001, 0b00001, 0b00011, 0b00111, 0b11111}; teeb tsa tsis muaj dab tsi () {lcd.begin (16, 2); // pib lcd Serial.begin (9600); // pib ncua kev sib txuas lus qeeb (2000); Serial.println (youtube_name); // hais qhov hloov pauv rau txoj haujlwm ncua (1000); Serial.println (youtube_token); // hais qhov hloov pauv rau txoj haujlwm ncua (1000); Serial.println (instagram_token); // hais qhov hloov pauv rau txoj haujlwm}

void voj () {

yog (x <(DELAY*1000)) {drawinstagram (); lcd.setCursor (5, 1); lcd.print (tus ua raws); thaum (x0) {follower2 = Serial.parseInt (); subscriber2 = Serial.parseInt (); } x = millis (); x = x%(DELAY*2000); } tus neeg yuav khoom = subscriber2; ua raws = ua raws 2; }

lwm {drawyoutube (); lcd.setCursor (5, 1); lcd.print (tus neeg siv npe); thaum (x> = (DELAY*1000) && subscriber2 == subscriber) {thaum (Serial.available ()> 0) {follower2 = Serial.parseInt (); subscriber2 = Serial.parseInt (); } x = millis (); x = x%(DELAY*2000); } tus neeg yuav khoom = subscriber2; ua raws = ua raws 2; }}

// kos instagram logo

void drawinstagram () {lcd.createChar (0, instagram1); lcd.createChar (1, instagram2); lcd.createChar (2, instagram3); lcd.createChar (3, instagram4); lcd.createChar (4, instagram5); lcd.createChar (5, instagram6); lcd.clear (); lcd.setCursor (1,0); lcd.write (byte (0)); lcd.write (byte (1)); lcd.write (byte (2)); lcd.setCursor (1, 1); lcd.write (byte (3)); lcd.write (byte (4)); lcd.write (byte (5)); lcd.setCursor (5, 0); lcd.print ("Cov Ua Raws"); }

// kos youtubelogo

void drawyoutube () {lcd.createChar (6, youtube1); lcd.createChar (7, youtube2); lcd.createChar (8, youtube3); lcd.createChar (9, youtube4); lcd.createChar (10, youtube5); lcd.createChar (11, youtube6); lcd.clear (); lcd.setCursor (1,0); lcd.write (byte (6)); lcd.write (byte (7)); lcd.write (byte (8)); lcd.setCursor (1, 1); lcd.write (byte (9)); lcd.write (byte (10)); lcd.write (byte (11)); lcd.setCursor (5, 0); lcd.print ("Cov neeg yuav khoom"); }

Kauj ruam 4: Python

Nab hab sej
Nab hab sej
Nab hab sej
Nab hab sej

Kuv tau ua 2 qhov kev pab cuam nab nab ib ntawm lawv muaj cov neeg siv graphical interface lwm tus tsuas yog ua haujlwm ntawm bash

koj tuaj yeem siv ob qho tib si tiag lawv ua tib yam.

koj yuav tsum xaiv qhov chaw nres nkoj twg koj ntsaws arduino los ntawm cov npe thiab thawb xaiv khawm.

thiab koj tau ua tiav….

Rub Cov Kev Kawm Los Ntawm Kuv Github:

thiab cov lej yog hauv qab no ……

Kauj ruam 5: Ua tiav…

Pom zoo: