Raspberry PI Radio V5.Pdf
Total Page:16
File Type:pdf, Size:1020Kb
Raspberry Pi Internet Radio Constructors Manual A definitive guide to building Internet radios using the Raspberry Pi Bob Rathbone Computer Consultancy www.bobrathbone.com 15th of November 2017 Version 5.12 Bob Rathbone |Raspberry PI Internet Radio - Introduction 1 Contents Introduction .......................................................................................................................................... 15 Examples ........................................................................................................................................... 16 Vintage Radio Conversion ................................................................................................................. 19 Building in a IR sensor and remote control ....................................................................................... 20 Hardware .............................................................................................................................................. 21 LCD and switches interface board The HD44780 LCD display .......................................................... 21 Raspberry PI computer ..................................................................................................................... 21 Raspberry Pi Zero and Pi Zero W ...................................................................................................... 22 Radio variants ................................................................................................................................... 23 Housing the radio .............................................................................................................................. 24 Wiring .................................................................................................................................................... 26 Version 2, 3 or model B+ boards ....................................................................................................... 29 Version 1 boards (early boards) ........................................................................................................ 29 Rotary encoder wiring ....................................................................................................................... 30 LCD Module Wiring ........................................................................................................................... 31 Power supply considerations ............................................................................................................ 33 Selecting an audio amplifier ............................................................................................................. 34 GPIO Hardware Notes ........................................................................................................................... 35 Parts List ................................................................................................................................................ 36 Construction HD44780 LCD................................................................................................................... 37 Building the LCD and pushbuttons interface board .......................................................................... 37 Construction using an Adafruit LCD plate ............................................................................................. 39 Introduction ...................................................................................................................................... 39 Using other switches ......................................................................................................................... 40 Using the Adafruit LCD plate with the model B+, 2B and 3B ............................................................ 40 Using alternatives to the Adafruit display ........................................................................................ 40 Construction using an I2C LCD backpack .............................................................................................. 41 Adafruit I2C Backpack ....................................................................................................................... 41 Arduino PCF8574 I2C backpacks ....................................................................................................... 42 Creating the interface board for the I2C back pack .......................................................................... 42 Construction using the PiFace CAD ....................................................................................................... 43 Bob Rathbone |Raspberry PI Internet Radio - Introduction 2 Installing an IR sensor and remote control ........................................................................................... 44 IR Sensor........................................................................................................................................... 44 Remote control ................................................................................................................................. 44 Remote Control Activity LED ............................................................................................................. 45 Construction using a HiFiBerry DAC ...................................................................................................... 46 HiFiBerry DAC using the P5 connector .......................................................................................... 46 The HifBerry DAC Plus using the 40 Pin Connector ...................................................................... 47 Construction using IQAudio products ................................................................................................... 48 Construction using JustBoom DAC products .................................................................................... 49 Conventions used in this tutorial .......................................................................................................... 50 System Software installation ................................................................................................................ 51 SD card creation ................................................................................................................................ 51 Upgrading from Raspbian Jessie to Stretch ...................................................................................... 51 Log into the system ........................................................................................................................... 51 Using SSH to log into the Raspberry PI ............................................................................................. 51 Add a file called ssh to boot sector ............................................................................................... 52 Enabling ssh in raspi-config ........................................................................................................... 52 Preparing the Operating System for software installation ............................................................... 53 Update to the latest the packages ................................................................................................ 53 Disable booting to the desktop environment ............................................................................... 53 Setting the time zone .................................................................................................................... 54 Changing the system hostname and password ............................................................................ 56 Installing the radio Software ................................................................................................................. 58 Music Player Daemon Installation .................................................................................................... 58 Install the Radio Daemon .................................................................................................................. 58 Options 1, 2, 3, 4 directly connected LCD or 9 Retro radio .......................................................... 60 Option 6 or 7 I2C backpack selection ............................................................................................ 60 Options 5, 6 or 7 I2C devices ......................................................................................................... 61 Option 8 PiFace CAD ..................................................................................................................... 63 Configure the audio output .............................................................................................................. 64 Reboot to enable the software ..................................................................................................... 65 Setting the mixer volume .................................................................................................................. 66 Configuring other sound devices ...................................................................................................... 66 Configuring a USB sound device ................................................................................................... 67 Bob Rathbone |Raspberry PI Internet Radio - Introduction 3 Configuring a Sound Card ............................................................................................................