Introduction: Raspberry Pi Zero As USB to HDMI

Because of the size and price of the raspberry pi zero it's a perfect tool for taking with you.

As many phones, my phone doesn't have HDMI in his USB port, but it has USB tethering.
I'm going to explain how to use a raspberry pi zero to stream video's from android to your HDMI TV over USB.

Let's get started!

Step 1: Setup Your Raspberry Pi

For installing software on the raspberry pi zero, you'll need an internet connection.

First burn a new Raspbian (Jessie) image to your SD card (4GB or more).

After that connect the Pi to a monitor and connect a keyboard and mouse to it. (Using a usb splitter or logitech nano receiver)

At first boot open terminal and enter

sudo raspi-config

Now select "Expand filesystem" goto finish and choose reboot.

After reboot again open a terminal and enter

sudo nano /etc/network/interfaces

And press enter. At the end of this file add:

allow-hotplug usb0<br>iface usb0 inet static<br>address 192.168.42.10<br>netmask 255.255.255.0

That's it now reboot and connect your phone trough USB.

Now we're going to use our phone as WiFi point over USB tethering. I controlled the pi using a SSH App on my phone.

Connect a USB OTG cable to your raspberry pi and a standard micro USB cable to your phone.
Then on your phone go to settings, under WiFi press "more" choose "tethering" and enable USB tethering.

Now open your ssh app and enter as IP: 192.168.42.10

Open your ssh session, login and enter:

sudo apt-get install libao-dev avahi-utils libavahi-compat-libdnssd-dev libva-dev youtube-dl
wget -O rplay-1.0.1-armhf.deb <a href="http://www.vmlite.com/rplay/rplay-1.0.1-armhf.deb"> http://www.vmlite.com/rplay/rplay-1.0.1-armhf.deb</a>
sudo dpkg -i rplay-1.0.1-armhf.deb

That's it.

Now on your phone open your browser and enter 192.168.42.10:7100/admin

There will be a popup where you need to enter:
Login: admin
password: admin

Now go to the end of the page and add this licence code:

S1377T8072I7798N4133R

Now your done on your Raspberry Pi Zero

Step 2: Download Airplay App

I haven't found an app which mirrors my android phone completely, but I found an app in which you can now stream video's and music to you Raspberry Pi Zero. (I've noticed, that the app only streams .mp4 files)

App: Allconnect

Install the app, connect your phone by USB to your raspberry pi, enable USB tethering, go to allconnect, press the stream icon on the top (square with arrow) and stream your video's!

I hope you liked the tutorial. Feel free to ask questions, suggestions are also welcome.

If you liked it please vote for it!

Laurens

Comments

author
BaconB3 made it!(author)2016-11-29

Rplay can "emulate" an Apple TV but i think it stopped working at ios 7 when apple figured out people can build cheap apple tvs out of pi zeros...

author
jiger.jain.39 made it!(author)2016-02-07

Hey I need raspberry pi zero I am from india I aint able to get that any one can help please ??

author
LachlanP2 made it!(author)2016-07-30

This site should help you

http://whereismypizero.com/

author
ArduinoTurkiye made it!(author)2015-12-09

Where did you buy pi zero ? I cant find its oyt of stock!

author
Laurens-Wuyts made it!(author)2015-12-09

I bought it 1 hour after the release, so I was lucky to have one.
The Raspberry Pi foundation is making about 2000 new Raspberry pi zero's a day, so I think they should be back in stock soon.

Laurens

author
sdidwania made it!(author)2015-12-07

very nice..if someone doesn't like the wire part they can still stream using same app and pi zero on home network via kodi on pi, similar to airplay.

author
Laurens-Wuyts made it!(author)2015-12-07

That's true, than you'll need a. WiFi adapter or a usb to ethernet adapter.

Laurens

author
JesusG33k made it!(author)2015-12-03

I ain't spending 20 bucks for a USB to HDMI converter, this is a much better solution!

Thanks for sharing! - Sam

author
Laurens-Wuyts made it!(author)2015-12-03

I'm glad you liked it!

Laurens

author
JavaProgrammer made it!(author)2015-12-03

very cool and useful feature! Also your so lucky!(you got pi zero☺)

author
Laurens-Wuyts made it!(author)2015-12-03

Thanks, yeah I was lucky I order it 1 hour after the release. :D

Laurens

author
DIY+Hacks+and+How+Tos made it!(author)2015-12-03

Great project for the new PI zero.

author
Laurens-Wuyts made it!(author)2015-12-03

Thanks!

About This Instructable

9,244views

75favorites

License:

Bio: twitter: @Laurens_Wuyts
More by Laurens-Wuyts:How to Use the Beelink SEA I Media PlayerMinimalistic Led ClockControl Raspberry pi GPIO using an app
Add instructable to: