Raspberry PI Radio.Pdf
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 27th of September 2021 Version 7.2 Contents Chapter 1 - Introduction ......................................................................................................................... 1 Document Overview ........................................................................................................................... 4 Quick links ........................................................................................................................................... 4 Examples ............................................................................................................................................. 5 Vintage Radio Conversion ................................................................................................................. 11 Chapter 2 - Hardware overview ............................................................................................................ 13 Raspberry Pi computer ..................................................................................................................... 13 The Raspberry Pi model 3B ........................................................................................................... 13 Raspberry Pi model 4B .................................................................................................................. 13 Audio and video output jack ......................................................................................................... 14 Raspberry Pi Zero and Pi Zero W .................................................................................................. 15 Pi-Pico is not supported ................................................................................................................ 15 Raspberry Pi 400 ........................................................................................................................... 16 The HD44780U LCD display ............................................................................................................... 17 Midas LCD displays with VEE ............................................................................................................ 17 Midas Character OLED with MC0100 Controller .............................................................................. 18 Olimex OLED 128x64 pixel screen ..................................................................................................... 18 Sitronix SSD1306 128x64 pixel OLED ................................................................................................ 18 Pimoroni Products ............................................................................................................................ 19 Pimoroni Pirate Radio ................................................................................................................... 19 Pimoroni Pirate Audio ................................................................................................................... 19 Touch-screens ................................................................................................................................... 20 Raspberry Pi 7-inch touch screen ................................................................................................. 20 Adafruit 2.8 and 3.5-inch TFT touch-screens ............................................................................... 20 Waveshare 2.8 and 3.5-inch TFT touch-screens ........................................................................... 21 Connection via ribbon cable ......................................................................................................... 21 Radio variants ................................................................................................................................... 22 Connecting the LCD display .............................................................................................................. 23 Housing the radio .............................................................................................................................. 23 Building in a IR sensor and remote control ....................................................................................... 24 Bob Rathbone |Raspberry PI Internet Radio ii Chapter 3 - Wiring ................................................................................................................................. 26 Version 1 boards (early boards) ........................................................................................................ 28 Version 2, 3 or model B+ boards ....................................................................................................... 28 Rotary encoder wiring ....................................................................................................................... 29 Using KY040 Rotary encoders ....................................................................................................... 30 Optical Rotary encoders ................................................................................................................ 31 LCD Module Wiring ........................................................................................................................... 31 Power supply considerations ............................................................................................................ 34 GPIO Hardware Notes ....................................................................................................................... 35 Parts List ............................................................................................................................................ 36 Chapter 4 - Construction details ........................................................................................................... 37 Construction using an interface board ............................................................................................. 37 Construction using breakout boards ................................................................................................ 39 Construction using an Adafruit LCD plate ......................................................................................... 40 Introduction .................................................................................................................................. 40 Using other switches ..................................................................................................................... 41 Using the Adafruit LCD plate with the model B+, 2B and 3B ........................................................ 41 Using alternatives to the Adafruit display .................................................................................... 41 Construction using an I2C LCD backpack .......................................................................................... 42 Adafruit I2C Backpack ................................................................................................................... 42 Arduino PCF8574 I2C backpacks ................................................................................................... 43 Creating the interface board for the I2C back pack ...................................................................... 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 Bob Rathbone |Raspberry PI Internet Radio iii IQaudIO DAC sound products ....................................................................................................... 52 JustBoom DAC products ................................................................................................................ 52 PCM5102A DAC Sound Card ........................................................................................................