Turn your Raspberry Pi into a Google Chromecast

Google’s Chromecast

At this point in the movie, everyone knows exactly what Google’s Chromecast is. A device that since its introduction has proven to be very useful and practical, especially in this last generation where the Chromecast with Google TV also became a much more capable, versatile and powerful product on a day-to-day basis thanks to the new operating system, to the remote control that already includes that independence from the mobile phone.

Even so, there are times when having the advantages of a Chromecast or device compatible with the Chromecast transmission protocol can be interesting in your day to day. For example, to be able to send content directly from a mobile device and view it on a larger screen. So if you want to show the photos of your last trip, birthday party or just those you took the last day you went out to take photos, you can do it in a big way.

How to create your own Chromecast with a Raspberry Pi

If you have a Raspberry Pi, you should know that you can also have a Chromecast. Building this small device capable of receiving images, video and audio from devices compatible with the Chromecast protocol is possible, so that is what we are going to show you. But first, what do you need. Well, you will not be surprised much with the list of necessary elements and surely you have everything to be able to get down to work.

The basics to create your own Chromecast with a Rasbperry Pi it is:

  • Raspberry Pi plus HDMI cable
  • MicroSD card with Raspbian OS image installed
  • WiFi or ethernet connection so that both devices are within the same network
  • Android phone

The first step to carry out this project is none other than taking the Raspberry Pi, connecting it to a television or monitor via HDMI and then to an electrical outlet capable of providing enough power to turn on and function without problems. Something quite simple, since a simple USB port on the screen already allows it to be done.


Once the Raspberry Pi is ready, you will have to install the Raspbian operating system on an SD or microSD card, depending on which Raspberry Pi you are going to use. We have already discussed this installation process on more than one occasion and it is very easy to do. It basically consists of downloading the image, opening the application BerryBoot, Apple Pi Baker, or Raspberry Pi Imager and follow the steps indicated for it.

When you have the system installed, insert the card into the board and boot. Now you will temporarily need a keyboard and mouse that can be wired or wireless connected to the Raspberry Pi. It is for the configuration process, once done you will not need to use them again.

Now that everything is ready and the Raspberry Pi has started, the following steps are:

  1. Activate the SSH protocol: To do this, go to the Raspberry Pi configuration menu and in Interfaces enable SSH. Hit ok and the change will be applied
  2. Install OMXPlayer: Now you have to install a player that will be in charge of showing all that content that arrives wirelessly through the Chromecast protocol. To achieve this, even if you do not understand very well what you are doing, you will only have to open the Raspbian Terminal and then execute the following command sudo apt-get install omxplayer -y
  3. Install OpenMax: this other plugin will allow displaying static images. So again it’s time to pull the terminal to install. Follow in order the execution of the following commands in the terminalcd ~
    git clone
    sudo apt-get install libjpeg8-dev libpng12-dev
    cd ~/omxiv
    make ilclient
    sudo make install
  4. Ready, now you just have to download the Raspicast application on your Android phone to be able to select the content that you have on the phone and want to send through Chromecast to your Raspberry Pi with support for great protocol

Setting up Raspicast

After installing Raspicast, you may have to configure some additional data that might sound a bit like Chinese to you and, worst of all, you don’t know exactly where to locate it. Well, calm down because it really is not complicated at all and a few simple steps will be enough to know what there is to power in each of the fields that will appear in the floating menu of the application when you start it on your smartphone.

The first is the IP address of the Raspberry Pi within your local network. You can consult this information through the configuration of your router, but if you want to waste less time, open the Terminal on the Raspberry Pi and execute the command hostname -I. The number separated by points that you get is the IP of the device and you will have to copy and paste in the Hostname or IP box of the Raspicast application.

Then in port use 22 and for username and password, unless you change something by default it is “pi” the username and the password is left blank. So, now yeah, done. You can now select the file you want to send or start the transmission.


Chromecast or Raspberry Pi playing Chromecast

Before concluding, as you can see, creating your own Chromecast with a Raspberry Pi is not something that is extremely complex. But that does not mean that it is or is not really interesting for everyone. If it is for specific uses, you do not want to make any extra investment and you already have a Raspberry Pi, go ahead.

However, if you are going to be casting on a recurring basis, the truth is that knowing how cheap a Chromecast costs, complicating yourself with terminal commands, etc., may not be the best option.

So assess well which solution interests you the most. Although here the main thing is to show again that the Raspberry Pi has so many and varied uses that anyone should have one to experiment with it.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *