How to Make a YouTube Live Subscriber Counter Using ESP32 & MAX7219 | Step-by-Step Guide

Introduction

If you are a YouTuber or electronics enthusiast, a YouTube Live Subscriber Counter is an exciting and professional way to display your channel’s growth in real time.
In this guide, you’ll learn how to make a YouTube Live Subscriber Counter using ESP32 and MAX7219 LED display, which shows:

  • Total Subscribers
  • Total Views
  • Total Videos

All data is fetched live from YouTube using the YouTube Data API v3 and updated automatically every few minutes.

This project is perfect for:

  • YouTube studios
  • Live streaming setups
  • Creator desks
  • Tech content creators

Let’s build it step by step...

👉WATCH COMPLE VIDEO ON YOUTUBE


Components Used

Here is the list of components required for this project:

  1. ESP32 Wi-Fi Module
  2. MAX7219 LED Matrix Display
  3. Micro USB Female Jack
  4. USB Cable
  5. Laptop / PC
  6. Jumper Wires (Male–Female)
  7. Wi-Fi Connection
  8. Arduino IDE Software
  9. 3D Printed Enclosure (Optional, for professional look


Step 1: Connect ESP32 with MAX7219

Make the following wire connections carefully:

MAX7219 PinESP32 Pin
GNDGND
VCCVIN
DIND13
CSD12
CLKD14


Double-check the wiring before powering the board.

Step 2: Power the ESP32

  • Connect the Micro USB female jack to the ESP32
  • Plug it into your Laptop or PC using a USB cable

This will power the ESP32 and allow code uploading.


Step 3: Download and Open the Code


Step 4: Install Required Libraries

Now install the necessary libraries:

  1. Open Arduino IDE
  2. Go to Sketch → Include Library → Manage Libraries

Search and install:

  • MD_Parola
  • MD_MAX72xx

These libraries are required to control the MAX7219 LED matrix.


Step 5: Enter Wi-Fi Credentials in Code

Inside the code, find the Wi-Fi section and fill in:

  • SSID → Your Wi-Fi Name
  • Password → Your Wi-Fi Password

⚠️ Make sure the Wi-Fi has an active internet connection.


Step 6: Get YouTube API Key (Very Important)

To fetch live YouTube data, you need two things:

  1. API_KEY
  2. YouTube Channel ID

How to Create API Key

  1. Go to Google Cloud Console (link provided)
  2. Select your Email ID
  3. Tick Agree & Continue
  4. Click Select a Project → New Project
  5. Project Name:

YouTube Live Subscribers Count

  1. Location: No Organisation (for personal use)
  2. Click Create
  3. Wait 20–30 seconds


Enable YouTube Data API v3

  1. Click ☰ (Top-Left Menu)
  2. Go to APIs & Services → Library
  3. Search for YouTube Data API v3
  4. Click Enable


Create API Key

  1. Go to APIs & Services → Credentials
  2. Click Create Credentials
  3. Select API Key
  4. Name your API Key
  5. Click Create
  6. Copy the generated API Key
  7. Click Restrict Key → Save

🎉 Boom! Your API Key is ready
🔒 Keep it safe and never share it


Step 7: Find Your YouTube Channel ID

  1. Log in to your YouTube Channel
  2. Go to Settings
  3. Open Advanced Settings
  4. Copy your Channel ID


Step 8: Update Code with YouTube Details

Now paste the following into the code:

  • API_KEY
  • CHANNEL_ID
  • YouTube Channel Name

Save the file.


Step 9: Upload Code to ESP32

  1. In Arduino IDE go to Tools
  2. Select Board → ESP32 Board
  3. Choose the correct COM Port
  4. Click Upload

👉 Click here to learn: How to upload code to ESP32 board


Step 10: Final Output on MAX7219 Display

After successful upload, the display will show:

  1. Wi-Fi Connecting
  2. Wi-Fi Connected (if internet is available)
  3. YouTube Channel Name
  4. Total Subscribers
  5. Total Videos
  6. Total Views

These values run in a loop
Subscribers update every 2 minutes automatically


Step 11: Professional Look with 3D Printed Enclosure

To give the display a clean and professional look, I used a custom 3D-printed enclosure.

📦 You can order this enclosure
📩 Contact details are provided in the given email ID


Conclusion

This YouTube Live Subscriber Counter using ESP32 & MAX7219 is a powerful and eye-catching project for creators and makers. It’s:

  • Real-time
  • Automatic
  • Professional
  • Perfect for YouTube studios

If you found this guide helpful, don’t forget to share it and keep building cool tech 🔥

Happy Making! 🚀

Post a Comment

0 Comments