Raspberry Pi: qrocodile – a kid-friendly Sonos system

31 views Leave a comment

Chris Campbell’s qrocodile uses a Raspberry Pi, a camera, and QR codes to concede Chris’s children to take full control of a Sonos home sound system. And we adore it!


SONOS is SONOS backwards. It’s also SONOS upside down, and SONOS upside down and backwards. we only learnt that this means SONOS is an ambigram. Hurray for learning!

Sonos (the product, not a ambigram) is a multi-room orator complement tranquil by an app. Speakers in opposite bedrooms can play opposite marks or join army to play one lane for a well-spoken low-pitched atmosphere around your home.

sonos hiss pi

If we have a Sonos complement in your home, we would rarely suggest accessing to it from outward your home and set it to play a Imperial Mar as we travel by a front door. Why wouldn’t you?


One day, Chris’s immature children wanted to play an manuscript while eating dinner. By this one request, he was desirous to emanate qrocodile, a low-pitched jukebox enabling his children to control a songs Sonos plays, and where it plays them, around QR codes.

It all started one night during a cooking list over winter break. The kids wanted to put an manuscript on a turntable (hooked adult to a line-in on a Sonos PLAY:5 in a dining room). They’re ideally means of putting vinyl on a turntable all by themselves, though regulating a Sonos app to switch over to play from a line-in is a opposite story.

The QR codes paint commands (such as Play in the living room, Use a turntable, or Build a strain list) and artists (such as my stream low-pitched vanquish Courtney Barnett or a Ramones).

qrocodile hiss Pi

A camera trustworthy to a Raspberry Pi 3 feeds a Pi a QR formula that’s presented, and a Pi runs a book that recognises a formula and sends instructions to Sonos accordingly.

Chris used a costum chronicle of a Sonos HTTP API combined by Jimmy Shimizu to benefit entrance to Sonos from his Raspberry Pi. To build a QR codes, he wrote a book that utilises a Spotify API around a Spotipy library.

His children are now means to benefaction recognizable manuscript art to a camera in sequence to play their preferred track.

It’s been engaging saying a kids putting a thing by a paces during their visit “dance parties”, queuing adult their favorite songs and uncovering new ones. we unequivocally like that they can use discernible objects to learn strain in most a same approach we did when we was their age, looking by my relatives records, saying that ones had engaging design or reading a strain titles on a back, listening and exploring.

Chris has supposing all a scripts for a project, along with a educational of how to set it up, on his GitHub — have a demeanour if we wish to reconstruct it or learn some-more about his code. Also check out Chris’ website for some-more on qrocodile and to see some of his other creations.

Source: Raspberry Pi blog, created by Alex Bate.

Comment this news or article