Spotify Playlist Creator

Spotify

I was inspired to make this program after my friend wanted to separate their liked songs into different vibes so they could shuffle play.

I used the Spotify API to access a users account. To authenticate the account, a browser tab is opened with a sign in page. You can then choose a variable such as energy level or genre, to be created. The source for the songs is then specified, with the program printing out a list of your public playlists. Type the name of a playlist to create the new playlist.

Additionally the “stats” feature takes your saved tracks and gives you information about them. For example, it gives you the average tempo of your songs, and the highest and lowest of Spotify-generated variables which describe the song’s danceability, energy level, loudness, “speehiness” and “liveness”.

Pong

Very simple game of Pong I made in Pygame. Ball moves diagonally in the most basic way possible, by adding or subtracting 1 of the x and y. Implemented collision with the walls and paddles, and a score system.

Implemented a very simple bot to play against the user: paddle simply moves towards the y position the ball is at. This made the bot unbeatable however so I made the ball speed up over time, the bot can keep up until a critical point where the ball is moving too fast for the rudimentary system to keep up. The user must therefore beat the bot by predicting the position of the ball when it reaches their paddle’s x coord rather than simply following its position on the y.

Pong
Pong

Corona Clock

This was my first adventure into IoT/electronics.

The idea came when I found an API which served data relating to the COVID pandemic. I researched how to connect a seven segment display to a Raspberry Pi, using the GPIO pins. I also discovered I2C which is a brilliant way to connect electronic devices with only 2 wires: one for data and one to sync the clock.

I then made a little box for my electronics using some old insulation.

The device used the API to display the number of people who had recovered from coronavirus globally.