Raspberry Pi and Spotify Powered E-Ink Display (Tutorial)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
this is a 5.7 inch e-ink display that  shows the cover art song and artist   of whatever song I'm Listening to on Spotify in this video I am going to show you the  design process that I used to make this   interesting device and I'm going to  show you how you can make it yourself   the device uses only two parts a raspberry pi02w  and this 5.7 inch e-ink display from pie Maroney this is the first time that I've  built a complete project from the   software all the way to modeling and  enclosure with Fusion 360. it was a   very challenging yet rewarding project  and I am very happy with the end result let's take a closer look at the necessary  components for this build the brains of   this project is a raspberry pi02w this is a small  and Affordable Computer that is perfect for this   project in order to use it with the e-ink display  I needed to solder the gpio headers to the board   now let's take a look at the star of this  project which is the 5.7 inch seven color   display from pimeroni the name of this  particular display is the inky impression   and it is designed to be used with a Raspberry  Pi as you can see on the back there is a female   gpio header where we are going to plug in the  Raspberry Pi additionally this display features   four physical buttons on the side which is a nice  addition to add extra functionality to the device   the only other necessary component  in this build is a micro USB cable   that will be used to power both the  Raspberry Pi and the e-ink display let's now go ahead and look at the design  iteration of the 3D imprinted enclosure   I made several different versions in Fusion 360  before I was fully satisfied with the result the first design was very basic but gave a  good rough draft for the overall look that   I wanted to achieve you can see in the  model that it has two parts with cutouts   for the display and a logo cut out for  airflow and the cable to slot through additionally I added four holes in the back to  be able to screw the pieces together I ended   up using these really nice brass inserts to be  able to screw together the front and the back   I was really happy with the first version however  there was still a lot of room for improvement I then went back to the drawing board and decided  to make a completely new Fusion 360 project   this time around I actually imported the Raspberry   Pi zero model and I even made my own  custom model for the e-ink display having all of these components in one project  made designing the enclosure much easier   I was able to actually design around  both the e-ink and the Raspberry Pi   to ensure that everything had proper dimensions there were a few key changes in this  design compared to the first I added   a slot on the back to properly  route the cable through the back   additionally I decided to make this design a snap  fit case so no screws were necessary in the build   in order to do that I added  these angled joints in the model   I also added standoffs for the Raspberry  Pi to hold it in place in the enclosure   lastly I added four buttons to the side in  case I wanted to use them in future updates   currently the buttons aren't used  for anything but I think it would   be interesting to add Spotify media control  in the future overall this second design was   much more professional looking and  the project was really taking shape I then decided to make smaller adjustments in  the third version of this design in the second   version there were only two snap fit joints  and I wanted to add two more to this new design   additionally I made the enclosure slightly thicker  to improve the overall structural integrity lastly   I made minor modifications to the dimensions to  improve the tolerances between the enclosure and   the e-ink display let's now move on to discuss 3D  printing and some of the issues that I ran into   the major issue that I kept running into  when 3D printing the enclosure was durability   I am relatively new to 3D printing  and have only used standard pla the first few prints I used this matte pla that I  had laying around and I really like how it looked   however it was very weak and parts such as  the snap fit joints would just break off   I decided to go purchase some pet G because I  heard that is much stronger once I switched to   using pet G I was really impressed with the  strength of the prince Not only was the pet   G stronger but it was also more flexible and had  more give to it the only issue that I had with pet   G was slight warping of the corners however this  was easily fixed by adding a brim to the print in   Cura and using a glue stick on my print bed now  I'm going to show how to set up the software on   the Raspberry Pi to get it to display the song  information all of the code is open source and   is available on my GitHub in the description  down below this code is actually forked from a   similar project that I made a few years ago  using a RGB Matrix to display the cover art   I have a full tutorial on my channel for that  project as well so be sure to check it out the   first step in setting up the software is to flash  a Micro SD card with the Raspberry Pi OS on it   in order to do so I used the Raspberry Pi  imager software which will also be linked in the   description down below I always click the settings  icon before writing the image to the SD card this   allows me to enable SSH to remotely access my  Raspberry Pi and to connect it to my home network   then I click right and wait for it to finish now that the SD card has been imaged I'm going to  plug it into my Raspberry Pi and turn everything   on I can now SSH to the Raspberry Pi using  the following command now that I am logged   in we are going to modify some settings on the  Raspberry Pi so that I can interface with the   display I'm going to change in the root user  using sudo Su now I'm going to use raspi Dash   config in order to bring up the configuration  menu I'm going to select interface options and   then SPI and I'm going to enable that and then  I'm also going to select interface options again and I'm going to select i2c this time  and I'm going to enable that as well and then I'm just going to click finish and that's  all the configuration that we have to do now I'm   going to navigate to my GitHub and copy this  command that says wget on the readme file now   I'm going to paste that command into my command  prompt after the script has completed downloading   we need to modify the permissions to allow us  to execute it I use the command chmod plus X   and then the script name to make it executable now  we need to run the script using sudo Bash setup.sh this is going to install necessary packages  and libraries and all we have to do is wait   once it is done installing it is going  to prompt for our Spotify credentials in order to complete this project we need   to go to the Spotify developer  dashboard and create a new app we will give our app a name and a description once completed we will have  the Spotify client credential   which we can copy into our command prompt next we will also need to  copy the Spotify client Secret lastly we need to add a redirect URI to the  Spotify application for this project I just   use HTTP colon forward slash forward  slash localhost forward slash redirect we then copy that into the command prompt  and hit enter next simply enter your   Spotify username this is going to produce  a URL that we need to copy into a browser we need to accept the terms of service and  then it is going to redirect us to another URL copy this URL from your browser  and paste it to the command prompt this will create a file named dot cache in  the current directory and will be used to   authenticate with the Spotify API then we  need to provide the full path to the cache   file we just created and in my case it will  be home Pi Spotify e-ink dot cache that is   it for the software setup and it should now say  setup is complete when done with the software   installed it should Now display the cover  of the song we are listening to on Spotify overall I'm really happy with how this  project turned out and I'm excited to   see people create it for themselves  if you enjoyed this video or found   it useful please consider subscribing  to the channel it helps me out a lot
Info
Channel: Ryan Ward
Views: 416,784
Rating: undefined out of 5
Keywords:
Id: uQYIAYa27ds
Channel Id: undefined
Length: 10min 14sec (614 seconds)
Published: Wed Oct 26 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.