-
- Posts: 48
- Joined: Fri Apr 08, 2016 1:10 pm
WiFi by USB on Zero Pi ?
Can anyone tell me if there is any way to get WiFi on the Zero Pi by USB or otherwise. If so can they explain How.? I know that there are WiFi Usb dongles on the market but most seem to need to run a a program on a supplied CD and which are aimed at Windows laptop users.
Last edited by fotoartist78 on Sun Jun 26, 2016 3:14 pm, edited 1 time in total.
Re: WiFi by USB on Zero Pi ?
Buy a USB WiFi dongle that is compatible with the Zero. Plug it in.
-
- Posts: 48
- Joined: Fri Apr 08, 2016 1:10 pm
Re: WiFi by USB on Zero Pi ?
Could you suggest where I could purchase one in the UK.?Douglas6 wrote:Buy a USB WiFi dongle that is compatible with the Zero. Plug it in.
Re: WiFi by USB on Zero Pi ?
Pimoroni, PiHut, Amazon, E-Bay... Someone in the UK could mention more.
-
- Posts: 25263
- Joined: Tue Mar 25, 2014 12:40 pm
- Location: Delightful Dorset
Re: WiFi by USB on Zero Pi ?
https://thepihut.com/collections/raspbe ... ccessoriesfotoartist78 wrote:Could you suggest where I could purchase one in the UK.?Douglas6 wrote:Buy a USB WiFi dongle that is compatible with the Zero. Plug it in.
You will also need a USB to microUSB OTG Converter Shim
https://thepihut.com/collections/raspbe ... erter-shim
.
The information is out there....you just have to let it in.
My other Linux machine is a ChromeBox
My other Linux machine is a ChromeBox
-
- Posts: 48
- Joined: Fri Apr 08, 2016 1:10 pm
Re: WiFi by USB on Zero Pi ?
fruitoftheloom wrote:https://thepihut.com/collections/raspbe ... ccessoriesfotoartist78 wrote:Could you suggest where I could purchase one in the UK.?Douglas6 wrote:Buy a USB WiFi dongle that is compatible with the Zero. Plug it in.
You will also need a USB to microUSB OTG Converter Shim
https://thepihut.com/collections/raspbe ... erter-shim
Many thanks Douglas for the info. I will try Pi Hut as I purchased my Pi3 from them.
.
- HawaiianPi
- Posts: 6139
- Joined: Mon Apr 08, 2013 4:53 am
- Location: Aloha, Oregon USA
Re: WiFi by USB on Zero Pi ?
Here's how I set up my GF's Zero for headless operation.
USB-WiFi > USB-OTG > Raspberry Pi Zero


Click on either picture for an expanded view, then click back to return here.
Got them from amazon.com, but I just took a quick look at the UK site and could not find the same USB adapter (too bad, it was only $4 and works great). There are lots of others available.
I love those tiny USB-OTG adapters! The same OTG adapter could be used with standard USB cables, USB flash drives, USB hubs and most other things with a USB-A plug on it. I originally got them to use with my phone and tablet, but they work great with the Zero as well. They were a bit pricey on Amazon UK, so you might want to check ebay (they were 5 for $3 from a vendor in China on Amazon US).
After putting it all together the only other thing I had to do was edit the /etc/wpa_supplicant/wpa_supplicant.conf file to add my wireless SSID and encryption key info.Edit country=, ssid=, and psk= with your info.
Unfortunately that file is not easily accessed from a Windows computer, because it resides on the Linux partition of the Raspbian SD card, which Windows can't see. If you are using the full version of Raspbian Jessie, then you can put a copy of the file in the /boot partition (which Windows CAN see) and it will be copied to the correct location at boot time. However, that feature is currently broken in Raspbian Jessie-Lite, so for Lite you'll need to edit it on a Linux machine (another Pi running Raspbian would work), or use a serial console cable to communicate with your Pi.
Another option for editing /etc/wpa_supplicant/wpa_supplicant.conf would be to connect a USB keyboard and HDMI monitor to the Zero.
From the Linux command prompt:From the Raspbian GUI (desktop):
Hope I didn't make this sound more complicated than it is. It's really as simple as plugging the USB-WiFi + OTG adapter into the Zero and editing one file.
USB-WiFi > USB-OTG > Raspberry Pi Zero


Click on either picture for an expanded view, then click back to return here.
Got them from amazon.com, but I just took a quick look at the UK site and could not find the same USB adapter (too bad, it was only $4 and works great). There are lots of others available.
I love those tiny USB-OTG adapters! The same OTG adapter could be used with standard USB cables, USB flash drives, USB hubs and most other things with a USB-A plug on it. I originally got them to use with my phone and tablet, but they work great with the Zero as well. They were a bit pricey on Amazon UK, so you might want to check ebay (they were 5 for $3 from a vendor in China on Amazon US).
After putting it all together the only other thing I had to do was edit the /etc/wpa_supplicant/wpa_supplicant.conf file to add my wireless SSID and encryption key info.
Code: Select all
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
network={
ssid="your-network-service-set-identifier"
psk="your-network-WPA-security-key"
key_mgmt=WPA-PSK
}
Unfortunately that file is not easily accessed from a Windows computer, because it resides on the Linux partition of the Raspbian SD card, which Windows can't see. If you are using the full version of Raspbian Jessie, then you can put a copy of the file in the /boot partition (which Windows CAN see) and it will be copied to the correct location at boot time. However, that feature is currently broken in Raspbian Jessie-Lite, so for Lite you'll need to edit it on a Linux machine (another Pi running Raspbian would work), or use a serial console cable to communicate with your Pi.
Another option for editing /etc/wpa_supplicant/wpa_supplicant.conf would be to connect a USB keyboard and HDMI monitor to the Zero.
From the Linux command prompt:
Code: Select all
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Code: Select all
gksu leafpad /etc/wpa_supplicant/wpa_supplicant.conf
My mind is like a browser. 27 tabs are open, 9 aren't responding,
lots of pop-ups...and where is that annoying music coming from?
lots of pop-ups...and where is that annoying music coming from?