Skip to main content
encuentros header

How to build a photo frame with interactive music using Raspberry Pi

Thanks to the great Ireland photos of Mariona Villavieja and the on-site audio captures by her sister Amanda we set-up the ‘Encounters’ free exhibition on Casa del Libro at Rambla de Catalunya until the end of January. The photo exhibition is composed of 18 30 cm x 30 cm pictures and 2 interactive music photos thanks to the use of a Raspberry Pi, a PIR sensor and a few speakers at the back of each frame.

The easiest way (and not very expensive at all) to do it, is using a Raspberry A+, a USB powered speakers, and a time / sensitivity configurable PIR sensor to control the audio trigger.

The 2$ chosen PIR (Pasive Infrared Sensor) is a very common model you can find everywere.

PIR Sensor
PIR Sensor


You can also use this PIR sensor from elecfreaks the same way:

 elecfreaks PIR sensor
elecfreaks PIR sensor

I used a simple Python script to control the PIR sensor and turn on and off the music on demand, attaching the PIR sensor to Raspberry Pi GND, 5V and BCM pin 4:

Encuentros: Diario Fotográfico de un viaje a Irlanda

Photos: Mariona Villavieja / Amanda Villavieja

Sound: Amanda Villavieja

Technical set-up: Ferran Fàbregas

La Casa del Libro, Rambla Catalunya, 37 Barcelona

02.01.2016 – 30.01.2016


Exposición Encuentros
Exposición Encuentros


Leave a Reply

%d bloggers like this: