BeagleBone Black Cookbook

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

BeagleBone Black Cookbook

This ebook is included in a Mapt subscription
Charles A. Hamilton

3 customer reviews
Over 60 recipes and solutions for inventors, makers, and budding engineers to create projects using the BeagleBone Black
$0.00
$18.00
$44.99
$29.99p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

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 3 reviews

Read More Reviews