Raspberry Pi radio player with touchscreen



Similar documents
Playing sounds and using buttons with Raspberry Pi

Setting up a Raspberry Pi as a WiFi access point

PiFace Control & Display

Adafruit's Raspberry Pi Lesson 6. Using SSH

Adafruit's Raspberry Pi Lesson 1. Preparing an SD Card for your Raspberry Pi

Adafruit's Raspberry Pi Lesson 5. Using a Console Cable

Adafruit's Raspberry Pi Lesson 7. Remote Control with VNC

Smart Music Control Application CONTENTS. Smart Music Control Application. User Guide CONTENTS 1 GETTING STARTED 1 MEDIA PLAYER MODE 1

Raspberry Pi Kernel-o-Matic

Adafruit NFC/RFID on Raspberry Pi

Adafruit's Raspberry Pi Lesson 5. Using a Console Cable

itunes 4.2 User Guide for Windows Apple Computer, Inc.

Matrix and 7-Segment LED Backpack with the Raspberry Pi

X10 Webinterface User Quick Guide(ver0.9.2 Beta)

Raspberry Pi Webserver

UVO SYSTEM QUICK REFERENCE GUIDE

Preparing Raspberry Pi

STB- 2. Installation and Operation Manual

M2GO & M1 Operating System Installation

Radio Toolbox And Player Embedding

Cassette2CD Wizard User's Manual

7 Mini Tablet User Guide

itunes Basics Website:

Adding a Real Time Clock to Raspberry Pi

BeagleBone Black: Installing Operating Systems

WebIOPi. Installation Walk-through Macros

SETTING UP RASPBERRY PI FOR TOPPY FTP ACCESS. (Draft 5)

Monitor Your Home With the Raspberry Pi B+

Raspberry Pi Setup Tutorial

Concert Hall Sound You Can Hold In Your. Hand. Users Manual 0.9

X10 Webinterface User Guide(ver0.9)

Cassandra Installation over Ubuntu 1. Installing VMware player:

Install bluez on the Raspberry Pi

5inch HDMI LCD User Manual

Using Flash Media Live Encoder To Broadcast An Audio-Only Stream (on Mac)

Getting to Know Xsight Home Screen and Everyday Use Settings PC Setup

Embedded Based Web Server for CMS and Automation System

How to Install Multicraft on a VPS or Dedicated Server (Ubuntu bit)

Creating a DUO MFA Service in AWS

ShoutCast v2 - Broadcasting with Winamp & ShoutCast DSP Plugin

ShoutCast v2 - Broadcasting with SAM Broadcaster

MEDIA SHARE Set Up Guide for PCs with Windows 7

Adafruit's Raspberry Pi Lesson 5. Using a Console Cable. Created by Simon Monk

MEDIA CONTROL SERVER 2.0

ENGLISH USER MANUAL. Please visit to download the latest version of this manual.

Adafruit's Raspberry Pi Lesson 3. Network Setup

user manual It is important to read this user manual prior to using your new product for the first time.

USER GUIDE Version 2.0

Click the Windows. Click the Office Trial icon to write letters or create a spreadsheet

AR1100 Resistive Touch Screen Controller Guide

Windows Media Player 10 Mobile: More Music, More Choices

Multimedia. User Guide

Raspberry Pi Android Projects. Raspberry Pi Android Projects. Gökhan Kurt. Create exciting projects by connecting Raspberry Pi to your Android phone

Quick Start Using DASYLab with your Measurement Computing USB device

Call Recorder Oygo Manual. Version

Portable media PORTABLE MEDIA PORTABLE MEDIA CONNECTIONS

Nero MediaStreaming for MCE Manual

1. Install a Virtual Machine Download Ubuntu Ubuntu LTS Create a New Virtual Machine... 2

Using pcduino's WiFi Dongle With the Pi a

Beginner s Guide to the PI MATRIX. by Bruce E. Hall, W8BH 1) INTRODUCTION

Remote Viewer Recording Backup

AlienVault Unified Security Management (USM) 4.x-5.x. Deploying HIDS Agents to Linux Hosts

Firmware update for iphone with Lightning connector compatible with AppRadio Mode

Bluefruit LE Python Library

ENGLISH USER MANUAL. Please visit to download the latest version of this manual.

MusiConnect Patented AlwaysPlay Technology

USB Internet. manual. Model MAN UM

MobileLite Wireless G2 5-in-1 Mobile Companion User Manual

How To Use A Pixstar Photo Frame

MEDIA SHARE Set Up Guide for PCs with Windows XP

How To Connect A Raspberry Pi To The Internet On A Microsoft Moonstone 2 (Microsoft) Microsoft Powerbook 2 (Powerbook 2) (Powerboard 2) And Powerbook 3 (Powerstation 2)

Smart Music Control Application

Adafruit's Raspberry Pi Lesson 9. Controlling a DC Motor

MUSIC & VIDEO IN EVERY ROOM. Media Distribution Solutions

DENON DJ Music Manager

Network Interface Failover using FONA

Open Broadcasting Software (OBS) Guide for Krue.tv

Title: Documentation for the Pi-UPS-Monitor-App

Bob Rathbone Computer Consultancy

Step By Step Guide To Setting Up Your System

Set up and using the WinTV v7 application with HD PVR 2

PG-01instruction manual

Parrot Zikmu by Starck. User guide

Linux Development Environment Description Based on VirtualBox Structure

Section 5: Preparing the Data Analysis Environment

AdRadionet to IBM Bluemix Connectivity Quickstart User Guide

HANTZ + PARTNER The Upgrade Company!

DR 800-TV AB BC.

Arduino Lesson 17. Sending Movement Detector

DR-1 Portable Digital Recorder OWNER'S MANUAL

1. Install a Virtual Machine Download Ubuntu Ubuntu LTS Create a New Virtual Machine... 2

Cloud Homework instructions for AWS default instance (Red Hat based)

Python for Series 60 Platform

Table Of Contents. Thank You...3 Package Contents...3 Features...4

LevelOne MUS GB Smart Flash. User Manual V

OPPO MediaControl HD App: Handy touch control adds more fun to home theatre enjoyment

User Guide For ipodder on Windows systems

Transcription:

Raspberry Pi radio player with touchscreen Created by Spencer Organ Last updated on 2014-08-27 12:45:09 PM EDT

Guide Contents Guide Contents Overview Project steps Preparing the Raspberry Pi Installing the Music Player Daemon Installing Radioplayer About Radioplayer Station Info 2 3 3 5 7 9 10 11 https://learn.adafruit.com/raspberry-pi-radio-player-with-touchscreen Page 2 of 11

Overview Make your very own touchscreen-controller Pi Radio Player! With an ever increasing number of internet radio stations available this project combines the versatility of the Raspberry Pi and the PiTFT 2.8" touchscreen TFTdisplay. A custom display interface lets you control volume, station, and see what's currently playing. This project is a good one for people who have a little bit of Raspberry Pi experience since there's quite a few steps, but its worth it! Project steps 1. Build the PiTFT 320x240 2.8" touchscreen display (this may not be necessary if your PiTFT is pre-assembled) 2. Calibrate the touchscreen display 3. Install Music Player Daemon (MPD) and Music Player Client (MPC) on the Raspberry Pi 4. Find and add internet radio stations to mpc https://learn.adafruit.com/raspberry-pi-radio-player-with-touchscreen Page 3 of 11

5. Download radioplayer source code 6. Enjoy streaming internet radio on your desk All the setup and calibration steps for the PiTFT display must be completed. https://learn.adafruit.com/raspberry-pi-radio-player-with-touchscreen Page 4 of 11

Preparing the Raspberry Pi If your Adafruit PiTFT 2.8" Touchscreen display came as a kit you will need to complete the instructions to assemble the screen. Check out the PiTFT Tutorial for more details (http://adafru.it/dth) Download & burn the PiTFT image or use an existing Raspbian setup and install the easysetup script. Basically, get the PiTFT setup working first! If you want to calibrate the screen, check out the detailed calibration steps here (http://adafru.it/dt9) https://learn.adafruit.com/raspberry-pi-radio-player-with-touchscreen Page 5 of 11

I found that for the most effective use of the touchscreen it was necessary to carry out the manual calibration of the touchscreen. https://learn.adafruit.com/raspberry-pi-radio-player-with-touchscreen Page 6 of 11

Installing the Music Player Daemon By this stage you will now have a Raspberry Pi with a touch screen display. If you used the Easy Install Image you should now have access to the console via the touch screen display. Additional instructions on using the console (http://adafru.it/dtb) At this stage it is worth checking that your Raspberry Pi is up to date before continuing. sudo apt-get update Now we can install mpc and mpd - the music player client and 'daemon' background controller - and add some radio stations to your play list. The example stations listed below are BBC channels from the UK, but look around for your own favorite types of music! sudo apt-get install mpd mpc mpc add http://bbcmedia.ic.llnwd.net/stream/bbcmedia_intl_lc_radio1_p?s=1365376033&e=1365390433&h=a0fe mpc add http://bbcmedia.ic.llnwd.net/stream/bbcmedia_intl_lc_radio2_p?s=1365376067&e=1365390467&h=d43d mpc add http://bbcmedia.ic.llnwd.net/stream/bbcmedia_intl_lc_radio3_p?s=1365376123&e=1365390523&h=d53c mpc add http://bbcmedia.ic.llnwd.net/stream/bbcmedia_intl_lc_radio4_p?s=1365376126&e=1365390526&h=ed9a mpc add http://bbcmedia.ic.llnwd.net/stream/bbcmedia_intl_lc_5live_p?s=1365376271&e=1365390671&h=e0d82 You can now check that mpc is working by starting a radiostation. Don't forget to plug in your headphones! mpc play A note on playlists A copy of your playlist can be saved with the command mpc save my_playlist The playlist is saved in /var/lib/mpd/playlists/ The playlist can be hand-edited with sudo nano /var/lib/mpd/playlists/my_playlist https://learn.adafruit.com/raspberry-pi-radio-player-with-touchscreen Page 7 of 11

Once edited the playlist can be loaded back into mpc with mpc load /var/lib/mpd/playlists/my_playlist I have a number of playlists saved in /var/lib/mpd/playlists with different genres depending on my mood https://learn.adafruit.com/raspberry-pi-radio-player-with-touchscreen Page 8 of 11

Installing Radioplayer The Radioplayer front end software has been written in Python using Pygame and is specific for the TFT 320x240 2.8" screen. However, it is relatively simple to adapt the code to work in a window. Download the Python code and icons http://adafru.it/dtc Download the Python code and icons from the link above. Extract the files onto a memory stick and copy into a folder onto the Raspberry Pi. (Or you can place it in the SD card directory on your home computer, the files will be in /boot when the SD card is booted on the Pi) I save mine into a folder called pi-radio Ensure that all the icons and python code is saved into the folder /home/pi/pi-radio At this stage everything should be ready to go! Test it out by running: cd /home/pi/pi-radio sudo python radioplayer.py https://learn.adafruit.com/raspberry-pi-radio-player-with-touchscreen Page 9 of 11

About Radioplayer The interface has been deliberatly kept simple so that it can be operated with your fingers rather than a stylus. Play - starts mpc on the current playlist Pause - stops mpc on the current playlist Volume down - reduces volume Volume up - increases volume Mute - volume set to zero Refresh - stops player, starts player again and refreshes the screen. Exit - closes radioplayer interface but keeps mpc playing https://learn.adafruit.com/raspberry-pi-radio-player-with-touchscreen Page 10 of 11

Station Info The station information is extracted from the output of mpc status Many stations use a common format of Station name : Track name/information The Station name is displayed on the first line of the display. The Track name is displayed on the second line of the display. If there is no track name a message of "No additional Info" is displayed. Last Updated: 2014-08-27 12:45:10 PM EDT Page 11 of 11