For the next part of my series on PocketBeagle, I will show how to add WiFi connectivity to the board. This board doesn’t come with built-in WiFi like the Raspberry Pi Zero W. With a simple hack, I managed to add WiFi connectivity to it.
Adding USB to PocketBeagle
[the_ad id=”3059″]There is a provision for adding an additional USB port on the PocketBeagle as shown:
I have seen most people attach Adafruit’s microUSB breakout board to these pins which makes sense because the pins on the PocketBeagle and the breakout board lines up.
So yeah, this is the easiest way. Then you add a USB OTG cable and attach a WiFi USB dongle like this:
But I don’t have the microUSB breakout board and I’m not planning to purchase it. Naturally, I had to create my own breakout board. I salvaged a type A USB port from a damaged power adapter and soldered it to a perfboard:
[the_ad id=”3059″]The type A USB has four pins compared to five pins for microUSB. I simply attached the ID pin to ground as suggested by this diagram:
Also, since my custom breakout board uses a six-pin header (I couldn’t find one with five pins on my stock), the extra pin (VB on the PocketBeagle) is connected to 5V. So basically, this is how my breakout board is connected to the PocketBeagle:
WiFi Ready!
The actual setup:
When the WiFi dongle is now attached to your PocketBeagle, all it takes is to enable WiFi via connmanctl
1 2 |
sudo connmanctl connmanctl> enable wifi |
Next, scan available WiFi connections:
[the_ad id=”3059″]
1 2 3 |
connmanctl> scan wifi Scan completed for wifi connmanctl> services |
1 2 |
connmanctl> agent on connmanctl> connect wifi_xxxxxx_xxxxxx_managed_psk |
1 |
connmanctl> quit |
1 |
ifconfig |
Great tutorials. Can you add links on bbb.io/p ?
Thank you very much.it works now.
Follow this article and now I have wifi on my PocketBeagle.