Good morning Andreas. I learn so much from your videos and from the comments that I always read. Thanks to everybody, you all make the learning process so very enjoyable.
One of the more useful projects I've seen in a long time. You had a need, designed a solution, built it and now use it on a daily basis. Not some retro-crap game, but a tool. Nice job.
Once again an excellent video. You have covered such a lot of ground here and all of it was very interesting for me. As a result of your earlier videos I am now able to update my ESP's OTA, get the time from an NTP server and track the results on an OLED. It's just brilliant what can be achieved with the ESP8266. Thank you once again for bringing all this to my attention. Best wishes Arthur
You're welcome. As you see with my video, it needs both parts: The creators as well as the loyal subscribers. Otherwise, youtube would not be successful!
I have also that 90° rotation problem and now that matrix is laying around on my desk - but your video encouraged me to spend more time soon on this project :-) What i have learned watching your videos that it is to separate a project in different tasks and solve it one by one or find a replacement if there is no easy or a to expensive solution. P.S. the segment of your subscriptions to other channels you've shown to us, is at least 60% congruent to my subscriptions :-)
There are also a few other libraries suggested in the comments. So, it looks like I did not have a complete overview. Dividing things in parts is very important to reduce complexity. Otherwise, it is very hard to find errors. Unfortunately, it is not easy.
Another excellent video and very nice project. Though a fair part is already familiar to me, I love the way you explain every detail in a clear way. Hope you reach the 10.000 subscribers during the day and the beeper does not wake you in the middle of the night.
Excellent work Andreas. As other subscribers may have mentioned, the MD_Parola library works very well with the ESP8266 now and the single piece 4 module displays. No rotation issues as you can configure the library in a header file to any row/column orientation. For the 4 module displays that are fed from the left, you use "FC16" mode. It works fine with the MD_MAX72xx Arduino library if the header file MD_MAX72xx.h is altered to enable FC16 support. Change these #defines from their defaults to enable FC16 mode. #define USE_PAROLA_HW 0 #define USE_FC16_HW 1 I have 3 of the 4 digit modules connected in-line for (12 displays) for a NTP clock and multipurpose display and it works perfectly. There is a demo of a 28 module setup someone else made here on youTube.
I forgot to mention that I had a bit of trouble when first attempting to use the ESP8266 with the Parola library. I was unable to get hardware SPI to work, so be sure to use the bit-banged mode when you instantiate it. Here are the pins I ended up using, though I believe you can use any free i/o pin for the CS_PIN #define DATA_PIN 13 // MOSI (DIN) #define CLK_PIN 14 // CLK (CLK) #define CS_PIN 15 // CS (CS) // Hardware SPI connection (not working on ESP) //MD_Parola P = MD_Parola(CS_PIN, MAX_DEVICES); // Arbitrary output pins (must use this method on ESP8266 device) MD_Parola P = MD_Parola(DATA_PIN, CLK_PIN, CS_PIN, MAX_DEVICES);
Great video - real world "problem" solved with an ESP8266. Liked the progression of solving things too like the brightness, and the beep alarm. Go on - have another subscriber from me.... one number closer to the big "ONE ZERO" :) Ste
At 9:58 you can see in the background a video monitor(blue framed monitor) that shows what the camera sees. Please tell everyone how you are doing this. I need a monitor to see what the camera sees when I'm recording videos for UA-cam. This would be a great help yo me. Love your video content and how you document your projects. Especially areas of the project will be challenging, accomplishments and areas where work is needed. Thanks
Thanks for your comment! I use a Sony camera with an HDMI output and transfer this output to a very cheap LCD screen which is mounted in a 3D printed box. Nothing magic at all ;-) Just a 3 meter cable
Hi Andreas, I enjoy your videos and subscribed just now to help you reach your milestone. One note: I have several Esp8266 modules directly connected to a similar buzzer (via PIO14) and they sound much louder than yours. Perhaps the difference is active vs. passive? I ported an MML music library from the mBed environment and now I can send tunes to nodes using MQTT. Great fun to hear the Mario tune sound on an event easily defined in Node-RED!
If your "buzzer" plays music, then it is a different one than mine. I would call it then a "loudspeaker", because you have to feed it with AC. Mine can only be switched on or off by a pin. Maybe this is the difference. Or maybe you have a different brand, too. BTW: Do you have a link to the ported MML library. Sounds like fun in I would like to try it.
No, it's a very similar buzzer. Black and round, 12mm diameter, usually with the fairly cryptical "remove seal after washing" sticker. Mine are active buzzers. According the description they are 4-8 VDC, Maximum current: = 30 ma / 5 VDC, but I drive them directly from the ESP8266. I got mine last year from Ali; 10 pcs for 2,22 euro. The MML music library uses PWM to drive the P14 pin, DC only. I will see if I can publish a video of one of my ESP8266 MQTT nodes and find a place to share the ported library, including an example sketch for the ESP.
I'm guessing here, but the number of subscribers shown there is probably not visible to Thingspeak because it's only shown to you. There is a drop down to the right of your name where you can select whether you are viewing your profile as yourself or as a returning subscriber. You found a way around it, but I thought you'd be interested in why it didn't work as you expected.
" I hope this video was useful or at least interesting for you" what about funny as hell? I love your sense of humor. " . . .subscribe my channel like hell" I almost choked on my lunch. I am also a fan of ThingSpeak - you could use their React app and ThingTweet to send out a tweet when the momentous occasion occurs. good job as alway Andreas.
For such simple application you don't need library for MAX LedMatrices. Look at my code - it takes only about 20 lines of code to handle matrices from any MCU. Recently I added patch to rotate framebuffer 90 and 270 degrees because 4x1 matrices became much cheaper and popular than single modules. Regarding reading number of subscribers you can easily parse html page without any other libraries and APIs. It is not on my videos because I added this feature little later mainly for my daughter's channel counter.
Can you help me finding you code for the LEDs. I would be interested. Concerning UA-cam. In the meantime I changed it to a small library which calls the UA-cam API directly via https. These numbers seem to be accurate.
I like your videos!!! I'm looking forward for the next one. I would like to request you something. I know it's time consuming, Please create a blog or a place to attach schematics... Many time it's hard to find the circuit you talk about.. A simple blog will simplify it. Is it possible to power the display directly from WEMOS D1 mini or Arduino Nano with USB power ?
Thanks! For the moment, I try to post the necessary files to my github account, because it accepts any file format. The effort for an additional channel is quite high. And so far If somebody needed a resource and asked me in the comments, I tried to help. Maybe this will change in the future. Concerning driving the display: If you connect Vcc ot the 5V rail of the Wemos, it is connected via a shottky diode to the USB hub. So, it should work, but maybe not inside the specs during startup, when all LEDs are on. Do not connect Vcc of the display to the 3.3 v rail. This is not capable to supply the current. Better would be th have Vcc directly connected to an independent 5V connection outside the Wemos. I think, the same applies for the Nano.
When I saw "Dot Matrix" (without LED in front of it) the first thing that came to mind for me was printers. I wondered for a minute or two what the possible relevance could be, until I saw those displays once the video got going...
It's unfortunate, as I have a whole pile of them, and they're all going to end up scrapped. I guess I'll add to my collection of stepper motors and such...
Great video again! I am wondering what makes https so hard for you, since you know so much more about all this then I do. I really learn(ed) a lot from all your clear and complete videos! But in several projects I've build so far, I am using rest/json over https to send data to public cloud services. Some are already running for several months uninterrupted. Let me know if I can help (I would be really surprised :-))
Hi Andreas, which pins are used (SCK/DOUT/CS) in this ESP MAX7219 library, i have no luck running it on mine Wemos D1 mini. It would be realy good if you could help me out :) Thank you for your time and for your videos
can matrix and 7segments max7219 modules be mixed on same esp8266 or arduino? Can they share the same DIN and CLK and change only the CS pin, or what? Thanks in advance
Very nice project! Maybe you can incorporate a feature that sends you an SMS/email when you have a countdown of say 10 subscribers to go for 10k subscribers.
Graham Gillett It did not work on the first field, but on the second. Propably, I was not clear enough. Subscribers found out,that is is because I was logged in and Thingspeak not.
i tried the exact example you did, using the xpath got with chrome for the left subscriber counter that gave you error, on your about page, and i get correctly the number, no errors...
i think it's like an other viewer said: you have to take the xpath as NOT logged in on youtube... these are my xpath, clearly different: while logged in: //*[@id="browse-items-primary"]/li/div/div[1]/div/span[1]/b while not logged in: //*[@id="browse-items-primary"]/li/div/div[3]/div/span[1]/b just take them in chrome anonymous mode ;) oh, look at my other comment about PAROLA library, right below this comment ;)
1. Interesting, but acceptable, because Thingspeak is not logged-in. I got a tip concerning the new google APIs and i think, I will try this way. There is just the problem with https. The rest works. 2. Concerning Parola: I remember, I saw a video about that. But is it working with the ESP?
Hi Andreas, great video and channel! I ordered also a MAX7219 module and want to put it into a nice box as you have it. Any chance you can share the source files for 3D printing or can produce one for me? Grüße aus Deutschland!
Learnelectronics has a video on his channel that tells you how to fix the problem. I'm on my phone so I can't give you a link but he has a couple of max 7219 video's.
@Andreas: I see you're getting closer to your 10K subscribers! To celebrate this happy event even more, I suggest you to make your counter play a cheerful tune. I just added two easy to follow examples to my ported MusicEngine library. See github.com/maxint-rd/ESP-MusicEngine To install just download the zip-file from GitHub and use the library menu in the IDE to add the zip-file as a library. The examples should get installed automatically too. Both examples were tested in the Arduino 1.6.10 IDE using an ESP-07 on a white breakout board with the buzzer connected to GPIO14 and the onboard LED on GPIO2. Disclaimer: the port is fairly minimal. It works for me and hopefully for others too. Have fun and enjoy reaching the 10K
Thank you very much for your link! I tried your library and even downloaded the star wars theme. Works great! I just had two small things: 1. If the delay() after the .play statement was not long enough, the ESP crashed. It would be nice if you could create a waiting loop to wait till the play finished. Is there such a function? 2. In the starwars theme, I hear a few "tones" without a sound. Do you spot the problem of the string? "t112v127l12d2cg2d4cg2d4cc-cd2cg2d4cg2d4cc-cd.d6dg6fe6dc6d2.r8d2cg2d4cg2d4cc-cd2cg2d4cg2d4cc-cdg1&g2.gggg8"
As soon as I get some time I will delve into this and let you know. For now my short answer: 1. You can add a delay loop that calls the getIsPlaying() method as condition. 2. Most likely this tune uses some unsupported commands. Till later; have fun!
I just uploaded a new version. Please test the MusicEngineBlink example. In my tests it never crashed., This version now waits for completion. The library used a limited play-buffer, causing playback to stop just before the end. It now uses whatever buffer you provide and your string seems to play just fine up until the end. Have fun!
Thank you. I tried it an it waits not till finished. Very good. The spaces are still there. I think, it is always the same tone. Listen for my "now". Right afterwards, a tone is missing. Maybe it is the string? www.dropbox.com/sh/c4a97qvnn7locyz/AABY_-0RKHjNk2kRQWlsnGnwa?dl=0
Maxint R&D I use your newest code, a loudspeaker and a lolit nodemcu board. It seems, that it is always the same tone (frequency) which does not play. So, you say, your code plays ok and does not have the spaces like mine? Then, it must me my config.
I searched for MAX7219 Dot led matrix on ebay. One 8x8 led display with MAX7219 and pcb was US$1.91 plus 0.17 shipping. You will need a breadboard, some wires. The ESP-12E NodeMcu Lua ESP8266 CH340G ESP-12E Wireless WIFI Internet Development Board was $3.24 with free shipping. Make sure it includes the development board, which works with 5V USB power and has easy-to-connect pins.
Nice. But you may be a bit optimistic about longevity - it seems to depend on youtube html staying constant - not likely for much more than a year. Anyway, as I write you are at 60k subscribers, so perhaps not so long until you need a 6th digit.
I have to admit, I am not a big fan of live streams, because I think, it is mostly boring for the viewers (I am a boring person). This is, why I try to concentrate the content before publishing. But maybe, I am wrong ;-)
Hi, for the 4x Matrix I used the MD_MAX72xx Library from the Website arduinocode.codeplex.com/. In the file MD MAX72xx.h I have changed the following: #define USE_PAROLA_HW 1 #define USE_FC16_HW 1 #define USE_GENERIC_HW 0 #define USE_ICSTATION_HW 0 #define USE_OTHER_HW 0 It works fine. Sorry about my english, because I'am german.
Unfortunately this is not live count. To get live subscribers number you must use UA-cam API and some PHP script: tutsnare.com/how-to-get-youtube-subscribers-count-in-php/
Thank you very much for the tip. I did not know the V3 of the APIs. I already tried it and it worked (the difference was 1 subscriber). I also discovered, that the subscribers displayed can also be reduced. So, they are not "transaction save". I think, this is the trade-off for speed. But, as a simple minded person, I just use the maximum ;-) Now I still have the issue of https on the ESP (google does only accept secure calls)
Hey, just upload the example PHP script (How to get youtube subscribers count in php) somewhere and call it from your ESP. In this case you don't need to mess with https on ESP.
I do not know php, and the communication with it. But I will give it a try as soon as I have the time. I hope also, that I can do a "generic" way of doing this to use it also for other projects.
Good morning Andreas. I learn so much from your videos and from the comments that I always read. Thanks to everybody, you all make the learning process so very enjoyable.
You're welcome!
One of the more useful projects I've seen in a long time.
You had a need, designed a solution, built it and now use it on a daily basis.
Not some retro-crap game, but a tool. Nice job.
The "need" is questionable... It was probably more a "want"
Indeed. We need air, food, water and shelter.
The rest is "wants".
Once again an excellent video. You have covered such a lot of ground here and all of it was very interesting for me. As a result of your earlier videos I am now able to update my ESP's OTA, get the time from an NTP server and track the results on an OLED. It's just brilliant what can be achieved with the ESP8266. Thank you once again for bringing all this to my attention.
Best wishes
Arthur
You're welcome. As you see with my video, it needs both parts: The creators as well as the loyal subscribers. Otherwise, youtube would not be successful!
I have also that 90° rotation problem and now that matrix is laying around on my desk - but your video encouraged me to spend more time soon on this project :-) What i have learned watching your videos that it is to separate a project in different tasks and solve it one by one or find a replacement if there is no easy or a to expensive solution.
P.S. the segment of your subscriptions to other channels you've shown to us, is at least 60% congruent to my subscriptions :-)
There are also a few other libraries suggested in the comments. So, it looks like I did not have a complete overview.
Dividing things in parts is very important to reduce complexity. Otherwise, it is very hard to find errors. Unfortunately, it is not easy.
Did you solve the issue? Warren Merkel provided the solution - it's to do with the FC16 mode!
Another excellent video and very nice project. Though a fair part is already familiar to me, I love the way you explain every detail in a clear way. Hope you reach the 10.000 subscribers during the day and the beeper does not wake you in the middle of the night.
Thanks for your nice words.
If it happens during night, I maybe I have a good sleep...
Excellent work Andreas. As other subscribers may have mentioned, the MD_Parola library works very well with the ESP8266 now and the single piece 4 module displays. No rotation issues as you can configure the library in a header file to any row/column orientation. For the 4 module displays that are fed from the left, you use "FC16" mode. It works fine with the MD_MAX72xx Arduino library if the header file MD_MAX72xx.h is altered to enable FC16 support.
Change these #defines from their defaults to enable FC16 mode.
#define USE_PAROLA_HW 0
#define USE_FC16_HW 1
I have 3 of the 4 digit modules connected in-line for (12 displays) for a NTP clock and multipurpose display and it works perfectly. There is a demo of a 28 module setup someone else made here on youTube.
I definitively will look into Parola. Thanks for the defines.
I forgot to mention that I had a bit of trouble when first attempting to use the ESP8266 with the Parola library. I was unable to get hardware SPI to work, so be sure to use the bit-banged mode when you instantiate it. Here are the pins I ended up using, though I believe you can use any free i/o pin for the CS_PIN
#define DATA_PIN 13 // MOSI (DIN)
#define CLK_PIN 14 // CLK (CLK)
#define CS_PIN 15 // CS (CS)
// Hardware SPI connection (not working on ESP)
//MD_Parola P = MD_Parola(CS_PIN, MAX_DEVICES);
// Arbitrary output pins (must use this method on ESP8266 device)
MD_Parola P = MD_Parola(DATA_PIN, CLK_PIN, CS_PIN, MAX_DEVICES);
Thanks. I have to try it out, but I hope, somebody will fix the issue with the hardware SPI on the ESP...
Thanks for the heads up Warren - I was able to get my display working properly after I made those changes!
You really know how to find all the cool electronic components on Aliexpress (I didn't know those LED-matrix controllers).
Thanks!
Excellent videos. very educational. keep them coming!
Thanks!
As always, thank you and absolutely great job!!!
Thanks!
Great video - real world "problem" solved with an ESP8266. Liked the progression of solving things too like the brightness, and the beep alarm. Go on - have another subscriber from me.... one number closer to the big "ONE ZERO" :)
Ste
Thanks. I saw the counter clocking!
I know this is old, but I really enjoyed it. One day I will try this project. Thanks Andreas!
You are welcome. I have such a display in my lab showing me the number of subscribers...
Excellent Concept & Nice Design. I did it for my channel. I used UA-cam API instead of thingspeak. Love From India.
In the meanwhile, I also changed it to an API...
BTW: Subscribed...
OMG. Thank you Andreas.
At 9:58 you can see in the background a video monitor(blue framed monitor) that shows what the camera sees. Please tell everyone how you are doing this. I need a monitor to see what the camera sees when I'm recording videos for UA-cam. This would be a great help yo me.
Love your video content and how you document your projects. Especially areas of the project will be challenging, accomplishments and areas where work is needed.
Thanks
Thanks for your comment!
I use a Sony camera with an HDMI output and transfer this output to a very cheap LCD screen which is mounted in a 3D printed box. Nothing magic at all ;-) Just a 3 meter cable
Great video as always!
Thanks!
Hi Andreas, I enjoy your videos and subscribed just now to help you reach your milestone. One note: I have several Esp8266 modules directly connected to a similar buzzer (via PIO14) and they sound much louder than yours. Perhaps the difference is active vs. passive? I ported an MML music library from the mBed environment and now I can send tunes to nodes using MQTT. Great fun to hear the Mario tune sound on an event easily defined in Node-RED!
If your "buzzer" plays music, then it is a different one than mine. I would call it then a "loudspeaker", because you have to feed it with AC. Mine can only be switched on or off by a pin. Maybe this is the difference. Or maybe you have a different brand, too.
BTW: Do you have a link to the ported MML library. Sounds like fun in I would like to try it.
No, it's a very similar buzzer. Black and round, 12mm diameter, usually with the fairly cryptical "remove seal after washing" sticker. Mine are active buzzers. According the description they are 4-8 VDC, Maximum current: = 30 ma / 5 VDC, but I drive them directly from the ESP8266. I got mine last year from Ali; 10 pcs for 2,22 euro. The MML music library uses PWM to drive the P14 pin, DC only. I will see if I can publish a video of one of my ESP8266 MQTT nodes and find a place to share the ported library, including an example sketch for the ESP.
So, definitively, you have a "better" model...
I wait for your video and library!
I'm guessing here, but the number of subscribers shown there is probably not visible to Thingspeak because it's only shown to you. There is a drop down to the right of your name where you can select whether you are viewing your profile as yourself or as a returning subscriber. You found a way around it, but I thought you'd be interested in why it didn't work as you expected.
You are right. Other viewers suggested and tested, that it has to do that Thingspeak is not logged in.
Super Geschichte. Sehr durchdacht.
Danke!
Really good video I learned someting I can use in my own projects, thank you!
A trick : watch series on flixzone. Been using it for watching all kinds of movies lately.
@Francis Cohen Yea, have been using flixzone for years myself :)
" I hope this video was useful or at least interesting for you" what about funny as hell? I love your sense of humor. " . . .subscribe my channel like hell" I almost choked on my lunch.
I am also a fan of ThingSpeak - you could use their React app and ThingTweet to send out a tweet when the momentous occasion occurs. good job as alway Andreas.
Thanks for your nice comment! I certainly will look a little more into Thingspeak if I find the time and the use case.
I want to help, but I am already subscribed. Will try share this good video over facebook and twitter. THanks.
Thank you very much!
You are welcome.
Excellent info as usual. Thank you!
Don't be surprised if you get some unsubscribers vying for the glory of being #10,000 😃
I anyway do not see who is the 10'000 because the subscribers are updated a few days later.
You have to extract the XPath without beeing logged in ;) Best way is to open the pages in Incognito-Mode / Private-Mode of your Browser.
indeed... i succeded to get HIS counter because it's HIS channel, not mine :D
Thanks for the tip. This is an acceptable behavior, because Thingspeak is not logged-in.
Great video and project ;)
Thanks!
Thank you & Nick Gammons!!!
:-)
For such simple application you don't need library for MAX LedMatrices. Look at my code - it takes only about 20 lines of code to handle matrices from any MCU. Recently I added patch to rotate framebuffer 90 and 270 degrees because 4x1 matrices became much cheaper and popular than single modules. Regarding reading number of subscribers you can easily parse html page without any other libraries and APIs. It is not on my videos because I added this feature little later mainly for my daughter's channel counter.
Can you help me finding you code for the LEDs. I would be interested. Concerning UA-cam. In the meantime I changed it to a small library which calls the UA-cam API directly via https. These numbers seem to be accurate.
I like your videos!!! I'm looking forward for the next one. I would like to request you something. I know it's time consuming, Please create a blog or a place to attach schematics... Many time it's hard to find the circuit you talk about.. A simple blog will simplify it.
Is it possible to power the display directly from WEMOS D1 mini or Arduino Nano with USB power ?
Thanks! For the moment, I try to post the necessary files to my github account, because it accepts any file format. The effort for an additional channel is quite high. And so far If somebody needed a resource and asked me in the comments, I tried to help.
Maybe this will change in the future.
Concerning driving the display: If you connect Vcc ot the 5V rail of the Wemos, it is connected via a shottky diode to the USB hub. So, it should work, but maybe not inside the specs during startup, when all LEDs are on. Do not connect Vcc of the display to the 3.3 v rail. This is not capable to supply the current.
Better would be th have Vcc directly connected to an independent 5V connection outside the Wemos. I think, the same applies for the Nano.
Thanks Andreas. One short question. Could you tell us which SW development workflow you use? Arduino IDE, Platformio, VisualStudio... ?
Thanks
I use the standard Arduino IDE.
When I saw "Dot Matrix" (without LED in front of it) the first thing that came to mind for me was printers. I wondered for a minute or two what the possible relevance could be, until I saw those displays once the video got going...
Yea, these were the days when everybody used dot matrix printers...
It's unfortunate, as I have a whole pile of them, and they're all going to end up scrapped. I guess I'll add to my collection of stepper motors and such...
Great video again!
I am wondering what makes https so hard for you, since you know so much more about all this then I do. I really learn(ed) a lot from all your clear and complete videos!
But in several projects I've build so far, I am using rest/json over https to send data to public cloud services. Some are already running for several months uninterrupted.
Let me know if I can help (I would be really surprised :-))
i am have trouble installing the library's via the zip method is there another way it warns me that the zip does not contain a valid library
Now it should work. I changed the structure. But this is an old project ;-)
Hi Andreas, which pins are used (SCK/DOUT/CS) in this ESP MAX7219 library, i have no luck running it on mine Wemos D1 mini. It would be realy good if you could help me out :) Thank you for your time and for your videos
It uses the normal SPI pins: SCK: D5 and DIN: D7. The CS can be selected in the initialization. I use GPIO2 (D4 on Wemos)
it works now, thank you!
Can you adjust the font size to fit 6 figures or are you planning to build a new one soon?
Maybe this would possible. But I bought stuff for a new one :-)
can matrix and 7segments max7219 modules be mixed on same esp8266 or arduino? Can they share the same DIN and CLK and change only the CS pin, or what? Thanks in advance
I never tried. So I do not know. The timing is quite tricky. So I think somebody has to try it to confirm
great video. You suggest me to avoid buying the 4 digit module because the library is unsupported? thanks
Matteo Giovo No. If you read the comments below you find some libraries which should work. And the one I used works too
Very nice project! Maybe you can incorporate a feature that sends you an SMS/email when you have a countdown of say 10 subscribers to go for 10k subscribers.
Good idea! Thanks!
very useful information. Thank you
You are welcome!
Great project!
I just suggest "fireworks" instead of the buzzer when you reach the 10000 subscriber!!! :D
I am not Colin Furze! So, this event iwil be probably a little less exiting.
Great video but you mentioned that ThingSpeak didn't work and then you went ahead and used it?
Graham Gillett It did not work on the first field, but on the second. Propably, I was not clear enough. Subscribers found out,that is is because I was logged in and Thingspeak not.
i tried the exact example you did, using the xpath got with chrome for the left subscriber counter that gave you error, on your about page, and i get correctly the number, no errors...
squalazzo As I said, I don't know, why. I tried it two times from scratch with the same result.
i think it's like an other viewer said: you have to take the xpath as NOT logged in on youtube... these are my xpath, clearly different:
while logged in:
//*[@id="browse-items-primary"]/li/div/div[1]/div/span[1]/b
while not logged in:
//*[@id="browse-items-primary"]/li/div/div[3]/div/span[1]/b
just take them in chrome anonymous mode ;)
oh, look at my other comment about PAROLA library, right below this comment ;)
1. Interesting, but acceptable, because Thingspeak is not logged-in. I got a tip concerning the new google APIs and i think, I will try this way. There is just the problem with https. The rest works.
2. Concerning Parola: I remember, I saw a video about that. But is it working with the ESP?
unfortunately not... but i just asked the author :D
forum.arduino.cc/index.php?topic=171056.msg2951152#msg2951152
btw, i mentioned Parola just to say that code for 90° rotation is already done there, so maybe squix78 can take a look on that code :)
Hi Andreas, great video and channel! I ordered also a MAX7219 module and want to put it into a nice box as you have it. Any chance you can share the source files for 3D printing or can produce one for me?
Grüße aus Deutschland!
Done: www.thingiverse.com/thing:1852157
Great. Thanks a bunch!
Wenn ich dich wäre, würde ich gleich fünf Displays mehr anhängen ;-)
Danke! So schnell schiessen die Preussen vermutlich nicht...
Learnelectronics has a video on his channel that tells you how to fix the problem. I'm on my phone so I can't give you a link but he has a couple of max 7219 video's.
Thanks for the hint.
@Andreas: I see you're getting closer to your 10K subscribers! To celebrate this happy event even more, I suggest you to make your counter play a cheerful tune. I just added two easy to follow examples to my ported MusicEngine library. See github.com/maxint-rd/ESP-MusicEngine
To install just download the zip-file from GitHub and use the library menu in the IDE to add the zip-file as a library. The examples should get installed automatically too. Both examples were tested in the Arduino 1.6.10 IDE using an ESP-07 on a white breakout board with the buzzer connected to GPIO14 and the onboard LED on GPIO2. Disclaimer: the port is fairly minimal. It works for me and hopefully for others too. Have fun and enjoy reaching the 10K
Thank you very much for your link! I tried your library and even downloaded the star wars theme. Works great! I just had two small things:
1. If the delay() after the .play statement was not long enough, the ESP crashed. It would be nice if you could create a waiting loop to wait till the play finished. Is there such a function?
2. In the starwars theme, I hear a few "tones" without a sound. Do you spot the problem of the string? "t112v127l12d2cg2d4cg2d4cc-cd2cg2d4cg2d4cc-cd.d6dg6fe6dc6d2.r8d2cg2d4cg2d4cc-cd2cg2d4cg2d4cc-cdg1&g2.gggg8"
As soon as I get some time I will delve into this and let you know. For now my short answer:
1. You can add a delay loop that calls the getIsPlaying() method as condition.
2. Most likely this tune uses some unsupported commands.
Till later; have fun!
I just uploaded a new version. Please test the MusicEngineBlink example. In my tests it never crashed., This version now waits for completion. The library used a limited play-buffer, causing playback to stop just before the end. It now uses whatever buffer you provide and your string seems to play just fine up until the end. Have fun!
Thank you. I tried it an it waits not till finished. Very good. The spaces are still there. I think, it is always the same tone.
Listen for my "now". Right afterwards, a tone is missing. Maybe it is the string?
www.dropbox.com/sh/c4a97qvnn7locyz/AABY_-0RKHjNk2kRQWlsnGnwa?dl=0
Maxint R&D I use your newest code, a loudspeaker and a lolit nodemcu board. It seems, that it is always the same tone (frequency) which does not play.
So, you say, your code plays ok and does not have the spaces like mine? Then, it must me my config.
Does anybody know the total cost of the build?
I searched for MAX7219 Dot led matrix on ebay. One 8x8 led display with MAX7219 and pcb was US$1.91 plus 0.17 shipping. You will need a breadboard, some wires. The ESP-12E NodeMcu Lua ESP8266 CH340G ESP-12E Wireless WIFI Internet Development Board was $3.24 with free shipping. Make sure it includes the development board, which works with 5V USB power and has easy-to-connect pins.
great video .
Thanks!
10 out 10 bro
Thank you!
Nice. But you may be a bit optimistic about longevity - it seems to depend on youtube html staying constant - not likely for much more than a year. Anyway, as I write you are at 60k subscribers, so perhaps not so long until you need a 6th digit.
In the meantime, I changed it to an API. But now I have the issue with fingerprint aging...
Yay - you reached the 10000 mark!
I passed now the 60'000 ;-)
Apologies - and I watched your #186 a few days ago!
:-)
Brilliant
Thanks!
Hi, please add the STL files for printout :D
I do not have it anymore. Sorry.
another way to get UA-cam subscribers count is by using UA-cam API together with JSON library.
That's how I do it now. The newest code is on github
Super nice project ;)
Thanks!
Set up a live stream once you get close to 10,000
I have to admit, I am not a big fan of live streams, because I think, it is mostly boring for the viewers (I am a boring person). This is, why I try to concentrate the content before publishing. But maybe, I am wrong ;-)
The reason for those MAX7219 being so cheap is because they are counterfeits.
I did not know that. At least, they work for now...
Hi, for the 4x Matrix I used the MD_MAX72xx Library from the Website arduinocode.codeplex.com/.
In the file MD MAX72xx.h I have changed the following:
#define USE_PAROLA_HW 1
#define USE_FC16_HW 1
#define USE_GENERIC_HW 0
#define USE_ICSTATION_HW 0
#define USE_OTHER_HW 0
It works fine.
Sorry about my english, because I'am german.
Thanks for the tip! No problem with Englisch. I (obviously have the same problem)
Unfortunately this is not live count. To get live subscribers number you must use UA-cam API and some PHP script: tutsnare.com/how-to-get-youtube-subscribers-count-in-php/
Thank you very much for the tip. I did not know the V3 of the APIs. I already tried it and it worked (the difference was 1 subscriber). I also discovered, that the subscribers displayed can also be reduced. So, they are not "transaction save". I think, this is the trade-off for speed. But, as a simple minded person, I just use the maximum ;-)
Now I still have the issue of https on the ESP (google does only accept secure calls)
Hey, just upload the example PHP script (How to get youtube subscribers count in php) somewhere and call it from your ESP. In this case you don't need to mess with https on ESP.
I do not know php, and the communication with it. But I will give it a try as soon as I have the time. I hope also, that I can do a "generic" way of doing this to use it also for other projects.
Just sent you a private message here, on UA-cam. I hope you get it.
Jonathan Beri thanks. In the meanwhile I got help from various viewers and have it running on the API with https.