Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying BeagleBone Black Cookbook
  • Table Of Contents Toc
  • Feedback & Rating feedback
BeagleBone Black Cookbook

BeagleBone Black Cookbook

2 (1)
close
close
BeagleBone Black Cookbook

BeagleBone Black Cookbook

2 (1)

Overview of this book

There are many single-board controllers and computers such as Arduino, Udoo, or Raspberry Pi, which can be used to create electronic prototypes on circuit boards. However, when it comes to creating more advanced projects, BeagleBone Black provides a sophisticated alternative. Mastering the BeagleBone Black enables you to combine it with sensors and LEDs, add buttons, and marry it to a variety of add-on boards. You can transform this tiny device into the brain for an embedded application or an endless variety of electronic inventions and prototypes. With dozens of how-tos, this book kicks off with the basic steps for setting up and running the BeagleBone Black for the first time, from connecting the necessary hardware and using the command line with Linux commands to installing new software and controlling your system remotely. Following these recipes, more advanced examples take you through scripting, debugging, and working with software source files, eventually working with the Linux kernel. Subsequently, you will learn how to exploit the board's real-time functions. We will then discover exciting methods for using sound and video with the system before marching forward into an exploration of recipes for building Internet of Things projects. Finally, the book finishes with a dramatic arc upward into outer space, when you explore ways to build projects for tracking and monitoring satellites.
Table of Contents (11 chapters)
close
close

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "There is no reason to recapitulate all the material covered in the START.htm presentation."

A block of code is set as follows:

function updateDuty() {
    // compute and adjust duty_cycle based on
    // desired position in range 0..1
    var duty_cycle = (position*0.115) + duty_min;
    b.analogWrite(SERVO, duty_cycle, 60, scheduleNextUpdate);
    console.log("Duty Cycle: " +
        parseFloat(duty_cycle*100).toFixed(1) + " %");   
}

Any command-line input or output is written as follows:

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install gdb

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "From your BBB's desktop, open up LXTerminal."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

A few words about nomenclature

BBB: One thing that gets tiresome to repeat is the darned name of the board—BeagleBone Black. Too many syllables! So, instead of spelling it out every time, we will often just refer to the board as the BBB or the Black.

Note

There are other versions of the BeagleBone out in the wild, including BeagleBone XM, BeagleBoard (white), and the new super-charged (and much pricier) BeagleBoard-X15.

Desktop: Even though your BeagleBone Black has a desktop if you're running it on an external monitor or via an x11 (xwindows) session, we'll use the term desktop to refer to the client PC or Mac or Linux box that you're running as part of the development environment for the BBB.

Say hello to Major Tom

Ubiquitous and nearly inevitable in the world of computer programming is the typical beginner's example code "Hello World". Although we certainly use simple use cases to get you started, we don't use the Hello World rubric. Instead, because we're space geeks, we use "Major Tom" as a touchstone, evoking the astronaut from David Bowie's iconic Ziggy Stardust. To that end, we round out the book with an assortment of recipes using your BBB for tracking space stuff, satellites and the International Space Station, specifically. Geeks, indeed.

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
BeagleBone Black Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon