Chapter 12

The Raspberry Jazz Glitter Trio

In This Chapter

arrow Hacking a glitter lamp

arrow Attaching a webcam

arrow Reading an image

arrow Assigning sound

arrow Extracting pixel data

arrow Creating the band

This is a fun project that creates a free jazz trio inside your Raspberry Pi. (Some people joke that free jazz got its name because no one would ever pay for it. True, jazz is an acquired taste and a little goes a long way, but this is a fascinating little project nevertheless.) The project points a webcam at a glitter lamp, the kind that features glitter floating in a liquid. The camera acts as a high-resolution multicolor sensor. It uses the data gathered from the glitter lamp to trigger the sounds for the project, thus creating free jazz.

Meeting the Gang

The photograph in Figure 12-1 shows our version of the Raspberry Pi jazz glitter trio. Yours may be a bit different because of the exact materials you’re ...

Get Raspberry Pi Projects For Dummies now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.