element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
BeagleBoard
  • Products
  • Dev Tools
  • Single-Board Computers
  • BeagleBoard
  • More
  • Cancel
BeagleBoard
Blog PocketBeagle Quick Start Guide and Connecting to WiFi and Ethernet
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join BeagleBoard to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: shabaz
  • Date Created: 16 Aug 2019 4:15 PM Date Created
  • Views 8839 views
  • Likes 5 likes
  • Comments 6 comments
  • wifi
  • ethernet
  • pocketbeaglebone
  • getting started guide
  • pocketbeagle
  • BeagleBone Black
Related
Recommended

PocketBeagle Quick Start Guide and Connecting to WiFi and Ethernet

shabaz
shabaz
16 Aug 2019

Introduction

The PocketBeaglePocketBeagle single board computer (SBC) is really tiny. Apart from the size, there are lots of similarities with the larger BeagleBone BlackBeagleBone Black, and there are also some differences.

 

In terms of performance, it is identical. It has the same amount of memory, and runs using the same processor and the same Linux image too!

image

 

To get the size down, it is of course missing many connectors but a lot of functionality within the main chip is brought out onto the two 36-way pads (no header pins are supplied but two of these 36 way header pins36 way header pins will fit). It isn’t possible to attach HDMI displays, because the BeagleBone Black used a separate chip for that on-board, and that is not present on the PocketBeagle. Also, unlike the BeagleBone Black there is no eMMC storage on-board, but often the BeagleBone Black eMMC lays unused, because people may just stick a larger Linux image onto a Micro SD card.

 

Just like the BeagleBone Black, it is possible to power it from a Lithium Ion battery directly, and it can charge the battery too. This makes it great for portable applications. There is a built-in power button that could be exposed through an enclosure if desired.

 

There is only one connector on the PocketBeagle by default, and that is a micro USB connector. It can be connected to a PC or USB power supply. When connected to a PC, then several functions get exposed; the PC will see a drive appear called “BeagleBone Getting Started” and also a virtual Ethernet connection and a new network will appear. It is possible to communicate to the PocketBeagle from the PC, using this network connection. This is identical behaviour to the BeagleBone black.

 

One large difference is that the pinouts are completely different. The PocketBeagle has its pins arranged in a different order understandably, since the device is too small for the large 46-way connectors on the BeagleBone Black. Using the pins will be discussed in another blog post (see BeagleBone Black (BBB) and PocketBeagle I/O (GPIO), SPI and I2C Library for C – 2019 Edition ), but you can see the functionality that is available here: PocketBeagle GPIO Pinout 

 

This blog post discusses briefly how to get going with the PocketBeagle.

 

Setting up the PocketBeagle

This is really easy. Follow the guide Getting Started with BeagleBone Black -  it is PocketBeagle-compatible : )

 

Once you get to the Wifi and Ethernet steps, come back to this blog post, because the PocketBeagle doesn’t have WiFi and Ethernet capabilities on-board. This blog post discusses how to fix that.

 

What is Needed?

To use (and develop code and projects with) the PocketBeagle effectively, a few things are needed: a micro USB cable, a USB power supply or any 5V DC supply (1A or higher), two 36 way dual in line header pins36 way dual in line header pins and (for the USB add-on described below) a USB Type A receptacleUSB Type A receptacle and some jumper wiresjumper wires.

 

Adding a USB Host Connector

When developing applications for the PocketBeagle, it is nice to have network connectivity, so you can download patches, or download libraries and applications from (say) github. To do that, you could make use of the virtual Ethernet connection that appears when the micro USB connector on the PocketBeagle is connected to your PC. It entails setting up the PocketBeagle to route all network traffic through the PC, and setting up the PC to be able to accept traffic destined for the PocketBeagle.

 

There is a far easier way; just attach a USB socket to the PocketBeagle, so you can plug in a USB device such as a WiFi or Ethernet adapter (see the comments below for information on some of the WiFi adapters that have been tried and work).

image

 

To do that, obtain a USB socket and wire it as shown in the diagram.

image

 

Plug the connector to the PocketBeagle header P1 pins 5,7,9,11,13,15 (they are all together in a row) and then plug in your USB device, and then power up!

image

 

Note: this is a hack, a proper way to do it would include circuitry for overload and ESD protection, and to enable/disable the power under control of the USB driver. However for development purposes while you are creating your PocketBeagle application, there’s no issue with using this hack provided you’re careful. It has limitations; you can’t power up very high current devices, and you shouldn’t connect/disconnect anything while the PocketBeagle is running. Make sure the PocketBeagle is powered down, prior to plugging or unplugging a USB device.

 

For those that are interested to know about the connections in some further detail, here is a description of the pins that are used (pin 3 on connector P1, i.e. P1.3 isn't used in this hack, but would be used for a real design):

 

P1.3: V_EN: This goes high to indicate that the USB host connector can be supplied with power.

P1.5: VBUS: This pin connects to the VBUS pin on the USB host connector, but also needs to be supplied with 5V, since we are using host mode, where the BBB needs to supply the power.

P1.7: USB HOST VIN: This pin can be used to supply power into the PocketBeagle, for the purposes of supplying power to VBUS. However if the PocketBeagle already is being supplied with power from elsewhere (e.g. the USB client connector) then USB HOST VIN will have power on it, and could be tied to VBUS.

P1.9: DN: The is the D- data pin (pin 2, white)

P1.11: DP: This is the D+ data pin (pin 3, green)

P1.13: ID:  This is the ID pin, an input to the BBB. Connect it to 0V to signify USB Host mode.

P1.13: GND:  This is a ground pin on the PocketBeagle.

 

Using It

Some WiFi adapters may not work. In fact I had bad luck and none of the WiFi adapters that I had worked : ( Instead, I used an Ethernet plus 3 port USB hub adapter. That worked great, the PocketBeagle needed no configuration, and the network connection came up immediately. With such a setup, there is no need to power the PocketBeagle from the PC. Instead, the micro USB connector can be attached to a USB power supply.

 

Summary

The PocketBeagle is just as easy to set up as the larger BeagleBone Black, but network connectivity can be extremely useful. This blog post described how to get the PocketBeagle up and running, and then how to connect a USB adapter to it for WiFi or Ethernet connectivity (or any other USB device provided drivers are available for it).

If you find WiFi adapters that work, or other useful USB additions, or have ideas for PocketBeagle projects, it would be great to hear about them!

  • Sign in to reply

Top Comments

  • mp2100
    mp2100 over 6 years ago +5
    shabaz I like your USB cable, easy to unplug when you don't need it. I soldered the adafruit micro-USB part to mine and it worked great. https://www.adafruit.com/product/1833 The edamax wifi dongle worked…
  • shabaz
    shabaz over 6 years ago in reply to mp2100 +2
    Hi Allen, Thanks for the information! It's great to know there is a known working WiFi adapter. I'm going to order that.
  • ajcc
    ajcc over 6 years ago +2
    Awesome! I should really get one of these PocketBeagles, since I really like the BeagleBone Black and this one seem a lot easier to use with a perfboard.
  • shabaz
    shabaz over 6 years ago in reply to mp2100

    Hi Allen,

     

    I've spent some of the weekend editing some C library code, to make it PocketBeagle compatible. I see your point now, how PocketBeagle I/O is a lot cleaner. By default, the BeagleBone Black has a lot of I/O, but only a couple of serial buses enabled, and compromises to be decided on to enable more buses. Whereas with the PocketBeagle, the all the useful serial buses and a UART and PRU pins are already configured. It's a much better balance between GPIO pins and the interfaces.

    Incidentally, I ordered an Edimax USB adapter based on your suggestion, but ordered a couple of different Edimax ones since the one you mentioned was not available next-day from Amazon. Anyway, I've tried the one I received today, model EW-7611ULB and that functions too.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ajcc
    ajcc over 6 years ago

    Awesome! I should really get one of these PocketBeagles, since I really like the BeagleBone Black and this one seem a lot easier to use with a perfboard.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 6 years ago in reply to mp2100

    Hi Allen,

     

    Thanks for the information! It's great to know there is a known working WiFi adapter. I'm going to order that.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 6 years ago in reply to genebren

    Hi Gene,

     

    Thanks! I'm looking forward to powering it up with a LiPi - really nice that there is built-in charger, and control with a power button, so all the difficulty in making something portable is eliminated : )

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mp2100
    mp2100 over 6 years ago

    shabaz I like your USB cable, easy to unplug when you don't need it.  I soldered the adafruit micro-USB part to mine and it worked great.

    https://www.adafruit.com/product/1833

    image

     

    The edamax wifi dongle worked perfectly when plugged into this. Actually it works better with the pocketbeagle than with the BB Black.  There are lots of warnings on the web for the BB Black due to HDMI pins interference.  (No HDMI on the pocketbeagle is a feature, not a bug.)  I got my edimax from newegg

    https://www.newegg.com/edimax-ew-7811un-1-x-usb-1-0-2-0-type-a/p/N82E16833315091?Description=edimax&cm_re=edimax-_-33-31…

    image

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube