Nick Koumaris
Published © GPL3+

YouTube Subscriber Counter Using an ESP8266 Board

Welcome to another ESP8266 project. Today we are going to build a DIY YouTube subscriber counter with a big LCD display.

IntermediateFull instructions provided2 hours1,262
YouTube Subscriber Counter Using an ESP8266 Board

Things used in this project

Hardware components

20x4 Character LCD
×1
esp8266 - Wemos D1 Mini
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)

Story

Read more

Custom parts and enclosures

Thingiverse

https://www.thingiverse.com/thing:2338562

Code

Code snippet #2

Plain text
void setup()  {
  Serial.begin(9600);
  int cursorPosition=0;  lcd.begin(20,4); 
  lcd.setCursor(0,0);
  lcd.print("Connecting ....");  createCustomChars();
  
  WiFi.begin(ssid, password);
  
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    lcd.setCursor(cursorPosition,1); 
    lcd.print(".");
    cursorPosition++;
  }

Code snippet #3

Plain text
void loop() {
  int length;
  String subscribersString = String(getSubscribers());
  if(subscribers != subscribersBefore)
  {
    lcd.clear();
    length = subscribersString.length();
    printSubscribers(length,subscribersString);
    subscribersBefore = subscribers;
  }  
  delay(60000);
}

Github

https://github.com/bblanchon/ArduinoJson

Github file

https://github.com/esp8266/Basic/tree/master/libraries/LiquidCrystal

Credits

Nick Koumaris

Nick Koumaris

13 projects • 303 followers
My name is Nick Koumaris and I am a software engineer from Sparta, Greece. I love building projects and share them with the world!

Comments