Seven Segment Subscriber counter using ESP8266 and Adafruit Backpack LED. Good for 9999 subs
Mike Makes It
Yes I know there are loads of subscribers counters on YouTube but never the less here's mine.
Its based on an AZDelivery ESP8266 Node CPU board and an Adafruit 0.56" white seven segment I2C display. The code is a modified version created by Becky Stern. Becky's was the first sub counter I saw so I made my own based on her's, changing it up a little. Becky's video can be found here:
https://youtu.be/PheHlYwUS_w Take a look as it's really good.
The code, has been modified a little so as the display flashes when extra subscribers are added. Also there is an extra line in the code to allow for an update on the ESP8266 core. The code can be found on my google drive along with the wiring diagram I used for connecting the display to the ESP8266
The whole device is powered using a plug in PSU with a micro usb connector (5volts)
You do need to input your wifi SSD and password and create a Google API unique to your channel and put this into the code. You will also need your channel ID. The api key and channel ID allows you access your YouTube data from Google and extract the information you need, in this case the sub count. There are links in the code to help you with this.
You can test your API Key and Channel ID by going to the following address in your browser, replacing YourChannel ID and YourAPI Key with the ones you’ve just generated to see if they work:
https://www.googleapis.com/youtube/v3/channels?part=statistics&id=YourChannelID&key=YourAPIKey
In my Google drive is information about drivers you may need to install before your computer will " talk" to the ESP8266. I used Arduino IDE, again there is information in the ESP folder to help. It is straight forward but you do need to know your way around a computer. I use a Mac but a Windows pc is fine as well.
The sub counter is good for up to 9,999 subs. When I get closer I'll do one for 99,999,999! Might be a while waiting for that one......
Links to the items used in the project are listed below:
Amazon for ESP8266, pack of 5:
https://www.amazon.co.uk/gp/product/B074Q27ZBQ
Amazon for shadow box picture Frame although almost any other similar would suit:
https://www.amazon.co.uk/gp/product/B08DLRFTHD
The pi hut for the Adafruit display:
https://thepihut.com/products/adafruit-0-56-4-digit-7-segment-display-w-i2c-backpack-white ... https://www.youtube.com/watch?v=TxYdH9LB1bo
269336551 Bytes