PrestoDeck is a Spotify music controller for the Pimoroni Presto. It displays the album cover art, name, and artist of the currently playing track and provides basic controls for playback.
- Pimoroni Presto
- (Optional) Right Angle USB C Cable
Follow these steps to install and set up the project on your Presto. You can also checkout this YouTube demo/tutorial.
Download and install Thonny IDE, which you'll use to connect to your Presto and upload the code:
Clone the repository to your local machine:
git clone https://github.com/fatihak/PrestoDeck.git
- Visit Spotify For Developers and Sign In
- In the Developer Dashboard, click "Create an App"
- Give your app a Name and Description
- For the Redirect URIs, enter
http://127.0.0.1:8080
- Tick the "Web API" box
-
Run the helper script to authenticate and generate your Spotify credentials:
bash adhoc/generate_token.sh
- Note: this requires python3 to be installed on your system
-
You'll be prompted to:
- Enter the Client ID, Client Secret, and Redirect URI for your Spotify App.
- Visit a URL to authorize your app and paste the redirected URL back.
- Select a default Spotify device to control playback from PrestoDeck.
-
Once complete, copy the generated
SPOTIFY_CREDENTIALS={...}
line and store for the next steps
- Open Thonny IDE, and ensure the interpreter is set to MicroPython (Raspberry Pi Pico).
- In the Files window, right clicking on the root of the cloned project in the Files window and selecting 'Upload to /' to copy all the files to the Presto
- In Thonny, open the
secrets.py
file. - Replace the placeholder WIFI credentials with your SSID and password
- Paste the SPOTIFY_CREDENTIALS= line from step #4
- In Thonny, open the
main.py
file. - Click Run to launch the program, and let the beats flow!
PrestoDeck is maintained and developed with the help of sponsors. If you enjoy the project or find it useful, consider supporting its continued development.