Introduction: Arduino YouTube Subscriber Counter

Picture of Arduino YouTube Subscriber Counter

This Arduino project was inspired by FlapIt and YouTube Play Button. It has three of advantages over such projects.

  1. It has a web UI (Not so beautiful)
  2. It automatically truncates the subscriber count to values like 120k or 12m
  3. 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:

  1. 8 jumper wires
  2. Any Adafruit_GFX compatible screen (I'll use Nokia 5110)
  3. NodeMCU 1.0
  4. Breadboard
  5. 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:

  1. ESP8266 Platform
  2. Adafruit GFX
  3. Adafruit GFX Nokia 5110 driver (Modified for ESP8266)
  4. Youtube API
  5. ArduinoJSON

Sketch (PLEASE SEE COMMENTS): https://gist.github.com/GeorgeBgk/f6d9bd8c03086b5a4f2854b542f2351b

Step 4: Create the Housing

Picture of 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

Picture of Configure Through Web UI

Go to ESP's IP address in browser and start customizing!

Step 6: Enjoy!

Comments

witnessmenow (author)2017-06-18

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

GeorgeBgk (author)witnessmenow2017-06-18

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

witnessmenow (author)GeorgeBgk2017-06-18

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

GeorgeBgk (author)witnessmenow2017-06-18

I forgot to include it. I used the modified version from a Russian forum. Thank you for GitHub link!

About This Instructable

151views

3favorites

Bio: A 10 year old kid, making Arduino things for home
Add instructable to: