1. Spotify Music on LCD1602 (Arduino UNO & Python 3.13)

I built a small project to display the music currently playing on Spotify on a 1602 LCD screen using an Arduino UNO and a Python script.

What it does

  • The first line of the LCD shows the song title and artist.
  • The second line shows the track duration.
  • If the title is too long, it scrolls smoothly across the display — like the animation on iPhones.

What you need

  • 1x Arduino Uno
  • 1x LCD1602 (with or without I2C module)
  • 1x Potentiometer
  • 1x 220Ω Resistor for Anode
  • Jumper wires + Breadboard
  • Your PC with Python 3.13 installed

Files

  • SpotifyLCD.py (Python script using the Spotify API and pyserial)
  • arduino_lcd_scroll.ino (Arduino code to scroll long titles and show duration)
  • Download project files

How it works

  1. The Python script uses the Spotify Web API to get the currently playing track.
  2. It sends the track info via USB serial to the Arduino.
  3. The Arduino reads the data and updates the LCD accordingly.

Extras

  • You can modify the Python code to also show the current time elapsed, album name, or even control playback.
  • The Arduino code supports basic horizontal scrolling and can be extended to add button control.

Result

Here’s a short video to show the LCD1602 in action, along with a screenshot of the Python script. The filming setup wasn’t perfect, but I hope you still enjoy it!

Comments

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *