BeagleBone Black Cookbook

Over 60 recipes and solutions for inventors, makers, and budding engineers to create projects using the BeagleBone Black
Preview in Mapt

BeagleBone Black Cookbook

Charles A. Hamilton

1 customer reviews
Over 60 recipes and solutions for inventors, makers, and budding engineers to create projects using the BeagleBone Black
Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99 p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


BeagleBone Black Cookbook Book Cover
BeagleBone Black Cookbook
$ 35.99
$ 25.20
BeagleBone Home Automation Blueprints Book Cover
BeagleBone Home Automation Blueprints
$ 35.99
$ 25.20
Buy 2 for $35.00
Save $36.98
Add to Cart

Book Details

ISBN 139781783982929
Paperback346 pages

Book Description

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

Chapter 1: Setting Up for the First Time
Introduction
First boot up
Power requirements – basic guidelines
Display
Essential GNU/Linux commands – the command shell
Essential GNU/Linux commands – typical commands
Edit a text file from the command shell
Connectivity
Package management – Installing packages using apt-get
SSH / Remote access
System images
Chapter 2: Basic Programming Recipes
Introduction
Introduction to BoneScript
Toggle LED
Using the Cloud9 IDE
Node.js basic recipes
Adding a new module to Node.js
Using Node.js with Johnny-Five
Python basic recipes
Adding libraries
Running a Python script to control the LEDs
Chapter 3: Physical Computing Recipes Using JavaScript, the BoneScript Library, and Python
Introduction
Controlling external LEDs
Using buttons – button press function
Using analog sensors
Variable resistance sensor – photocell
Using motors
Chapter 4: Exploring GNU/Linux Recipes Using Bash, Autotools, Debugger, and systemd
Introduction
The basic shell script
Epoch Time shell script
Compile and install
Compile and install Git from source
Debugging
Debug a simple C-code application from the command line using GDB
Debug an application remotely from Eclipse and GDB server
systemd services
Basic commands for systemd services
Optimize boot time
Create a systemd service to run at boot time
Chapter 5: Basic Programming Recipes with the Linux Kernel
Introduction
Kernel application binary interface
Installing the latest kernel image
Installing and building a custom kernel
Interactions with the kernel – sysfs entries and controlling the GPIOs
Device Tree and its roots
Device Tree / basic build
Device Tree / advanced – adding DT overlay to run a custom cape
Universal cape overlay
Running a script to check DT usage on GPIO pins
Chapter 6: Run Faster, Run Real Time
Introduction
Installing a test tool
Modifying the kernel using RT-PREEMPT
Modifying the kernel using Xenomai
Programmable real-time units – an introduction
A simple PRU test with an assembler
Running an ultrasonic range sensor with the PRUs
Using Python with the PRUs
Chapter 7: Applied Recipes – Sound, Picture, and Video
Introduction
Wiring up a mini amp and speakers
Creating a high-quality audio platform with Volumio
Using videos and displays in projects
Testing a mini LCD cape
Making a video chat client prototype using Linphone
Chapter 8: The Internet of Things
Introduction
Location-based recipes – hooking up GPS
Location-based recipes – Bluetooth LE and Beacons
Using sensors and data with ThingSpeak
Making things smarter – building a wireless digital picture frame
Chapter 9: The Black in Outer Space
Introduction
Grabbing the International Space Station flyover data and visualizing it
Tracking using RTL-SDR
Airplane tracking with RTL-SDR
Satellite tracking using GPredict and RTL-SDR
Satellite tracking using the SatNogs Network client / ground station and RTL-SDR
Adding other interfaces – ISS tracking and text to speech

What You Will Learn

  • Set up and run the BeagleBone Black for the first time
  • Learn the basics of microcomputing and Linux using the command line and easy kernel mods
  • Make introductory projects with Python, JavaScript, BoneScript, and Node.js
  • Explore physical computing and simple circuits using buttons, LEDs, sensors, and motors
  • Discover the unique features of the BeagleBone Black and its real-time computing functions
  • Build intermediate level audio and video applications
  • Assemble and add ingredients for creating Internet of Things prototypes

Authors

Table of Contents

Chapter 1: Setting Up for the First Time
Introduction
First boot up
Power requirements – basic guidelines
Display
Essential GNU/Linux commands – the command shell
Essential GNU/Linux commands – typical commands
Edit a text file from the command shell
Connectivity
Package management – Installing packages using apt-get
SSH / Remote access
System images
Chapter 2: Basic Programming Recipes
Introduction
Introduction to BoneScript
Toggle LED
Using the Cloud9 IDE
Node.js basic recipes
Adding a new module to Node.js
Using Node.js with Johnny-Five
Python basic recipes
Adding libraries
Running a Python script to control the LEDs
Chapter 3: Physical Computing Recipes Using JavaScript, the BoneScript Library, and Python
Introduction
Controlling external LEDs
Using buttons – button press function
Using analog sensors
Variable resistance sensor – photocell
Using motors
Chapter 4: Exploring GNU/Linux Recipes Using Bash, Autotools, Debugger, and systemd
Introduction
The basic shell script
Epoch Time shell script
Compile and install
Compile and install Git from source
Debugging
Debug a simple C-code application from the command line using GDB
Debug an application remotely from Eclipse and GDB server
systemd services
Basic commands for systemd services
Optimize boot time
Create a systemd service to run at boot time
Chapter 5: Basic Programming Recipes with the Linux Kernel
Introduction
Kernel application binary interface
Installing the latest kernel image
Installing and building a custom kernel
Interactions with the kernel – sysfs entries and controlling the GPIOs
Device Tree and its roots
Device Tree / basic build
Device Tree / advanced – adding DT overlay to run a custom cape
Universal cape overlay
Running a script to check DT usage on GPIO pins
Chapter 6: Run Faster, Run Real Time
Introduction
Installing a test tool
Modifying the kernel using RT-PREEMPT
Modifying the kernel using Xenomai
Programmable real-time units – an introduction
A simple PRU test with an assembler
Running an ultrasonic range sensor with the PRUs
Using Python with the PRUs
Chapter 7: Applied Recipes – Sound, Picture, and Video
Introduction
Wiring up a mini amp and speakers
Creating a high-quality audio platform with Volumio
Using videos and displays in projects
Testing a mini LCD cape
Making a video chat client prototype using Linphone
Chapter 8: The Internet of Things
Introduction
Location-based recipes – hooking up GPS
Location-based recipes – Bluetooth LE and Beacons
Using sensors and data with ThingSpeak
Making things smarter – building a wireless digital picture frame
Chapter 9: The Black in Outer Space
Introduction
Grabbing the International Space Station flyover data and visualizing it
Tracking using RTL-SDR
Airplane tracking with RTL-SDR
Satellite tracking using GPredict and RTL-SDR
Satellite tracking using the SatNogs Network client / ground station and RTL-SDR
Adding other interfaces – ISS tracking and text to speech

Book Details

ISBN 139781783982929
Paperback346 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

BeagleBone Home Automation Blueprints Book Cover
BeagleBone Home Automation Blueprints
$ 35.99
$ 25.20
BeagleBone By Example Book Cover
BeagleBone By Example
$ 31.99
$ 22.40
BeagleBone Essentials Book Cover
BeagleBone Essentials
$ 23.99
$ 16.80
Building Networks and Servers Using BeagleBone Book Cover
Building Networks and Servers Using BeagleBone
$ 19.99
$ 14.00
Learning BeagleBone Python Programming Book Cover
Learning BeagleBone Python Programming
$ 31.99
$ 22.40
Using Yocto Project with BeagleBone Black Book Cover
Using Yocto Project with BeagleBone Black
$ 31.99
$ 22.40