YouTube Views and Subscribers count using Nodemcu ESP8266 & Arduino

(Last Updated On: July 16, 2019)

YouTube Views and Subscribers

Description:

YouTube views and subscribers– In this Tutorial, you will learn how to make your own Live YouTube views and Subscribers counter and control a light, whenever there is an increase in the number of subscribers. This Project is based on the Arduino, Nodemcu ESP8266 wifi module and a light bulb.


YouTube Views and Subscribers

As you can see the light is turned on, which is an indication that I have received new subscribers.

 

YouTube Views and Subscribers

As you can see the number of subscribers and views on the LCD. Let’s confirm the number of subscribers and views by opening my YouTube channel.



YouTube Views and Subscribers

As you can see the number of subscribers and views are exactly the same as displayed on the LCD. For the step by step explanation and Demonstration watch video given at the end of this Tutorial.Few months back I designed this “YouTube Views and Subscribers counter project” for my channel. In the beginning I kept checking my YouTube analytics to check if I have received any new subscribers. Later a I decided why not to make an Arduino and Nodemcu ESP8266 wifi module based YouTube Views and Subscribers counting system. This is really a fun project and I think every YouTuber should have this system.

 This episode covers

  1. Complete Circuit diagram
  2. interfacing
  3. Programming and number
  4. Testing


The components and tools used in this project can be purchased from Amazon, the components Purchase links are given below:

Arduino Uno: https://amzn.to/2tVz1vu
Mega 2560: https://amzn.to/2ze1kdu
Nodemcu esp8266 wifi module: Best price https://amzn.to/2NAvmiB
LM7805 Voltage Regulator: https://amzn.to/2IZEl5x
Disco light: https://amzn.to/2CHc6sA
Potentiometer: https://amzn.to/2JSLbfg
330 ohm resistors pack: https://amzn.to/2NtlAeh
5v 2A adaptor: https://amzn.to/2GsNfcw
2n2222 npn transistors: https://amzn.to/2EmXsIb
10k Resistor: https://amzn.to/2KTd6OW
lm7805 Voltage Regulator: https://amzn.to/2IZEl5x
330-ohm resistors pack: https://amzn.to/2NtlAeh
female DC power jack socket: https://amzn.to/2KEo1gt
470 uf capacitors: https://amzn.to/2xDCOzf
5×7 cm vero board: https://amzn.to/2OHGbvn
female headers: https://amzn.to/2zqmtiJ
connection wires: https://amzn.to/2DpBuW7
Super Starter kit for Beginners: https://amzn.to/2KJvmKG
Jumper Wires: https://amzn.to/2KMoVXs
Bread Board: https://amzn.to/2MS4q8X
12v Adaptor: https://amzn.to/2Ntr6h1
PCB plate: https://amzn.to/2IUwpCt
Variable Supply: https://amzn.to/2MT4Qfj
Digital Multimeter: https://amzn.to/2Nvft9i
Vero Board / strip board: https://amzn.to/2MTf9jD
Soldering iron kit: “best” You guys should definitely purchase this: https://amzn.to/2zfoNuJ
Solder wire: https://amzn.to/2ufUMWf
Wire Stripper: https://amzn.to/2KOqxfU
wire cutter: https://amzn.to/2ucIq14
PCB small portable drill machine: https://amzn.to/2Nu62XF

Circuit Diagram of the YouTube Views and Subscribers counting:

YouTube Views and Subscribers

This is the complete circuit diagram explaining how a 16×2 LCD and Nodemcu esp8266 wifi module will be connected with the Arduino. This schematic is designed in cadsoft eagle 9.1.0 version. If you want to learn how to make a schematic and PCB, then watch my tutorial given below:

Learn Schematic and PCB designing:

 


As you can see in the circuit diagram above ground of the Arduino is connected with pin number 1, 5 and pin number 16 of the 16X2 LCD, 5v from the Arduino is connected with pin number 2 and pin number 15. The middle pin of the variable resistor or potentiometer is connected with pin number 3 of the LCD.

While the other two pins are connected with the ground and 5v. Pin’s 4 to 7 of the Arduino are connected with pins D7 to D4 of the LCD. Pin number 8 of the Arduino is connected with the enable pin of the LCD. Pin number 9 of the Arduino is connected with the RS pin of LCD.


In the top left corner is the regulated 5v power supply based on the LM7805 voltage regulator. This power supply will be used to power up the Nodemcu esp8266 wifi module. J1 is the dc female power jack and this is where we connect a 12v Adaptor, or 9 to 12 Voltage battery or a Solar Panel.

A 470uf capacitor is connected at the input side of the 7805 voltage regulator. Another 470uf capacitor is connected at the output side of the voltage regulator. A 330 ohm resistor is connected in series with a 2.5v led. This is a current limiting resistor. I have a very detailed tutorial on led and how to calculate the value of the current limiting resistor; for more details you can watch the following video.

Current limiting resistor calculation:

A wire from the output of the voltage regulator is connected with the Vin pin of the Nodemcu, and also make sure you connect the ground of voltage regulator with the ground of Nodemcu module. While the TX and RX pins of the Nodemcu ESP8266 wifi module are connected with pin number 2 and pin number 3.



 A relay is connected with pin number 13 of the Arduino. This relay will be used to control the bulb. The relay driver circuit simply consists of the 2n2222 NPN transistor and a 10k resistor. You can watch the relay driver circuit design calculation video on my YouTube channel “Electronic Clinic” or you can also use a readymade relay module.

Interfacing Nodemcu ESP8266 and 16×2 LCD with Arduino:

YouTube Views and Subscribers

This is the final Nodemcu esp8266 wifi module based circuit. All the connections are done as per the circuit diagram as explained above. Making this Power Supply was really a tedius job that’s why later I decided to make a PCB board for the Nodemcu ESP8266 wifi module.


The Latest Power Supply PCB board making video is given below.

YouTube Views and Subscribers

This is the 16×2 LCD after Soldering, the LCD interfacing with the Arduino is as per the circuit diagram. The LCD soldering and basic programming is explained in the following video.


16×2 LCD Soldering:

YouTube Views and Subscribers

As the Arduino, Nodemcu module and the relay circuit needs 12v, I simply soldered three male power jacks with the dc female socket. Now I can use only one 12v adaptor to power up the Arduino, Nodemcu and relay module.


YouTube Views and Subscribers

All the components are interfaced as per the circuit diagram already explained above. For more details watch video given at the end of this Article.

YouTube Views and Subscribers counting Project Programming:

As this project is based on the Arduino Uno and Nodemcu ESP8266 wifi module, that’s why we have two programs. One program is written for the Nodemcu esp8266 wifi module and another program is written for the Arduino.  Let’s first of all start with the Arduino programming.



Arduino Programming:


Nodemcu ESP8266 Wifi Module Programming:


Both the Programs are explained in the video Tutorial which is given below.

Watch Video Tutorial:

 

Recommended For You

About the Author: Engr Fahad

My name is Shahzada Fahad and I am an Electrical Engineer. I have been doing Job in UAE as a site engineer in an Electrical Construction Company. Currently, I am running my own YouTube channel "Electronic Clinic", and managing this Website. My Hobbies are * Watching Movies * Music * Martial Arts * Photography * Travelling * Make Sketches and so on...

Leave a Reply

Close