Demos for a Hands on BeagleBone Black workshop
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Getting Started

  • To have network access on the Black using just the USB wire, follow these steps. On the Black do:

      # /sbin/route add default gw
      # echo "nameserver" >> /etc/resolv.conf

    On the Linux host (except Fedora) from which you want to route:

      # sudo iptables -A POSTROUTING -t nat -j MASQUERADE
      # sudo echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward > /dev/null

    On a Fedora machine instead of above two intsructions:

      1) Open Firewall settings.  
      2) Select zone as public.  
      3) In the side tab panel select masquerading  
      4) Enable Masquerade zones.  

    Now on the BBB:

      # ping

    Have tested this on Angstrom, but should work on Ubuntu, etc. too.

  • BBB doesn't have a RTC(Real Time Clock). To set network time

      # ntpdate -b -s -u  
  • Transferring files in between host machine and BeagleBone Black

      # sftp root@

Common used commands with ftp are mput, mget, exit. You can also use cd and ls to move through remote filesystem. Another similar command is scp which is handy if you want to transfer files by in a script.


  • Setup network access

  • Get pip

      # opkg update
      # opkg install python-pip

    You can now use pip to install your favourite python packages

  • Setting up Adafruit_BBIO

      # git clone git://
      # opkg update && opkg install python-distutils python-smbus
      # cd adafruit-beaglebone-io-python
      # python install
  • You can now try out the demo

      # python


  • OpenCV 2.4.2 comes preinstalled with the Angstrom image.

  • Current version of the Angstrom doesn't have python-opencv package by default. To install use:

      # opkg install
  • Capture image using a camera connected to the Black.

      # python

Arduino code

  • Setting up Userspace Arduino

      # git clone
      # cd Userspace-Arduino/arduino-makefile/examples
  • To compile any of the examples, cd to the directory

      # cd BlinkUserspace
      # make
      # cd build-userspace
      # ./BlinkUserspace.elf

    Look at the USR LED pins on the Black to see a blinking led (USR LED 3)

Links for more information about above demos

Links for information about BeagleBone Black in general

If you are stuck someplace, your first port of call ought to be the mailing list archives( high chances that someone has faced that problem before). If that doesn't yield anything, you can surely find help on the IRC channel.