Book description
BeagleBone is an inexpensive web server, Linux desktop, and electronics hub that includes all the tools you need to create your own projects—whether it’s robotics, gaming, drones, or software-defined radio. If you’re new to BeagleBone Black, or want to explore more of its capabilities, this cookbook provides scores of recipes for connecting and talking to the physical world with this credit-card-sized computer.
All you need is minimal familiarity with computer programming and electronics. Each recipe includes clear and simple wiring diagrams and example code to get you started. If you don’t know what BeagleBone Black is, you might decide to get one after scanning these recipes.
- Learn how to use BeagleBone to interact with the physical world
- Connect force, light, and distance sensors
- Spin servo motors, stepper motors, and DC motors
- Flash single LEDs, strings of LEDs, and matrices of LEDs
- Manage real-time input/output (I/O)
- Work at the Linux I/O level with shell commands, Python, and C
- Compile and install Linux kernels
- Work at a high level with JavaScript and the BoneScript library
- Expand BeagleBone’s functionality by adding capes
- Explore the Internet of Things
Publisher resources
Table of contents
- Preface
-
Basics
- 1.0. Introduction
- 1.1. Picking Your Beagle
- 1.2. Getting Started, Out of the Box
- 1.3. Verifying You Have the Latest Version of the OS on Your Bone
- 1.4. Running the BoneScript API Tutorials
- 1.5. Wiring a Breadboard
- 1.6. Editing Code Using the Cloud9 IDE
- 1.7. Running JavaScript Applications from the Cloud9 IDE
- 1.8. Running Applications Automatically
- 1.9. Finding the Latest Version of the OS for Your Bone
- 1.10. Running the Latest Version of the OS on Your Bone
- 1.11. Updating the OS on Your Bone
- 1.12. Backing Up the Onboard Flash
- 1.13. Updating the Onboard Flash
-
Sensors
- 2.0. Introduction
- 2.1. Choosing a Method to Connect Your Sensor
- 2.2. Input and Run a JavaScript Application for Talking to Sensors
- 2.3. Reading the Status of a Pushbutton or Magnetic Switch (Passive On/Off Sensor)
- 2.4. Reading a Position, Light, or Force Sensor (Variable Resistance Sensor)
- 2.5. Reading a Distance Sensor (Analog or Variable Voltage Sensor)
- 2.6. Reading a Distance Sensor (Variable Pulse Width Sensor)
- 2.7. Accurately Reading the Position of a Motor or Dial
- 2.8. Acquiring Data by Using a Smart Sensor over a Serial Connection
- 2.9. Measuring a Temperature
- 2.10. Reading Temperature via a Dallas 1-Wire Device
- 2.11. Sensing All Sorts of Things with SensorTag via Bluetooth v4.0
- 2.12. Playing and Recording Audio
-
Displays and Other Outputs
- 3.0. Introduction
- 3.1. Toggling an Onboard LED
- 3.2. Toggling an External LED
- 3.3. Toggling a High-Voltage External Device
- 3.4. Fading an External LED
- 3.5. Writing to an LED Matrix
- 3.6. Driving a 5 V Device
- 3.7. Writing to a NeoPixel LED String
- 3.8. Using a Nokia 5510 LCD Display
- 3.9. Making Your Bone Speak
- Motors
-
Beyond the Basics
- 5.0. Introduction
- 5.1. Running Your Bone Standalone
- 5.2. Selecting an OS for Your Development Host Computer
- 5.3. Getting to the Command Shell via SSH
- 5.4. Getting to the Command Shell via the Virtual Serial Port
- 5.5. Viewing and Debugging the Kernel and u-boot Messages at Boot Time
- 5.6. Verifying You Have the Latest Version of the OS on Your Bone from the Shell
- 5.7. Controlling the Bone Remotely with VNC
- 5.8. Learning Typical GNU/Linux Commands
- 5.9. Editing a Text File from the GNU/Linux Command Shell
- 5.10. Using a Graphical Editor
- 5.11. Establishing an Ethernet-Based Internet Connection
- 5.12. Establishing a WiFi-Based Internet Connection
- 5.13. Sharing the Hostâs Internet Connection over USB
- 5.14. Setting Up a Firewall
- 5.15. Installing Additional Packages from the Debian Package Feed
- 5.16. Removing Packages Installed with apt-get
- 5.17. Copying Files Between the Onboard Flash and the MicroSD Card
- 5.18. Freeing Space on the Onboard Flash or MicroSD Card
- 5.19. Installing Additional Node.js Packages
- 5.20. Using Python to Interact with the Physical World
- 5.21. Using C to Interact with the Physical World
-
Internet of Things
- 6.0. Introduction
- 6.1. Accessing Your Host Computerâs Files on the Bone
- 6.2. Serving Web Pages from the Bone
- 6.3. Interacting with the Bone via a Web Browser
- 6.4. Displaying GPIO Status in a Web Browser
- 6.5. Continuously Displaying the GPIO Value via jsfiddle
- 6.6. Continuously Displaying the GPIO Value
- 6.7. Plotting Data
- 6.8. Sending an Email
- 6.9. Sending an SMS Message
- 6.10. Displaying the Current Weather Conditions
- 6.11. Sending and Receiving Tweets
- 6.12. Wiring the IoT with Node-RED
- 6.13. Serving Web Pages from the Bone by Using Apache
- 6.14. Communicating over a Serial Connection to an Arduino or LaunchPad
- The Kernel
- Real-Time I/O
-
Capes
- 9.0. Introduction
- 9.1. Using a Seven-Inch LCD Cape
- 9.2. Using a 128 x 128-Pixel LCD Cape
- 9.3. Connecting Multiple Capes
- 9.4. Moving from a Breadboard to a Protoboard
- 9.5. Creating a Prototype Schematic
- 9.6. Verifying Your Cape Design
- 9.7. Laying Out Your Cape PCB
- 9.8. Migrating a Fritzing Schematic to Another Tool
- 9.9. Producing a Prototype
- 9.10. Creating Contents for Your Cape Configuration EEPROM
- 9.11. Putting Your Cape Design into Production
- Parts and Suppliers
- Index
Product information
- Title: BeagleBone Cookbook
- Author(s):
- Release date: April 2015
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781491915677
You might also like
video
Taking the BeagleBone Cookbook recipes beyond BeagleBone Black
BeagleBone is an inexpensive web server, Linux desktop, and electronics hub that includes all the tools …
book
GNU/Linux Rapid Embedded Programming
An annotated guide to program and develop GNU/Linux Embedded systems quickly About This Book Rapidly design …
book
ARM® Cortex® M4 Cookbook
Over 50 hands-on recipes that will help you develop amazing real-time applications using GPIO, RS232, ADC, …
book
Getting Started with BeagleBone
Many people think of Linux as a computer operating system, running on users' desktops and powering …