This Raspberry Pi Pico-powered 'barcode beast' scans your CDs and plays your tunes via Spotify

Listening to music on Spotify can certainly be a rewarding experience but it's the way we interact with our music in the real world that can make a difference. That's why we're excited about this coolRaspberry Pi Pico-powered project created by maker and developer Bas. Using our favorite microcontroller, he's created abarcode scanning systemthat recognizes the barcodes from your favorite CDs and uses the data to queue up the music automatically on Spotify.

Advertisement

As simple as this project idea sounds, it's actually quite involved and took a bit of engineering to pull off. First, as you might have guessed, you must scan a barcode from the CD you want to listen to. This barcode is parsed using MQTT to a home assistant. The Raspberry Pi has a script that checks for the album through a music database known as Discogs. Once the album has been identified, the song is queued up using the Spotify API and plays in Bas's living room.

Advertisement

The casing for the project was designed from scratch by Bas just for this project using Fusion 360. It was then 3D Printed but we're not sure exactly what 3D printer was used to print the final version we see in the blog post. However, we do have a list of thebest 3D printers for 2024if you want to see what's leading the market. To finish off the design, he included a couple of googly eyes. While much of this project is open source, the 3D printer files haven't been shared but Bas assures that you can contact him for a copy of the design files.

It doesn't take too much hardware to recreate this project and Bas was kind enough to share plenty of details about what went into its creation. You'll need aRaspberry Pi Pico W—the W version is necessary for the network connectivity. It's connected to a barcode scanning module which is used to read the CD barcodes.

Bas also shared the software he put together for the project. You can explore the source code over at his GitHub page. It includes both the code used toverify the albumusing barcode data as well as the code that runs on the Pico that directs the barcode usingMQTT.

If you want to get a closer look at thisRaspberry Pi projectin greater detail, you can check out the originalblog postshared by Bas.

Advertisement

Hot Rec

Advertisement

Toshiba stuffs an entire PC into a dot matrix printer

Toshiba stuffs an entire PC into a dot matrix printer

Teen 'swatter for hire' pleads guilty to making more than 375 swattings and fake mass-shooting and bombing calls

Teen 'swatter for hire' pleads guilty to making more than 375 swattings and fake mass-shooting and bombing calls

AMD Phoenix CPU brings palm-sized SBC to life for up to $329

AMD Phoenix CPU brings palm-sized SBC to life for up to $329

Maker creates thumb-sized Raspberry Pi USB-C Ethernet module using the RP2040

Maker creates thumb-sized Raspberry Pi USB-C Ethernet module using the RP2040

ASRock launches almost 20 ATX 3.1 power supplies

ASRock launches almost 20 ATX 3.1 power supplies

Chinese DDR4 producers are undercutting South Korean rivals' pricing by 50%

Chinese DDR4 producers are undercutting South Korean rivals' pricing by 50%

Intel's Core 200 family poised to mix Arrow, Lunar, Meteor, Alder, and Raptor Lake parts

Intel's Core 200 family poised to mix Arrow, Lunar, Meteor, Alder, and Raptor Lake parts

This Raspberry Pi 'Expanso Football' is a cool distributed compute cluster in a briefcase

This Raspberry Pi 'Expanso Football' is a cool distributed compute cluster in a briefcase

Dell ships first Nvidia Blackwell server racks — PowerEdge XE9712 servers are enterprise-ready

Dell ships first Nvidia Blackwell server racks — PowerEdge XE9712 servers are enterprise-ready

Intel celebrates the arrival of MRDIMMs

Intel celebrates the arrival of MRDIMMs