O'Reilly logo

Raspberry Pi For Dummies by Mike Cook, Sean McManus

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

One-Button Audiobook Player

Michael Clemens has used the Raspberry Pi to create an audiobook player for his wife’s grandmother, who is visually impaired and finds digital audio players difficult to use.

This project requires some electronics work, adding transistors, an LED, a pair of speakers, and a large button into a plastic case and linking the button and LED to the Raspberry Pi’s GPIO pins.

A Python script enables the button to control the media player software: Pressing the button pauses or plays the audiobook, and holding it down for four seconds sends it back one track.

To change the audiobook, you just plug in a USB drive with the new audiobook on it. It is automatically copied across to the Raspberry Pi, replacing the old audiobook.

Instructions, Python code, and photos are on Michael’s blog: http://blogs. fsfe.org/clemens/2012/10/30/the-one-button-audiobook-player/.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required