Це відео не доступне.
Перепрошуємо.
DIY Low Cost Youtube Subscriber Counter Display - (Easy build, No soldering, Wemos D1, 3D Printable)
Вставка
- Опубліковано 21 лют 2019
- See how to 3D print, code and assemble your own UA-cam Subscriber Counter for mounting on top of a screen. It will also display your total channel views. It's low cost and very easy to build.
👇 More info below 👇
It's built around a low-cost Wemos D1 microcontroller and a dot matrix display module. With built-in WiFi it only requires a USB connection for power once complete. The total build cost is around £15 / $18.
==========
List of items used in this project and where to find them:
■ Wemos D1: geni.us/wemosD1
■ MAX7219 Display Matrix: geni.us/MAX721...
■ Mini Breadboard: geni.us/MiniBre...
■ Breadboard Jumper Cables: geni.us/JumperW...
■ USB A to USB Micro B Cable: geni.us/USBAtoUSBB
■ Nuts and Bolts: geni.us/NutsAnd...
■ Battery powered glue gun: geni.us/BoschBa...
==========
The code can be downloaded from here: github.com/DIY...
3D printed parts and wiring diagram can be downloaded from here: www.thingivers...
The 3D printable light shield can be download here: www.etsy.com/u...
==========
SAY THANKS:
Buy me a coffee to say thanks: ko-fi.com/diym...
Support us on Patreon: / diymachines
SUBSCRIBE:
■ / @diymachines
DISCORD server: / discord
INSTAGRAM: www.instagram....
FACEBOOK: www.facebook.c...
PATREON: / diymachines
==========
List of camera and lighting equipment I use:
Sony A7 III: geni.us/Sony-A...
Tamron 28-75mm F2.8 RXD A036SF Lens for Sony-FE : geni.us/Tamron...
Aputure Amaran HR672C: geni.us/Aputur...
Aputure MC: geni.us/FAPGL
RØDE VideoMic Pro+: geni.us/RodeVi...
Blue Snowball iCE: geni.us/BlueSn...
Philips Hue Lightstrip Plus: geni.us/Philip...
Disclaimer:
This video is shared for demonstration purposes only.
Nice videos, useful projects, clean work and good presentations. Thanks and keep going.
Update
Have drawn a model of the real LED , compared that with the hood model.
1. The grid on the front hood does not fit the 2024 common 1088AS dot matrix LED spacing at all.
In 2024 a common 4x8x8 matrix measures 128 x 32mm.
Today a matching cutout needs to be no more than 128,2 x 32,2mm.
2. the cutout on the case front measures 130x32,64mm
3. the intruding portion of the hood (purchase on Etsy) does measure 129x31,52mm
I do not call this a fit.
To much space in between, needs a lot hot glue filling the gaps.
This is epic!
Really nice made !!
I connected everything as instructed , and I keep getting GIBRISH on the Matrix dots .
Nice project! I build something similar a few months ago on our channel. But using a 7 segment display in an RGB led display.
Very nice project to build!
I shared my source code below my video. Feel free to use it.
Great video!
Thanks.
Thank you for the video. i am using a 8285 and it seems to be connected to my wifi, but when it scrolls through the script, it says "UA-cam" then "Error!" Any idea what could be wrong? I have tried several different channel id's nothing seems to make it work. thanks
Hey great video! I'm making it now. Thank you so much for sharing. And it looks like I beat you to 20k subscribers by a few days! ;-) Happy 20k from Aus.
Verry Nice, i wondering if it is possible to have a counter for the numbers of downloads from my personal printables or makerbase web page. Thanks for your answer.
Thank you very much for an interesting project! 👍👍👍 Unfortunately, I keep getting Error. there are also problems with the display. I also tried the original code, there are no problems with the indication, but there is also an Error output. Please tell me if the software is working at the moment (2022). I would really like you to update. Thanks a lot!!! 😍
Me too I would like to know. Thanks!
For the error, check the Mike's Retro Tech comment. It worked for me.
Thanke helpful video. I have connected everything and program also installed but all the LEDs are lighting up and nothing else show up. what could be the issue? Thanks
Hello, is it possible tom make the same things but for facebook like counter?
I'm not sure about programming the module for a Facebook counter. Sorry.
Getting a weird issue with this, firstly the original code wasn't working for me, the serial readout was saying failed to connect to UA-cam.com and wouldn't stop doing it regardless of reboots, I then found a thread somewhere that said you have to include client.setInsecure(); if you're using a new version of the firmware.
I added the above code just below:
Serial.print("connecting to "); Serial.println(ytHost);
and this resolved the issue.
The only other thing now is the subscriber counter seems to switch between showing my counts and showing zero, It'll display my counts for 15 mins or so and then display zero for a length of time.
Is this something you've come across?
Chers
I used a google API key to make it work. Use the UA-camApi library by Brian Lough. It is working for me. Will upload a video on my channel in the next few weeks.
I made a video on my channel with a code that is working in 2020. Check it out! (english subtitles available)
i like your work! but i bought awtrix parts today. yours looks small and good looking
Uploaded the code, but in serial monitor its connected and automatically resting. Is it a big issue?
Excellent.
Im getting sub count zero and views also getting zero on lef display..
Why how to fix?
Hi! Thanks for this project. Who is the author of the arduino code? It is not working anymore as it should. It gets only a views count without subscriber count..
I made a video on my channel with a code that is working in 2020. Check it out! (english subtitles available)
What is your recommended way to attach the light shield??
I used a spot of glue in each of the corners to attach mine.
@@DIYMachines thanks
Hi great vid thanks.
I dont have the time or patience to make one but do you sell them?
If so how much inc delivery to a UK postcode?
Thank you Ryan
Hi, great little project. The link for your light shield isn’t working incase you was unaware.
Thanks James. I've corrected the link.
DIY Machines Brilliant, any possible way I can pay via PayPal?
@@jamesledcube5827 Sure, send a donation at paypal.me/diymachines and leave your email address in the 'notes' field. I'll email it straight over for you. Thanks for supporting the channel.
Can this be done for tiktok follower counter?
Cool build! Wish I could build it but I see no purpose for it since I don't have UA-cam channel... :(
Then make one! Never too late to start
This project Google APIs setting required?
cool is it possible facebook or youtube live stream counter how many people watching online stream ?
ok, this looks nice and easy in practice, but there are quite some caveats which I think Lewis should have mentioned.
My main point of critique: it's not without soldering, this is simply not true. Lewis writes it in the title but it's a lie. The D1 comes without the legs fixed so you definitely have to solder them. Consider if you want to do this. I tried this and my D1 just doesn't work. I don't know if it's bad soldering or if I somehow ruined the microprocessor, because I have not the slightest clue about soldering. Lewis is quite misleading with that title.
The next thing is, this does not, I repeat does not work on all USB ports like Lewis seems to suggest. I got USB power surge errors on every USB hub (which are quite common) and also on other USB ports. Not sure what high end USB power device he has, but on my standard Windows machine, this does not work.
Third point: Lewis is not very helpful in the comments here. His code seems to be extremely outdated but all that is linked here is either an affiliate link or the glare shield which you have to buy from him on Etsy. This left me with a very bitter taste in my mouth, because Lewis is superfast with promoting stuff, but hasn't responded in years to comments here. He maybe just expects us to buy so he can earn a commission.
Overall, this has been a super disappointing experience and - once a subscriber - I cannot recommend to subscribe to this channel. All looks super easy but rarely isn't.
I just researched the topic even more and the thing is, the D1 mini is not made to be used in the way Lewis uses that. I can cause power surges which are sometimes hard to manage and can even damage your machine. Overall, this increase the very bad perception of this whole channel
What if I want to display just custom text? How can I do that?
FYI code no longer works. You need to use an API
do you know how to do it?
@@tancredi_96 yeah made a video on it. Check my channel
Hello, thankyou for the video, i was able to complete the setup, however, my sub count is incorrect, as much as i like my channel to have 1180000 subscribers, but i really only have 3400. Do you know why this is happening? thanks in advanced
I made a video on my channel with a code that is working in 2020. Check it out! (english subtitles available)
❤️
Pls make a vedio on iron man helmet
Hello... I have never worked with an Arduino before.. This is my first project... I have downloaded the Arduino software.... Where do I find the code to edit? Please help...
Like und Abo Gruß fron Bremen
WiFiClient client; don not name a type.... How to fix that?
Nice! Can I commission one of these and will it work in a garden shed? 😁🌱
If you've got WiFi there and a way to power a USB cable it sure will. :)
@@DIYMachines any chance I may be able to commission one as well?
ProjectMat :)
Nice video, good explanation. but it wont work. only write youtube error all the time (:
me tooo
Hello, I tried exactly as instructed in your video I am getting "UA-cam Error!" have entered Correct SSID and Password and also checked both combination of User ID and Channel ID too and Errer! Still persists. Could you pl write back. Or is it that UA-cam has stopped giving credentials through USER ID or CHANNEL ID
Hi Vignesh, I switched mine off for a couple of days and then back on and it still functioned OK so I don't believe UA-cam has stopped giving credentials. Are you still having issues with yours?
DIY Machines ya still says UA-cam error!
have the same problem, think yt stopped indeed giving credentials, think i would fix it with a yt api
I made a video on my channel with a code that is working in 2020. Check it out! (english subtitles available)
Is there a way to do this with twitch?
doesnt work, says youtube error.
could this work with twitch followers counters?
I keep getting an error that will not allow me to upload the code. I bought everything from your links and wired it exactly how you said to do so. I get
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
error: espcomm_upload_mem failed
What am I doing wrong?
I fixed this error by going to File -> Preferences, going to the path at the bottom and deleting the packages folder, then re-installing the esp8266 folder in the boardmanager
I want to follow air quality of my area instead of youtube followers. Could you help me to re-code?
Hi Engin, that's a good idea. I'm sorry but I wouldn't be able to find the time to figure this one out for you. Perhaps try some maker sites and see if anyone can help you with software to do what you want there.
@@DIYMachines thanks a lot for your time. I am working on it and I will let you know..
Hi, it's not giving any output. Do you know what I'm doing wrong?
I made a video on my channel with a code that is working in 2020. Check it out! (english subtitles available)
i have always this massage :
21:52:35.212 -> ...
21:52:36.693 -> Connected: 192.168.33.91
21:52:36.693 -> Getting data ...
21:52:37.313 -> connecting to www.youtube.com
21:52:37.965 -> connection failed
i need help pls!
Hi, i am getting an error message in arduino saying "ESP8266WiFi.h: no such file or directory" any tips?? Please respond because i have spend quite a while trying to make it!
Try checking that you selected the correct board in the Arduino IDE. Which one have you selected?
@DIY Machines "Arduino/Genuino Uno" is that the correct one to select? If not please can you tell me the correct one. Thanks
@@samspeed3169 It should be a WeMos D1. Go to 3:06 in the video and the bottom of the screen shows you the correct board settings.
DIY Machines Thanks but I’m still getting an error compiling for the board, it says:
“exit status 1
Error compiling for board WeMos D1R1”
DIY Machines @DIY Machines
DOnt know if this is of any help, but I have got the code working with the new way UA-cam outputs its web response; Hopefully, if you replace the following code in your source file, it should compile and parse the 'MetaData' lines in the web response and fix the 0 values being shown or the constant 'Error' that people have been getting; Paste from here: const char* ytHost = "www.youtube.com";
int getYTSubs(const char *channelId, int *pSubs, int *pViews)
{
if(!pSubs || !pViews) return -2;
WiFiClientSecure client;
Serial.print("connecting to "); Serial.println(ytHost);
// New firmware needs this
client.setInsecure();
if (!client.connect(ytHost, 443)) {
Serial.println("connection failed");
return -1;
}
client.print(String("GET /channel/") + String(channelId) +"/about HTTP/1.1
" + "Host: " + ytHost + "
Connection: close
");
int repeatCounter = 10;
while (!client.available() && repeatCounter--) {
Serial.println("Connected ."); delay(500);
}
int idxS, idxV, idxV2, statsFound, viewsFound = 0;
String val;
*pSubs = *pViews = 0;
while (client.connected() && client.available()) {
String line = client.readStringUntil('
');
// New code to parse the 'MetaData' lines in the web response
statsFound = line.indexOf("subscriberCountText");
if (statsFound > 0){
idxS = line.indexOf("subscribers");
// "subscriberCountText":{"simpleText":"379 subscribers"}
// 36 chars to the start of the counter
val = line.substring(statsFound + 36, idxS);
*pSubs = convToInt(val.c_str());
}
viewsFound = line.indexOf("viewCountText");
if (viewsFound > 0){
// The word views appears twice in the response data so grab the second one
idxV = line.indexOf("views");
idxV2 = line.indexOf("views", idxV + 1);
// "viewCountText":{"simpleText":"27,801 views"}
// 30 chars to the start of the counter
val = line.substring(viewsFound + 30, idxV2);
*pViews = convToInt(val.c_str());
break;
}
}
client.stop();
return 0;
}
Enjoy: Mike.
You may have to reset a few times before it shows the proper counts!
@@MikesRetroTech It works. Thanks!
Not quite working here, still 0/0? Thanks for the updated help tho
Found a fix...I moved the break outside of the viewsFound IF statement, since the viewsFound happens before the subscriberCountText.
Also, it appears they have changed the way the subs value is offset (69 chars now and not 36)
Hope this helps
statsFound = line.indexOf("subscriberCountText");
if (statsFound > 0){
idxS = line.indexOf("subscribers");
// "subscriberCountText":{"simpleText":"379 subscribers"}
// 69 chars to the start of the counter, used to be 36
val = line.substring(statsFound + 69, idxS);
*pSubs = convToInt(val.c_str());
}
viewsFound = line.indexOf("viewCountText");
if (viewsFound > 0){
// The word views appears twice in the response data so grab the second one
idxV = line.indexOf("views");
idxV2 = line.indexOf("views", idxV + 1);
// "viewCountText":{"simpleText":"27,801 views"}
// 30 chars to the start of the counter
val = line.substring(viewsFound + 30, idxV2);
*pViews = convToInt(val.c_str());
}
if (viewsFound > 0 && statsFound > 0) {
break;
}
Amazing build! Any way this code could be reprogrammed to show Instagram followers count?
Hi and thanks. My coding skills are not the best. I'm sure it could be re-written to show Instagram followers but it's not something I can do at the moment. Perhaps someone else who can will add this feature to it at some point.
I have an instagram counter in my channel. Go check out the video for more information.
I get fatal error: fonts.h: No such file or directory. What can i do?
download the fonts.h file and place it in the same folder as the program
@@kaspereskildsen25 do you possibly have a download link for me?
@@TK-SmartHome In the UA-camSubscriberV1-master folder there should be fonts.h . In the Arduino IDE youll just go Sketch > Add File then find that file to add. I know it's a late reply but maybe this will help someone else. I was stuck there too.
getting error please help
Mines is mirrored, I couldn't figure out what is wrong.
I think I solved this... I know its been a while since you posted but the line with define ROTATE 270 I switched to 90 and re-uploaded, and that worked. Maybe this helps?
@@iCaveDave It is fine, thank you for the answer. After a while, I was able to manage to fix it with some other libraries.
Here is my version, there is a word of the day feature added, but be warned, it is a sloppy code. For instance, I wanted to get the word only for a couple of times in a day but now, it fetches every text loop. I'm still not very familiar with the types.
github.com/siniradam/ohclock
@@tinmank I'm gonna check it out, I'm still struggling to extract the subs and views as everything seems connected but coming up with zeros!
@@iCaveDave Oh yes, that end point is not working anymore.
hackaday.com/2019/08/01/a-farewell-to-youtube-sub-counters-set-to-break-with-api-change/
Probably you need to use something like this: developers.google.com/youtube/v3/docs/videos/getRating
I'll look into that when I'm available again.
@@tinmank Thank you! I'm not a coder by any means but I'll see if i can hack something together and report back if it works! :)
I was trying this project and what I get is this: I have one channel with 168 subs … on the led matrix it says: "subscribers: 71727" and then "Views: 0" …. but I have also another channel with 0 subs and if I use that id … the matrix says more than 150.000 subscribers?!?!?
Is there anyone that is making this project working at today??
i have similar issue, i think it has to do with UA-cam's recent change on how they show the subscriber counts and something to do with API?
Tesla DIY
I think i’ve found the solution by creating a google youtube api v3.... i’m testing it
@@MarcoLucifora Nice, i saw somewhere in the comment section here someone said he used the UA-cam API from Brian_Lough and it worked, i tried but i keep getting this annoying "multiple library found" message. Please keep me posted =D
Tesla DIY just give me a couple of hours and then I’ll upload my code!!
@@MarcoLucifora I was able to load the sketch sucessfully, have my UA-cam API setup, had my Credential, got every value input correctly.
All i am getting is the custom message which i had setup, my Wemos D1 mini is blinking blue trying to communicate with UA-cam or my wifi, but nothing shows other than my custom message
As someone who has never used arduino anything before let alone program it, the gloss over on the programing part is highly disappointing.
Do you copy and paste code? or download?
Hi Craigfonseeker , you need to download the files (there are three of them on github) then open the .ino file in Arduino IDE to upload.
@@DIYMachines Thanks for the quick reply, got the sketches uploaded but keep getting error. Have checked ssid, password and youtube id still no luck. Any direction to look? Thanks in advance!
@@Fonseeker I'll try to help. What error are you seeing? What does the serial monitor say and what does the display say?
@@DIYMachines no error on serial monitor, display shows UA-cam error! Sketch uploads fine.
@@Fonseeker If your happy to, can you message me your channel ID on Facebook so I can try it here? facebook.com/diymachines/
Awesome little project! Thanks so much for putting it together, I know how much time these things take. Hats off to you. Now to my question. I have zero Ardunio experience, but have managed to hook everything up, download the json file for the WeMos D1 here arduino.esp8266.com/stable/package_esp8266com_index.json and it installs, and I change my board to WeMos D1 R1, and load the example Blink, which when I hit Upload, compiles, runs fine and and blinks slowly. All good! However, after running the ESP_LEDMatrix_YT_subs, when I hit Upload it compiles, everything seems fine. I check the Serial Monitor and it says ....
Connected: 192.168.1.28
Getting data ...
connecting to www.youtube.com
y.
But there are no lights anywhere, just no activity whatsoever. Any ideas? As I said, I'm an Arduino noob! Any help would be much appreciated!
My guess is that this no longer works, or I am doing something wrong.
UA-cam responds with a 200, but no needed information is returned.
dont work anymore
Please consider selling all 3d parts. People like me does not have a 3d printer.
How is it cheap if I need a 3D printer?