akshithk
Published © GPL3+

Arduino Controlled Spotify

Controlling the Spotify app using just 3 buttons wired to the Arduino and a Python script.

IntermediateShowcase (no instructions)11,080
Arduino Controlled Spotify

Things used in this project

Hardware components

Breadboard (generic)
Breadboard (generic)
×1
Alphanumeric LCD, 16 x 2
Alphanumeric LCD, 16 x 2
×1
Arduino UNO
Arduino UNO
×1
Special Function IC, Push Button On/Off Controller with Debouncer
Special Function IC, Push Button On/Off Controller with Debouncer
×3
Resistor 220 ohm
Resistor 220 ohm
×3
Jumper wires (generic)
Jumper wires (generic)
×1
Female/Female Jumper Wires
Female/Female Jumper Wires
×1

Software apps and online services

Arduino IDE
Arduino IDE
Visual Studio Code Extension for Arduino
Microsoft Visual Studio Code Extension for Arduino

Story

Read more

Schematics

Circuit Diagram.

This picture shows the connections for the project. It is a bit blurry, which is why the main connections are listed on my GitHub @akkik04 and on the details page of this project.

Code

Arduino & Python Scripts for the Project.

Arduino Script: This is a part of the software for the project written in C++. This part of the software receives the crucial input from the buttons wired to the Arduino Uno. Based on the input received from the buttons, it prints a keyword onto the serial monitor which is communicated to the Python script through the COM3 port. This part of the script can now receive the song name from the python script and output it through the 1602 LCD. Python Script: This is a part of the software for the project written in Python. This part of the software receives the keyword signals sent from the Arduino/C++ script through the COM3 port, and uses the PyAutoGUI module to automate the functions onto the Spotify app (i.e. previous track, pause track, next track). I updated this script to include a module for song detection called SwSpotify. The script can now send the song name to the Arduino through the COM3 port for display through the 1602 LCD.

Credits

akshithk
0 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.