Bob Rathbone Computer Consultancy

Bob Rathbone Computer Consultancy

Raspberry PI Internet Radio Constructors Manual Bob Rathbone Computer Consultancy www.bobrathbone.com 20th of May 2014 Version 3.5 Bob Rathbone |Raspberry PI Internet Radio - / 1 Contents Introduction ............................................................................................................................................ 8 Hardware .............................................................................................................................................. 11 Raspberry PI computer ..................................................................................................................... 11 The HD44780 LCD display ................................................................................................................. 11 Radio variants ................................................................................................................................... 12 Housing the radio .............................................................................................................................. 12 Wiring .................................................................................................................................................... 13 Version 2 boards (latest) ................................................................................................................... 14 Version 1 boards (early boards) ........................................................................................................ 14 Rotary encoder wiring ....................................................................................................................... 14 LCD Module Wiring ........................................................................................................................... 15 Power supply considerations ............................................................................................................ 16 GPIO Hardware Notes ........................................................................................................................... 17 Parts List ................................................................................................................................................ 18 Construction HD44780 LCD................................................................................................................... 19 Building the LCD and pushbuttons interface board .......................................................................... 19 Construction using an Adafruit LCD plate ............................................................................................. 21 Software installation ............................................................................................................................. 22 SD card creation ................................................................................................................................ 22 Conventions used in this tutorial ...................................................................................................... 22 Online update and upgrade of the Operating System ...................................................................... 22 Radio Software Installation ............................................................................................................... 22 Software download ........................................................................................................................... 23 Install the I2C libraries ...................................................................................................................... 23 Checking Network Time Daemon ..................................................................................................... 25 Setting the time zone ........................................................................................................................ 26 Changing the system hostname and password ................................................................................ 27 Source files ............................................................................................................................................ 29 The LCD Class .................................................................................................................................... 29 The Radio Daemon ............................................................................................................................ 30 The Adafruit Radio daemon .............................................................................................................. 30 The Daemon Class ............................................................................................................................. 30 The Radio Class ................................................................................................................................. 30 Bob Rathbone |Raspberry PI Internet Radio - / 2 The Rotary class ................................................................................................................................ 30 The Log class ..................................................................................................................................... 30 The RSS class ..................................................................................................................................... 30 The Translate class ............................................................................................................................ 30 LCD test programs ............................................................................................................................. 31 Switch test programs ........................................................................................................................ 31 The create_playlists program ........................................................................................................... 31 The display_current program ........................................................................................................... 31 Installing and Testing the Music Player Daemon .................................................................................. 32 Install the Music Player Daemon ...................................................................................................... 32 Configure the MPD daemon ............................................................................................................. 32 Test the Music Player Daemon ......................................................................................................... 33 Configuring USB speakers instead of the analogue output .............................................................. 33 Upgrading from earlier versions ....................................................................................................... 34 Configure the Radio daemon ................................................................................................................ 35 Disable serial interface ...................................................................................................................... 35 Configure radio program log rotation ............................................................................................... 35 Configure the Radio program to start automatically at boot time ................................................... 36 Operation .............................................................................................................................................. 37 Starting the program ......................................................................................................................... 37 Buttons .............................................................................................................................................. 39 Rotary encoder operation ................................................................................................................. 40 Mute function ................................................................................................................................... 41 Playing MP3 and WMA files .............................................................................................................. 41 Playing music from a USB stick ..................................................................................................... 41 Playing music from the SD card .................................................................................................... 41 Playing music from a Network Attached Storage (NAS) ............................................................... 41 Organising the music files ................................................................................................................. 41 MPD Logging ..................................................................................................................................... 41 Radio program logging ...................................................................................................................... 42 Configuration and status files ........................................................................................................... 43 Displaying an RSS feed ...................................................................................................................... 43 Using the Timer and Alarm functions ..............................................................................................

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    83 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us