Bob Rathbone Computer Consultancy
Total Page:16
File Type:pdf, Size:1020Kb
Raspberry Pi Internet Radio Constructors Manual A comprehensive guide to building Internet radios using the Raspberry Pi and MPD (Music Player Daemon) Bob Rathbone Computer Consultancy www.bobrathbone.com 19th of December 2020 Version 6.15 Contents Chapter 1 - Introduction ......................................................................................................................... 1 Document Overview ........................................................................................................................... 4 Quick links ........................................................................................................................................... 4 Examples ............................................................................................................................................. 5 Vintage Radio Conversion ................................................................................................................. 10 Chapter 2 - Hardware overview ............................................................................................................ 12 Raspberry Pi computer ..................................................................................................................... 12 The Raspberry Pi model 3B ........................................................................................................... 12 Raspberry Pi model 4B .................................................................................................................. 13 Audio and video output jack ......................................................................................................... 14 Raspberry Pi Zero and Pi Zero W .................................................................................................. 14 Raspberry Pi 400 ........................................................................................................................... 15 The HD44780U LCD display ............................................................................................................... 16 Midas LCD displays with VEE ............................................................................................................ 16 Midas Character OLED with MC0100 Controller .............................................................................. 17 Olimex OLED 128x64 pixel screen ..................................................................................................... 17 Pimoroni Products ............................................................................................................................ 18 Pimoroni Pirate Radio ................................................................................................................... 18 Pimoroni Pirate Audio ................................................................................................................... 18 Touch-screens ................................................................................................................................... 19 Raspberry Pi 7-inch touch screen ................................................................................................. 19 Adafruit 3.5-inch TFT ..................................................................................................................... 19 Using other touch screens ............................................................................................................ 20 Radio variants ................................................................................................................................... 21 Connecting the LCD display .............................................................................................................. 22 Housing the radio .............................................................................................................................. 22 Building in a IR sensor and remote control ....................................................................................... 23 Chapter 3 - Wiring ................................................................................................................................. 24 Version 1 boards (early boards) ........................................................................................................ 27 Version 2, 3 or model B+ boards ....................................................................................................... 27 Bob Rathbone |Raspberry PI Internet Radio ii Rotary encoder wiring ....................................................................................................................... 28 Using KY040 Rotary encoders ....................................................................................................... 29 LCD Module Wiring ........................................................................................................................... 30 Power supply considerations ............................................................................................................ 32 Selecting an audio amplifier ............................................................................................................. 33 GPIO Hardware Notes ....................................................................................................................... 34 Parts List ............................................................................................................................................ 35 Chapter 4 - Construction details ........................................................................................................... 36 Construction using an interface board ............................................................................................. 36 Construction using breakout boards ................................................................................................ 38 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 Adafruit 3.5-inch TFT ................................................................................... 43 Fitting a wake-up button................................................................................................................... 44 Installing an IR sensor and remote control ....................................................................................... 45 IR Sensor ....................................................................................................................................... 45 Remote control ............................................................................................................................. 45 Remote Control Activity LED ......................................................................................................... 46 Construction using an IQaudIO Cosmic Controller ........................................................................... 47 Construction using the Pimoroni Pirate radio .................................................................................. 48 Construction using the PiFace CAD ................................................................................................... 48 Installing the FLIRC USB remote control ........................................................................................... 49 FLIRC USB Remote Control dongle ................................................................................................ 49 Using DAC Sound Cards ..................................................................................................................... 50 HiFiBerry DAC ................................................................................................................................ 50 IQaudIO DAC sound products ........................................................................................................... 52 JustBoom DAC products .................................................................................................................... 52 Bob Rathbone |Raspberry PI Internet Radio iii PCM5102A DAC Sound Card ............................................................................................................. 53 Pimoroni pHat DAC ........................................................................................................................... 54 Construction Tips and Tricks