Raspberry PI Radio.Pdf

Total Page:16

File Type:pdf, Size:1020Kb

Raspberry PI Radio.Pdf 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 ........................................................................................................
Recommended publications
  • Platypush Documentation
    platypush Documentation BlackLight Mar 14, 2021 Contents: 1 Backends 3 1.1 platypush.backend.adafruit.io ...............................3 1.2 platypush.backend.alarm ....................................4 1.3 platypush.backend.assistant ................................5 1.4 platypush.backend.assistant.google ...........................5 1.5 platypush.backend.assistant.snowboy ..........................6 1.6 platypush.backend.bluetooth ................................8 1.7 platypush.backend.bluetooth.fileserver ........................8 1.8 platypush.backend.bluetooth.pushserver ........................9 1.9 platypush.backend.bluetooth.scanner .......................... 10 1.10 platypush.backend.bluetooth.scanner.ble ....................... 11 1.11 platypush.backend.button.flic ............................... 11 1.12 platypush.backend.camera.pi ................................ 12 1.13 platypush.backend.chat.telegram ............................. 13 1.14 platypush.backend.clipboard ................................ 14 1.15 platypush.backend.covid19 .................................. 14 1.16 platypush.backend.dbus .................................... 15 1.17 platypush.backend.file.monitor .............................. 15 1.18 platypush.backend.foursquare ................................ 17 1.19 platypush.backend.github ................................... 17 1.20 platypush.backend.google.fit ................................ 19 1.21 platypush.backend.google.pubsub ............................. 20 1.22 platypush.backend.gps ....................................
    [Show full text]
  • A High-Level Programming Language for Multimedia Streaming
    Liquidsoap: a High-Level Programming Language for Multimedia Streaming David Baelde1, Romain Beauxis2, and Samuel Mimram3 1 University of Minnesota, USA 2 Department of Mathematics, Tulane University, USA 3 CEA LIST – LMeASI, France Abstract. Generating multimedia streams, such as in a netradio, is a task which is complex and difficult to adapt to every users’ needs. We introduce a novel approach in order to achieve it, based on a dedi- cated high-level functional programming language, called Liquidsoap, for generating, manipulating and broadcasting multimedia streams. Unlike traditional approaches, which are based on configuration files or static graphical interfaces, it also allows the user to build complex and highly customized systems. This language is based on a model for streams and contains operators and constructions, which make it adapted to the gen- eration of streams. The interpreter of the language also ensures many properties concerning the good execution of the stream generation. The widespread adoption of broadband internet in the last decades has changed a lot our way of producing and consuming information. Classical devices from the analog era, such as television or radio broadcasting devices have been rapidly adapted to the digital world in order to benefit from the new technologies available. While analog devices were mostly based on hardware implementations, their digital counterparts often consist in software implementations, which po- tentially offers much more flexibility and modularity in their design. However, there is still much progress to be done to unleash this potential in many ar- eas where software implementations remain pretty much as hard-wired as their digital counterparts.
    [Show full text]
  • Winamp "Classic" 2.81: * Updated to PP's Latest Input and Output Plugins * in Mp3 Now Doesnt Continue to Play on Output Plugin Error
    Winamp "Classic" 2.81: * updated to PP's latest input and output plugins * in_mp3 now doesnt continue to play on output plugin error. * smaller installers because we use msvcrt.dll now * fixed bugs relating to files with ~ in their names. * doublerightclick in credits makes for fullscreen credits * more bugfixes (including a fix in the version update notification checking) * updated installer to have nicer error messages. * made systray icon update if explorer restarts * and more (muahaha)! Winamp 2.80: * fixed drag&drop from open file dialog related bugs * made CDDB support better handle notfound CDs/lack of CDDB installed. * update to CDDB ui (bugfix) * new splash screen * minibrowser security fix * updated winamp agent to support both winamp 2.x and 3.x * included PP's hacks for slightly better unicode filename support * in_wave support for floating point .WAV files fixed * better win9x compatibility for DirectSound * waveOut made skip less * some in_mod perfile fixes * OGG Vorbis support for Standard and Full installs. * CD support back in lite installer. Winamp 2.79: * upgraded unzip/decompress support to zlib 1.1.4, for big security fix * improved multiple instance detection code/opening many files from explorer iss ues * winamp agent tooltip improvement * fix to id3v2+unicode support Winamp 2.78: * minibrowser fixes * cddb2 support * updates to mod, midi, and wav support (from the wonderful PP) Winamp 2.77: * mb.ini skin support (Winamp/MBOpen) * added page and slider for 'shuffle morph rate' to Preferences so you can control how much the playlist morphs (mutates) each time it cycles through. * PP's ACM disk writer output plugin instead of the classic one * PP's WAV/VOC reader (Which is apparently so much better, but we will see) * included new in_midi and in_mod (yay) * made playlist editor automatically size down when necessary (on startup) * made drag&drop playlist URLs work * made alt+delete work again in playlist editor * made winamp.exe and winampa.exe both much less likely to fudge HKCR/.
    [Show full text]
  • Tamil Flac Songs Free Download Tamil Flac Songs Free Download
    tamil flac songs free download Tamil flac songs free download. Get notified on all the latest Music, Movies and TV Shows. With a unique loyalty program, the Hungama rewards you for predefined action on our platform. Accumulated coins can be redeemed to, Hungama subscriptions. You can also login to Hungama Apps(Music & Movies) with your Hungama web credentials & redeem coins to download MP3/MP4 tracks. You need to be a registered user to enjoy the benefits of Rewards Program. You are not authorised arena user. Please subscribe to Arena to play this content. [Hi-Res Audio] 30+ Free HD Music Download Sites (2021) ► Read the definitive guide to hi-res audio (HD music, HRA): Where can you download free high-resolution files (24-bit FLAC, 384 kHz/ 32 bit, DSD, DXD, MQA, Multichannel)? Where to buy it? Where are hi-res audio streamings? See our top 10 and long hi-res download site list. ► What is high definition audio capability or it’s a gimmick? What is after hi-res? What's the highest sound quality? Discover greater details of high- definition musical formats, that, maybe, never heard before. The explanation is written by Yuri Korzunov, audio software developer with 20+ years of experience in signal processing. Keep reading. Table of content (click to show). Our Top 10 Hi-Res Audio Music Websites for Free Downloads Where can I download Hi Res music for free and paid music sites? High- resolution music free and paid download sites Big detailed list of free and paid download sites Download music free online resources (additional) Download music free online resources (additional) Download music and audio resources High resolution and audiophile streaming Why does Hi Res audio need? Digital recording issues Digital Signal Processing What is after hi-res sound? How many GB is 1000 songs? Myth #1.
    [Show full text]
  • Release 3.5.3
    Ex Falso / Quod Libet Release 3.5.3 February 02, 2016 Contents 1 Table of Contents 3 i ii Ex Falso / Quod Libet, Release 3.5.3 Note: There exists a newer version of this page and the content below may be outdated. See https://quodlibet.readthedocs.org/en/latest for the latest documentation. Quod Libet is a GTK+-based audio player written in Python, using the Mutagen tagging library. It’s designed around the idea that you know how to organize your music better than we do. It lets you make playlists based on regular expressions (don’t worry, regular searches work too). It lets you display and edit any tags you want in the file, for all the file formats it supports. Unlike some, Quod Libet will scale to libraries with tens of thousands of songs. It also supports most of the features you’d expect from a modern media player: Unicode support, advanced tag editing, Replay Gain, podcasts & Internet radio, album art support and all major audio formats - see the screenshots. Ex Falso is a program that uses the same tag editing back-end as Quod Libet, but isn’t connected to an audio player. If you’re perfectly happy with your favorite player and just want something that can handle tagging, Ex Falso is for you. Contents 1 Ex Falso / Quod Libet, Release 3.5.3 2 Contents CHAPTER 1 Table of Contents Note: There exists a newer version of this page and the content below may be outdated. See https://quodlibet.readthedocs.org/en/latest for the latest documentation.
    [Show full text]
  • Archphile Manual V.0.13.7 (2020-05-13) – – [email protected] 2
    Archphile Manual V.0.13.7 (minimum requirements – Archphile 1.19 beta – codename Corona) [email protected] Last edited: 2020-05-13 1 Table Of Contents Introduction. 4 Finding The IP Address For The First Time . 4 Connect Via SSH . 4 File Editing with nano. 5 Systemd Services. 5 1.0 System Configuration. 5 1.1 Root Password . 5 1.2 Timezone And NTP Server Configuration . 5 2.0 Network Configuration . 6 3.0 NAS Configuration . 7 3.1 Samba Shares. 7 3.2 NFS Shares. 7 3.3 USB Disk Sharing. 8 3.4 Spinning Down USB Disks . 8 4.0 MPD . 9 4.1 Packages. 9 4.2 Additional File Extensions Support. 9 4.3 Software/Hardware Mixer . 10 4.4 Resampling. 11 4.5 MPD and DSD . 12 4.5 Library Auto-Update . 12 4.6 Backup/Restore Of Music Library Database. 13 5.0 UPNP/DLNA Support . 14 5.1 General Use . 14 5.2 Upmpdcli and Tidal. 14 6.0 Airplay Support . 15 7.0 Spotify Support . 16 8.0 Roon Support. 17 9.0 Squeezelite . 18 10.0 Android Remote Control . 19 11.0 Archphile And I2S DACs For The Raspberry Pi. 20 12.0 Archphile Optimizations. 20 12.1 Odroid C2 Optimizations. 20 12.2 Raspberry Pi 2/3 Optimizations . 22 12.3 Raspberry Pi 4 Optimizations . 22 12.3 Generic Optimizations. 28 13.0 Real Life Examples . 29 Archphile Manual V.0.13.7 (2020-05-13) – https://archphile.org – [email protected] 2 13.1 Simple Use With A USB Disk Or Stick.
    [Show full text]
  • Download Video Player for Pc 10 Best and Free Video Players for Windows 10 PC in 2021
    download video player for pc 10 Best And Free Video Players For Windows 10 PC in 2021. We all love to watch TV shows, Movies on our computers. Since computers are more preferred nowadays, more and more streaming sites are popping out of the web. However, not everyone out there loves to stream videos because video streaming can be expensive. We first need to have a proper internet connection and a subscription to the streaming service to watch videos. In this case, downloading videos seems to be the best option as we have to spend the internet data once rather than streaming it again and again. But, what after downloading the video? Is it enough to get the best media experience? Well, no! To get the best video experience, we need to use the best media player. The media player is the only thing that decides our media consumption experience. So, having a good media player app is the most vital thing for media consumption. In this article, we will share the list of the best free video players for Windows. List of 10 Best And Free Video Players For Windows 10. These video players are free to download, and you can use them to get the most amazing video watching experience. So, let’s explore the ten best free video players for Windows. 1. Media Player Classic. If you are searching for a powerful video player tool for Windows 10 operating system, you need to give Media Player Classic a try. Guess what? The tool provides users with lots of customization options.
    [Show full text]
  • Opus, a Free, High-Quality Speech and Audio Codec
    Opus, a free, high-quality speech and audio codec Jean-Marc Valin, Koen Vos, Timothy B. Terriberry, Gregory Maxwell 29 January 2014 Xiph.Org & Mozilla What is Opus? ● New highly-flexible speech and audio codec – Works for most audio applications ● Completely free – Royalty-free licensing – Open-source implementation ● IETF RFC 6716 (Sep. 2012) Xiph.Org & Mozilla Why a New Audio Codec? http://xkcd.com/927/ http://imgs.xkcd.com/comics/standards.png Xiph.Org & Mozilla Why Should You Care? ● Best-in-class performance within a wide range of bitrates and applications ● Adaptability to varying network conditions ● Will be deployed as part of WebRTC ● No licensing costs ● No incompatible flavours Xiph.Org & Mozilla History ● Jan. 2007: SILK project started at Skype ● Nov. 2007: CELT project started ● Mar. 2009: Skype asks IETF to create a WG ● Feb. 2010: WG created ● Jul. 2010: First prototype of SILK+CELT codec ● Dec 2011: Opus surpasses Vorbis and AAC ● Sep. 2012: Opus becomes RFC 6716 ● Dec. 2013: Version 1.1 of libopus released Xiph.Org & Mozilla Applications and Standards (2010) Application Codec VoIP with PSTN AMR-NB Wideband VoIP/videoconference AMR-WB High-quality videoconference G.719 Low-bitrate music streaming HE-AAC High-quality music streaming AAC-LC Low-delay broadcast AAC-ELD Network music performance Xiph.Org & Mozilla Applications and Standards (2013) Application Codec VoIP with PSTN Opus Wideband VoIP/videoconference Opus High-quality videoconference Opus Low-bitrate music streaming Opus High-quality music streaming Opus Low-delay
    [Show full text]
  • Compproj:311 - SL7 DICE Environment
    SL7DICEEnvironment < DICE < TWiki https://wiki.inf.ed.ac.uk/DICE/SL7DICEEnvironment TWiki > DICE Web > ResearchAndTeachingUnit > SL7DICEEnvironment (04 Mar 2015, GrahamDutton) CompProj:311 - SL7 DICE Environment Project homepage for porting of the DICE environment software packages to the LCFG SL7 platform. The Observations section is also (occasionally!) updated. This page was referred to during the SL7Meeting20150106. CompProj:311 - SL7 DICE Environment 2015-02-22 - Alpine gripes 2015-02-19 - Display blanking 2015-02-18 - Switch flipped! 2015-02-18 - Development meeting talk 2015-02-10 - Towards a usable desktop 2015-01-27 - "Remaining" Tasks 2015-01-25 - New environment package lists 20 Nov 2014 - More login ramblings 12 Nov 2014 - Update 09 Nov 2014 - The Display Manager 07 Nov 2014 - More notes 04 Nov 2014 — Observations on SL7 so far 07 Oct 2014 - Notes on KDE 29 Sep 2014 - Proposal 24 Sep 2014 - discussion 1. What is the _env list for? 2. What constitutes "environment"? 2015-02-22 - Alpine gripes A roundup of two irritating issues with alpine ("updated" to 2.11 but I haven't checked its provenance yet; this is not a release from the original UW maintainers) as I found it on SL7: The packaged "default" speller hunspell (actually an RPM dependency), seems very poor in its default mode of operation. It's tripping over contractions and all sorts of words it should be able to avoid (and the SL6 speller has no problem with). attempts to open links in my web browser of choice (a custom w3m wrapper) fail because apparently the $HOME in my mailcap file (alpine uses mailcap's text/html entry) isn't being evaluated any more.
    [Show full text]
  • Tiny Disco: a Cost-Effective, High-Fidelity Wireless Audio System ​ Quarter / Year Submitted: Winter 2020 ​ Student: (Print Name) ______(Sign) ______
    Tiny Disco: A Cost-Effective, High-Fidelity Wireless Audio System A Senior Project Report presented to the Faculty of California Polytechnic State University San Luis Obispo In Partial Fulfillment of the Requirements for the Degree Bachelor of Science in Computer Engineering By Luke Liberatore February 2020 Date of Submission: February 25, 2020 Senior Project Advisor: Hugh Smith Abstract The Tiny Disco is a WiFi based concert system, featuring improvements on popular “Silent Disco” concerts. Rather than being tied to compression and bandwidth restrictions present in traditional silent disco systems, the Tiny Disco system can deliver 320kbps+ audio quality, and allows listeners to bring their own headphones, further lending to the high quality audio experience. Tiny Disco uses a Raspberry Pi as the audio server, and Espressif ESP32 microcontrollers as audio receivers/clients. The Tiny Disco is primarily geared toward smaller concerts and niche events where audio quality is valued, though due to its WiFi-based architecture, it can be expanded to events of a few hundred people fairly easily. The Tiny Disco system was developed and tested, and performed successfully using a test setup. Only one client was tested due to cost constraints, but load testing was performed against the Raspberry Pi server, as well as bandwidth/audio quality analysis. 2 Table of Contents Abstract 2 Table of Contents 3 Introduction 5 Stakeholders 7 Project Goals and Objectives 7 Project Deliverables 8 Project Outcomes 8 Background 9 Experimentation to help develop
    [Show full text]
  • Pulseaudio Rationale Pulseaudio Rationale
    2021/07/28 16:43 (UTC) 1/7 PulseAudio Rationale PulseAudio Rationale With the release of the first beta of what will be version 14.2, PulseAudio has been introduced as default audio server in Slackware Linux. This historical change comes out mostly from necessity, as the bluetooth stack BlueZ has dropped the ALSA plugin for audio output, making the presence of PulseAudio mandatory for playing any audio coming from Bluetooth devices. From Slackware's Changelog: After upgrading to BlueZ 5 recently, everything seemed to be working great, but then it was pointed out that Bluetooth audio was no longer working. The reason was that the newer BlueZ branch had dropped ALSA support and now required PulseAudio. So with some trepidation, we began investigating adding PulseAudio to Slackware. Going back to BlueZ 4 wasn't an option with various dependent projects either having dropped support for it, or considering doing so. After several iterations here refining the foundation packages and recompiling and tweaking other packages to use PulseAudio, it's working well and you'll likely not notice much of a change. But if you're using Bluetooth audio, or needing to direct audio through HDMI, you'll probably find it a lot easier to accomplish that. Best of all, we're finally a modern, relevant Linux distro! ;-) Before this moment, there was no technical need for introducing PulseAudio as a basic component of the distribution, and linking the audio components directly to ALSA devices gave all the features needed by users without PA's known backsides. Removing PulseAudio Completely It should be noted that, as PulseAudio is now a basic system component, with many applications directly linked to it, the following procedure for removing PulseAudio is unsupported.
    [Show full text]
  • Nextkast User Manual
    User Manual v 2.2 Broadcast/Pro/Standard Index ?Quick Start Overview................................................................ 4 ?Quick Start Create Categories................................................. 5 ?Quick Start Create Rotation..................................................... 6 ?Downloading.............................................................................. 7 ?Installation................................................................................. 7 ?Software Overview.................................................................... 8 ?Installation Considerations...................................................... 9 ?A Word About Audio Files........................................................ 10 ?Main User Interface Buttons Described.................................. 11 ?Settings Window........................................................................ 12 ?Library Location / Software Updates....................................... 13 ?Library Location........................................................................ 14 ?Screen Modes............................................................................ 15 ?Getting Started.......................................................................... 16 ?Adding Music Files to The Categories.................................... 17 ?MarkingTrackSweepers/Intro/Outro Next Start/URL Embed. 18 ?Adding Additional Track Info.................................................... 19 ?Cue Editor Window...................................................................
    [Show full text]