Page 1 of 2

Pi Zero onboard wifi hack

Posted: Sun Nov 29, 2015 11:20 pm
by mikerr
Well that didn't take long!

Someone has already soldered a wifi dongle directly to the PiZero,
to keep it within the piZero form factor:

Image
http://hackaday.com/2015/11/28/first-ra ... back-wifi/

What would be awesome is soldering a fullsize socket *inboard* in the same way .. next weekend perhaps.

Re: Pi Zero onboard wifi hack

Posted: Sun Nov 29, 2015 11:25 pm
by solar3000
um...you said that already.

Re: Pi Zero onboard wifi hack

Posted: Mon Nov 30, 2015 12:21 pm
by rotwang
Would anybody from the foundation care to comment/no comment/neither confirm or deny/whatever on the correspondence between the PPnn pads on the back of the board and gpio/header pins ?
Also a schematic definitively showing the power supply connections (at least) would be most welcome.
I COULD trace them all out with a test box and publish the result, but I shouldn't have to.
Roger

Re: Pi Zero onboard wifi hack

Posted: Mon Nov 30, 2015 12:30 pm
by FM81
It seems electrical the same, as if you have connected an USB-dongle ...
The (two thin red and black) wires are connected to the USB-micro in direct way!?
Means you cannot use the USB-data-connector for any other purpose anymore ...
It would be more nice, not to block it!

Greetings, FM_81

Re: Pi Zero onboard wifi hack

Posted: Mon Nov 30, 2015 12:38 pm
by mikerr
Yes, its electrically like a usb wifi dongle,
but keeps the size small, without anything sticking out of the side of the pi.

He could also have powered the pi via GPIO, then it would be even more compact.

Re: Pi Zero onboard wifi hack

Posted: Mon Nov 30, 2015 10:58 pm
by Woll
Is this the same as the True Random Number Generator on page 38-39 of MagPi issue 40?

https://www.raspberrypi.org/magpi/issues/

Re: Pi Zero onboard wifi hack

Posted: Mon Nov 30, 2015 11:51 pm
by DougieLawson
Woll wrote:Is this the same as the True Random Number Generator on page 38-39 of MagPi issue 40?

https://www.raspberrypi.org/magpi/issues/
Is what the same?

There's always been a true RNG on all Raspberries.
http://scruss.com/blog/2013/06/07/well- ... generator/

Re: Pi Zero onboard wifi hack

Posted: Tue Dec 01, 2015 12:24 am
by Woll
DougieLawson wrote:
Woll wrote:Is this the same as the True Random Number Generator on page 38-39 of MagPi issue 40?

https://www.raspberrypi.org/magpi/issues/
Is what the same?

There's always been a true RNG on all Raspberries.
http://scruss.com/blog/2013/06/07/well- ... generator/
They're wired a dongle to the GPIO pins, but it looks like MagPi beat the website.

Re: Pi Zero onboard wifi hack

Posted: Tue Dec 01, 2015 12:47 am
by AndyD
Woll wrote:Is this the same as the True Random Number Generator on page 38-39 of MagPi issue 40?

https://www.raspberrypi.org/magpi/issues/
No, the dongle in the MagPi issue 40 is a USB TTL adapter, for serial communications from another computer. The WiFi adapter in this thread is a USB WiFi adapter directly connected to the Pi Zero board by removing the original USB plug (on the dongle) and soldering the wires to the test points on the bottom of the Pi Zero board. That way you no longer need a OtG adapter for you dongle.

Re: Pi Zero onboard wifi hack

Posted: Tue Dec 01, 2015 12:53 am
by Woll
AndyD wrote:
Woll wrote:Is this the same as the True Random Number Generator on page 38-39 of MagPi issue 40?

https://www.raspberrypi.org/magpi/issues/
No, the dongle in the MagPi issue 40 is a USB TTL adapter, for serial communications from another computer. The WiFi adapter in this thread is a USB WiFi adapter directly connected to the Pi Zero board by removing the original USB connector (+ OtG adapter).
Can a WiFi dongle be hacked on to the GPIO pins?

Re: Pi Zero onboard wifi hack

Posted: Tue Dec 01, 2015 12:53 am
by ame
AndyD wrote:
Woll wrote:Is this the same as the True Random Number Generator on page 38-39 of MagPi issue 40?

https://www.raspberrypi.org/magpi/issues/
No, the dongle in the MagPi issue 40 is a USB TTL adapter, for serial communications from another computer. The WiFi adapter in this thread is a USB WiFi adapter directly connected to the Pi Zero board by removing the original USB connector (+ OtG adapter).
The connector was not removed. The wires are soldered onto test points on the underside of the board.

Re: Pi Zero onboard wifi hack

Posted: Tue Dec 01, 2015 12:54 am
by ame
Woll wrote:
AndyD wrote:
Woll wrote:Is this the same as the True Random Number Generator on page 38-39 of MagPi issue 40?

https://www.raspberrypi.org/magpi/issues/
No, the dongle in the MagPi issue 40 is a USB TTL adapter, for serial communications from another computer. The WiFi adapter in this thread is a USB WiFi adapter directly connected to the Pi Zero board by removing the original USB connector (+ OtG adapter).
Can a WiFi dongle be hacked on to the GPIO pins?
You could probably attach an ESP8266 to the serial pins. This has been discussed.

Re: Pi Zero onboard wifi hack

Posted: Tue Dec 01, 2015 1:06 am
by Woll
This was on another thread.
mahjongg wrote:
mikronauts wrote:I understand your points, however the 0's point is: make it as cheap as possible

In order to add ethernet or wifi, a usb hub chip would be needed, and at least two USB sockets

No way to do it for $5
WRONG! Both Ethernet and WiFi interfaces can be attached without using USB, so no hub chip is needed!
You can attach an Ethernet adapter chip via the SPI bus, bit 10MBps, for $3,- and 10/100MBps chips for $3,50 are available, and so a $5 Ethernet adapter is certainly possible.
WiFi adapters are even simpler, a $3 module is sold, not just a chip, but a PCB with the chip, crystal, passive components and an antenna. Both these solutions have been already demonstrated to work on a PI.

Re: Pi Zero onboard wifi hack

Posted: Tue Dec 01, 2015 1:12 am
by mahjongg
That was fast, even before I could post a reaction!
The $3 WiFi module that can be connected to the PI is called the ESP-01

viewtopic.php?p=852282#p852282

Re: Pi Zero onboard wifi hack

Posted: Tue Dec 01, 2015 1:18 am
by AndyD
ame wrote:The connector was not removed. The wires are soldered onto test points on the underside of the board.
The USB plug (and the casing) of the WiFi dongle were removed, not the USB socket on the Pi Zero. Sorry if that was in any way ambiguous. I have edited my post for clarity.

Re: Pi Zero onboard wifi hack

Posted: Tue Dec 01, 2015 1:28 am
by Woll
mahjongg wrote:That was fast, even before I could post a reaction!
The $3 WiFi module that can be connected to the PI is called the ESP-01

viewtopic.php?p=852282#p852282
Is this compatible?

https://shop.pimoroni.com/products/esp8 ... ule-esp-12

Re: Pi Zero onboard wifi hack

Posted: Tue Dec 01, 2015 2:02 am
by mahjongg
its the "big brother" of the ESP-01, Its probably possible to interface it to the PI, yes.

Re: Pi Zero onboard wifi hack

Posted: Tue Dec 01, 2015 2:09 am
by mikronauts
So far my favourite is the ESP-12e

(so far, i've been playing with ESP-01's, 07's, 12's and 12e's, and have some more different models coming on the proverbial slow board from China)

All of them can interface to a Pi via the serial port, and there has been some work done already on SLIP for the 8266 for Arduino's.
mahjongg wrote:its the "big brother" of the ESP-01, Its probably possible to interface it to the PI, yes.

Re: Pi Zero onboard wifi hack

Posted: Mon Dec 14, 2015 6:13 am
by karelium
For clarification on this and future hacks.
Is it possible to connect usb devices to the same connector via wires without using an usb hub?

Eg. can I connect the wifi dongle and, let's say, an usb camera at the same time?

I though usb hubs are more than a bunch of parallel connections to the usb line.

Regards,

Re: Pi Zero onboard wifi hack

Posted: Mon Dec 14, 2015 1:06 pm
by ame
karelium wrote:For clarification on this and future hacks.
Is it possible to connect usb devices to the same connector via wires without using an usb hub?

Eg. can I connect the wifi dongle and, let's say, an usb camera at the same time?

I though usb hubs are more than a bunch of parallel connections to the usb line.

Regards,
No, you can't do this.

The hub is an 'active' device. Inside is a chip and some circuitry that handles communication between the devices on the hub and the host.

Re: Pi Zero onboard wifi hack

Posted: Sun Feb 28, 2016 11:25 pm
by yy502
Here's my solution. The full size female USB socket is semi-secured onto the board by soldering with 2 of the feet of the mini HDMI socket. It holds the socket and a WiFi dongle reasonably stable. You will still need to press the USB socket against the PCB when plug/unplug anything to be safe. This also resolves the reboot issue caused by current surge when plugging in a USB device, e.g. some WiFi dongles.

Image
Image
Image

Re: Pi Zero onboard wifi hack

Posted: Sat May 14, 2016 12:03 am
by digger72
The HubPiWi is a neat solution for Pi Zero. It integrated a 4 Port USB Hub. One of the 4 ports has a USB to Wifi chip and has on board antenna.

The best part of this board is - it does not require any connector or cable. It makes connection using 4 Pogo Pins with spring action.

Check the details at kickstarter.

https://www.kickstarter.com/projects/17 ... o-cable-c/

Re: Pi Zero onboard wifi hack

Posted: Wed May 18, 2016 6:27 am
by digger72
The recent release of the Pi Zero 1.3 ( with camera connector), brings slight change in the HubPiWi - it will now have two versions one for Pi Zero 1.2 and earlier and other for Pi Zero 1.3. This is basically required because the Pogo Pins are at different positions in the two boards. See the project here at kickstarter.

https://www.kickstarter.com/projects/17 ... o-cable-c/

Re: Pi Zero onboard wifi hack

Posted: Wed May 18, 2016 9:59 am
by mthomason
I like the look of this solution best, so far. It uses SPI on the GPIO pins and doesn't touch USB, so it can be used on a Pi Zero to add WiFi while leaving the USB OTG port usable as an actual OTG port (so you can connect the zero directly to a PC as a peripheral using the Linux USB Gadget modules.) I'm going to give it a go using an ESP-201, which comes in a larger/easier format to work with, as well as being a bit cheaper than most other ESP8266 modules as it doesn't have any onboard flash memory.

Re: Pi Zero onboard wifi hack

Posted: Wed May 18, 2016 10:14 am
by gregeric
That ESP-201 isn't going to make it any easier for you over an ESP-03, you'll still have to connect the Pi's SDIO to the legs of the SPI flash memory sitting in the middle of the board. Edit- I see they may in fact be there on header pins after all.

The easiest modules to work with are the ESP-12E or F - the required lines are all on the castellations on the short edge.

I made my own variant here. Should have chosen the other end for the WiFi antenna though, will soon see how much the radio is compromised by the new CSI connector...