Diy YouTube Live Subscriber Counter Using Node MCU (ESP8266)& Nokia 5110 LCD – Full IoT Project Guide
In the digital age, YouTube has become one of the most popular platforms for content creators worldwide. If you are a creator or just a tech enthusiast, displaying your live subscriber count can be both exciting and motivating. In this tutorial, we will build a YouTube Live Subscriber Counter using NodeMCU (ESP8266) and a Nokia 5110 LCD display, which updates your subscriber count in real time.
This project is not only functional but also visually appealing, perfect for your desk, studio, or YouTube setup. It combines IoT, electronics, and programming, making it an ideal project for Arduino enthusiasts, ESP8266 hobbyists, and DIY makers.
By the end of this guide, you will have a fully working subscriber counter that fetches live data from YouTube using the YouTube Data API v3, displays it on a retro LCD, and can be customized with optional features like LED indicators and 3D-printed cases.
Components Needed
Before we start, here is the complete list of components required for this project:
NodeMCU ESP8266 – The main controller that connects to Wi-Fi and fetches data.
Nokia 5110 LCD display (SPI) – To display the subscriber count in a retro style.
Jumper wires – For connections.
USB cable – For programming and power supply.
Optional breadboard – For prototyping.
Optional LED / Buzzer – For subscriber milestone notifications.
Tip: Make sure your Nokia 5110 LCD is compatible with 3.3V logic since NodeMCU works on 3.3V.
Circuit Connections
NodeMCU → Nokia 5110 LCD
| Nokia 5110 Pin | NodeMCU Pin |
|---|---|
| RST | D4 (GPIO2) |
| CE / CS | D3 (GPIO0) |
| DC | D2 (GPIO4) |
| DIN | D7 (GPIO13) |
| CLK | D5 (GPIO14) |
| VCC | 3.3V |
| BL | 3.3V or GND |
| GND | GND |
Note: BL pin controls the backlight. Connect it to 3.3V for constant light or GND if you want it off.
Step 1: Setup YouTube API
To fetch live subscriber data, you need an API key from Google. Follow these steps:
Go to Google Cloud Console and create a new project.
Enable YouTube Data API v3 for your project.
Create an API Key. Copy this key; it will be used in your NodeMCU code.
Obtain your Channel ID:
Open your YouTube channel → Right-click → “View Page Source” → Search for
"channelId"→ Copy the string (e.g.,UCxxxx123456789).
Step 2: Arduino IDE Setup
Install Arduino IDE (if not already installed).
Install ESP8266 Board Package:
Go to File → Preferences → Additional Board Manager URLs → add:
Open Tools → Board → Board Manager, search for ESP8266, and install.
Install required libraries via Library Manager:
Adafruit GFX LibraryAdafruit PCD8544 Nokia 5110 LCDArduinoJson
Step 3: Arduino Code for NodeMCU
Step 4: Features of the Project
Real-time subscriber count display
Compact retro LCD screen
Easy to build & customize
Optional LED/Buzzer for subscriber milestones
Fully programmable using Arduino IDE
Wi-Fi enabled via NodeMCU ESP8266
Step 5: Optional Upgrades
Scrolling channel name on LCD if too long.
LED animation when subscriber count increases.
Mount the LCD in a 3D-printed YouTube Play Button case.
Upgrade to TFT display for colorful display & animation.
Reduce update interval to 15 seconds but ensure you don’t exceed API quota.
Step 6: Troubleshooting Tips
If the LCD is blank: check contrast (
display.setContrast()).Ensure NodeMCU is connected to Wi-Fi before fetching data.
Make sure API Key and Channel ID are correct.
Use Serial Monitor to debug HTTP requests.
If ArduinoJson fails, increase DynamicJsonDocument size from 1024 → 2048.
Conclusion
This NodeMCU + Nokia 5110 LCD YouTube Live Subscriber Counter is an exciting DIY IoT project that combines electronics, programming, and web API usage.
It’s perfect for YouTubers, tech enthusiasts, and makers who want to display live subscriber counts on their desk or in their studio. With optional upgrades like LED alerts, scrolling text, and custom casing, this project can also become a professional-looking gadget.
Start building today, and make your desk or studio more interactive and tech
Comments
Post a Comment