Introduction: Raspberry Pi Zero USB Dongle
I’ve been trying to find ways to make better use of my raspberry pi zero and i think i have found one! turning your raspberry pi zero into a usb dongle and shared internet with your pc!
you can download and 3d print your own usb dongle shell
http://www.thingiverse.com/thing:1836302
what you need:
male usb connector
4 wires
some soldering skills
here is the diagram you need to follow to solder the male usb to the raspberry pi zero
Step 1: Config the Sdcard Image
I’m using the latest Raspberry Pi Image called Pixel which you can download here
and load the the image to the sd card. When you are done, located the file config.txt from the Boot drive of the sdcard and insert this at the end
[code]dtoverlay=dwc2[/code]
then save the file, and locate the file called cmdline.txt and insert this text right after rootwait
[code]modules-load=dwc2,g_ether[/code]
when done, save the file and you can now insert the sdcard into the raspberry pi zero
to access your raspberry pi from your computer, use ssh client and point it to
raspberrypi.local
now you should be all done!

Participated in the
Circuits Contest 2016
10 Comments
3 years ago
I can't connect via ssh.
I have followed all the steps correctly and nothing, I have looked in other forums and nothing.
Once the USB dongle is inserted into my PC, it "installs as com11" instead of as a network card.
Reply 3 years ago
Okay, I managed to solve it, in case someone gives the same fault here I leave my github where the solution is.
https://github.com/Unkn0wn197/USB-Dongle-SSh-for-RaspberryPi-Zero
In summary you have to install a driver.
3 years ago
this is awesome ! thanks loads for the inspiration as ive a pi zero non wifi and just wanted an easier way of just updating it to get it going !
well done and thanks for the insight into how to get the zero to share the main computer internet connection with the linux based code, many many thanks !!
6 years ago
<3 <3 <3
6 years ago
Like!
6 years ago
Cool
6 years ago
Nicely done!
Reply 6 years ago
thanksss
6 years ago
can the USB OTG connection be used as normal? I want to connect a USB microphone to my pi zero while it is also connected to my laptop.
Reply 6 years ago
no you wouldn't be able to plug anything else in the otg port., running multiple items will require a USB hub on the otg