Sunday 29 October 2017

Raspberry Pi Music Player

Raspberry Pi Music Player We all know that Raspberry Pi is a multipurpose System on-chip computer which is capable of doing all the functionalities of a general purpose computer with a low bandwidth. Everyone wants to have a customised audio player at home. Raspberry Pi is capable of providing a standard quality audio through its 3.5 mm audio jack. If you want to have a high quality audio output from Raspberry Pi, there are USB plug and play add-on hardware plugins are available, you can make use of it. For the audio player we are going to build using Raspberry Pi, standard output holds good.   In this tutorial we will show you how to build a simple music player which can be controlled using your mobile phone remotely. You can connect your Raspberry Pi nor only to any audio system which supports 3.5 mm audio input jack but also to a Bluetooth speaker. Hope your Raspberry Pi is already configured and running fine. If not, you can refer our previous tutorial on Raspberry Pi server. Raspberry Pi Audio Player – Components You should configure your Raspberry Pi audio output, either it has to come from audio jack output or HDMI output.  You can configure it by opening raspi-config (sudo raspi-config). Later if you use our Raspberry Pi to connect to a HDMI enabled Tv for that you need HDMI audio output. So enable auto since it will automatically switch between audio jack and HDMI based on your connection. Installations For controlling your music player remotely, you need to install two applications in your mobile. We are going to build our music player in two contexts. Having a dedicated music player built on Raspberry Pi Music player which will broadcast songs from your mobile phone. For the first one you need to install Remote Desktop Controller for android. Through that we can browse the files in our Raspberry Pi and play those files on our Raspberry Pi remotely. You can use this app for other purpose also wherever RDC is required. The touch control app for this app is pretty impressive.   The latter one is used to cast your music files from your mobile phone to the Raspberry Pi and playing it on the speaker which is connected to Raspberry Pi. This is for the users who doesn’t want to fill the Raspberry Pi’s memory which probably they may need for their project later. Through this you can cast images and video files.  This helps you to create an instant playlist of 50 songs.   Now we are going to install music players on Raspberry Pi through that we are going to play the .mp3 files. Like windows or any other operating system, its not that easy to download packages directly and install them. So we will be using command line interface to install the audio player. Install any player of your need. To install VLC:- sudo apt-get install vlc -y To install Rhythm Box:- sudo apt-get install rhythmbox -y To install Synaptic:- sudo apt-get install synaptic -y After installing these players you can able to see them in the start menu under sound and video as shown below. Speaker Connection You can connect your speaker to the Raspberry Pi directly via the 3.5mm audio jack. For testing you can now use your earphones.   For connecting your Bluetooth speaker, you can’t simply connect alike in you windows or mac. Some internal configurations are to be made as follows. First install the Raspberry Pi ‘s Bluetooth firmware by these commands. sudo apt-get install pi-bluetooth After installing Bluetooth, support software for...
read more

The post Raspberry Pi Music Player appeared first on Electronic Circuits and Diagram-Electronics Projects and Design.

No comments:

Post a Comment

Good vibrations: New tech may lead to smaller, more powerful wireless devices

What if your earbuds could do everything your smartphone can, but better? A new class of synthetic materials could allow for smaller devices...