Book Image

BeagleBone By Example

By : Pei JIA, Jayakarthigeyan Prabakar, Alexander Hiam
Book Image

BeagleBone By Example

By: Pei JIA, Jayakarthigeyan Prabakar, Alexander Hiam

Overview of this book

BeagleBone is a low cost, community-supported development platform to develop a variety of electronic projects. This book will introduce you to BeagleBone and get you building fun, cool, and innovative projects with it. Start with the specifications of BeagleBone Black and its operating systems, then get to grips with the GPIOs available in BeagleBone Black. Work through four types of exciting projects: building real-time physical computing systems, home automation, image processing for a security system, and building your own tele-controlled robot and learn the fundamentals of a variety of projects in a single book. By the end of this book, you will be able to write code for BeagleBone in order to operate hardware and impart decision-making capabilities with the help of efficient coding in Python.
Table of Contents (17 chapters)
BeagleBone By Example
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Adding Wi-Fi to the BeagleBone board


To add Wi-Fi capability to the BeagleBone board, let's connect a Wi-Fi dongle in the USB port available on the BeagleBone board, as shown in the following picture:

Once you have connected the USB Wi-Fi dongle you can check whether it is connected or not by typing the following command:

  • lsusb: This is shown in the following screenshot where the USB Wi-Fi dongle is highlighted, that is Atheros Communications, Inc. AR9271 802.11n:

Then type the following command:

  • iwconfig: iwconfig will show you the details of the wireless LAN connection status, as shown in the previous screenshot, where you can see that wlan1, which is highlighted, shows the detail that is not associated with any access point as of now.

Our next step is to connect the Wi-Fi dongle to the Wi-Fi access point. To do this we will be using a program called wicd-curses, which is available in Debian by default.

To use the program we need to enter the following command:

  • sudo wicd-curses

Once you execute...