How to Make a YouTube Live Subscriber Counter Using ESP32 & MAX7219
by ER GREAT in Circuits > LEDs
9 Views, 2 Favorites, 0 Comments
How to Make a YouTube Live Subscriber Counter Using ESP32 & MAX7219
In this tutorial, I will show you how to build your own YouTube Live Subscriber Counter using an ESP32 Wi-Fi module and a MAX7219 LED Matrix display.
This project displays:
- β YouTube Channel Name
- β Total Subscribers
- β Total Views
- β Total Videos
All data updates automatically every 2 minutes using the YouTube Data API.
Letβs get started π
Supplies
You will need:
- ESP32 Wi-Fi Module
- MAX7219 LED Matrix Display
- Micro USB Female Jack
- USB Cable
- Jumper Wires
- Laptop / PC
- Wi-Fi Internet Connection
- Arduino IDE Software
- 3D Printed Enclosure (Optional for professional look)
Connect ESP32 With MAX7219
Make the following connections carefully:
- GND β GND
- VCC β VIN (ESP32)
- DIN β D13
- CS β D12
- CLK β D14
Double-check your wiring before powering the board.
Power the ESP32
- Connect the Micro USB female jack to ESP32
- Plug the USB cable into your Laptop
Now your ESP32 is ready for programming.
Download and Open the Code
- Download the project code
- Open the file in Arduino IDE
Install Required Libraries
Before uploading the code, install these libraries:
- Open Arduino IDE
- Go to Sketch β Include Library β Manage Libraries
- Search and install:
- MD_Parola
- MD_MAX72xx
These libraries are necessary for controlling the MAX7219 display.
Add Wi-Fi Credentials in Code
Inside the code, find the Wi-Fi section.
Enter:
- Your SSID (Wi-Fi Name)
- Your Wi-Fi Password
Make sure the Wi-Fi connection has active internet.
Create YouTube API Key
To fetch YouTube data, we need two things:
- API_KEY
- Channel ID
Creating API Key:
- Open Google Cloud Console (link provided)
- Select your Email ID
- Click Agree & Continue
- Click Select a Project β Create New Project
- Project Name:
- YouTube Live Subscribers Count
- Location: Select No Organisation
- Click Create
- Wait 20β30 seconds
Enable YouTube Data API v3
- Click the top-left three lines
- Go to APIs & Services β Library
- Search: YouTube Data API v3
- Click Enable
Create API Key
- Go to APIs & Services β Credentials
- Click Create Credentials
- Choose API Key
- Give it a name
- Click Create
- Copy the generated API Key
- Click on the created API
- Select Restrict Key β Save
β Keep your API key private.
Find YouTube Channel ID
- Log in to your YouTube channel
- Go to Settings
- Open Advanced Settings
- Copy your Channel ID
Update Code
Now paste:
- API_KEY
- Channel ID
- Your YouTube Channel Name
Save the code.
Upload Code to ESP32
- In Arduino IDE go to Tools
- Select Board β ESP32
- Select correct COM Port
- Click Upload
If you are new to ESP32 uploading, follow the ESP32 upload guide.
Final Output
After successful upload, the display will show:
- Wi-Fi Connecting
- Wi-Fi Connected
- Channel Name
- Total Subscribers
- Total Videos
- Total Views
These values run in a loop.
Subscribers automatically update every 2 minutes.
Make It Professional
To give the project a clean and studio-ready look, I designed a 3D printed enclosure for the display.
If you want the enclosure material, you can contact via the provided email.
Final Result
You now have your own YouTube Live Subscriber Counter running in real-time using ESP32 and MAX7219.
This project is perfect for:
- YouTube Studio Setup
- Live Stream Background
- Creator Desk
- DIY Electronics Projects
If you liked this project, consider sharing it and building more creative tech projects π₯