ESP8266IOT Projects

YouTube Views and Subscribers count using Nodemcu ESP8266 & Arduino

Description:

 

YouTube views and subscribers counting– In this Tutorial, you will learn how to make your own Live YouTube views and Subscribers counter and control 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 the video given at the end of this Tutorial. A 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 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


Amazon Links:

12v Adaptor:

Arduino Uno

Arduino Nano

Mega 2560:

Nodemcu ESP8266 WiFi Module:

LM7805 Voltage Regulator:

470uf capacitor:

330-ohm resistor:

DC Female Power Jack:

Female Headers:

Male Headers:
Other Tools and Components:

Top Arduino Sensors:

Super Starter kit for Beginners

Digital Oscilloscopes

Variable Supply

Digital Multimeter

Soldering iron kits

PCB small portable drill machines

DISCLAIMER:

Please Note: these are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!

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:

 

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

Your email address will not be published. Required fields are marked *

Back to top button