Introduction: Arduino YouTube Subscriber Counter
This Arduino project was inspired by FlapIt and YouTube Play Button. It has three of advantages over such projects.
- It has a web UI (Not so beautiful)
- It automatically truncates the subscriber count to values like 120k or 12m
- It is easily customisable (If you don't have a Nokia 5110 LCD, you can use any Adafruit GFX compatible screen)
Proceed to the next step if you are interested.
Step 1: Prepare the Hardware
You will need:
- 8 jumper wires
- Any Adafruit_GFX compatible screen (I'll use Nokia 5110)
- NodeMCU 1.0
- Breadboard
- Any printer to print the housing
Step 2: Wire Everything Up
If you use Nokia 5110 screen here's the pinout:
pin 13 - Serial clock out (SCLK)
pin 15 - Serial data out (DIN)
pin 5 - Data/Command select (D/C)
pin 4 - LCD chip select (CS)
pin 2 - LCD reset (RST)
If you use another, wire it yourself
Step 3: Prepare the Software
Libraries:
- ESP8266 Platform
- Adafruit GFX
- Adafruit GFX Nokia 5110 driver (Modified for ESP8266)
- Youtube API
- ArduinoJSON
Sketch (PLEASE SEE COMMENTS): https://gist.github.com/GeorgeBgk/f6d9bd8c03086b5a4f2854b542f2351b
Step 4: Create the Housing
Just print one of the images above (one with the white square is for Nokia 5110) and cut out a hole for the screen, then stick it to the screen
Step 5: Configure Through Web UI
Go to ESP's IP address in browser and start customizing!
Step 6: Enjoy!

Participated in the
Internet of Things Contest 2017
4 Comments
5 years ago
Hey, cool project! I especially like the Web UI for configuring. I wrote the YouTube API library and I love to see people use it!
One thing, the Nokia 5110 Adafruit library doesn't compile when you have an ESP8266 board as the target, you need to use a fixed version of the library:
https://github.com/bbx10/Adafruit-PCD8544-Nokia-5110-LCD-library/tree/esp8266
Reply 5 years ago
I'm glad that you liked the Web UI. I worked hard to make it pretty and fit it inside ESP. It is still in Beta and does not currently save data inside EEPROM. I'd like to make something like flapit to see all my stats
Reply 5 years ago
Hey George
I have an instructables on making a social media stats counter if you look at my profile. It supports YouTube, instructables, Twitter and Facebook. It might make a good place to start for you to make your own flap it!
I need to make changes to the face book library as currently the key expires after a short amount of time, but the other ones work well!
It also uses something called spiffs, which is like eeprom and it can be used to save settings, you should look into that too as it's a little easier to use
Reply 5 years ago
I forgot to include it. I used the modified version from a Russian forum. Thank you for GitHub link!