English
Español
PCBWAY PCB service

PCBWAY PCB service

PCBONLINE PCB service






WiFi YouTube subscribers counter





3.4 Final code

Now all we have to do is to marge this 3 examples into just one. Use the ESP8266 chip, get subscribers value and print it on the 7 segment display. For that I’ve created this code that you should download from a link below. As before I add my Youtube and WIFI data. Next, I define the pins for the clock, chip select and data of the 7 segment module. In this case are digital outputs of the WEMos 2, 0 and 4.

Downlaod the full code here (SIMPLE):
Downlaod the full code here (HELLO included):



Ok, down in the code I get the subscribers value and save it in a string format. Since the 7 segment display module has just one chip I can’t sent the entire 8 characters number by shifting data from one chip to another. I have to take each character of the string value and print it one by one. That’s exactly what I’ve done in this function. That’s it. I upload the code and test if it works. Success, this is my subscribers value. By the way, thank you all guys for subscribing and like my videos.


Una publicación compartida de ELECTRONOOBS® (@electronoobs) el


4.0 Mount the case

Ok, so I’ve printed the case with my Anet E10 printer using PLA material, 0.4 mm nozzle, 2 perimeters and 20% infill. I take the 3D printed case, solder everything following the schematic below and glue the parts inside. I first glue the 7 segment display. Then the buzzer and screw the toggle witch in place. This switch will activate or des-activate the beep for each new subscriber value. I place the WeMos board in place and glue close the case. Now I add the extra details to make this case look better. I connect the USB cable and we are done. After the initial message I get the subscriber count. This will automatically refresh for each new value.

WeMos esp8266 youtube subscriber counter

That’s it guys. You have all the data in this tutorial. You also have the purchase link for all the parts of this project or a new 3D printer. In my case, I’ve use my Anet E10 to print the case and it did a great job. If you consider helping my projects, check my new Peatron page and help my workshop grow and have a lot of more other cool tutorials.


WeMos esp8266 youtube subscriber counter