Book description
Learn to build amazing robotic projects using the powerful BeagleBone Black.
About This Book
Push your creativity to the limit through complex, diverse, and fascinating projects
Develop applications with the BeagleBone Black and open source Linux software
Sharpen your expertise in making sophisticated electronic devices
Who This Book Is For
This Learning Path is aimed at hobbyists who want to do creative projects that make their life easier and also push the boundaries of what can be done with the BeagleBone Black. This Learning Path’s projects are for the aspiring maker, casual programmer, and budding engineer or tinkerer. You'll need some programming knowledge, and experience of working with mechanical systems to get the complete experience from this Learning Path.
What You Will Learn
Set up and run the BeagleBone Black for the first time
Get to know the basics of microcomputing and Linux using the command line and easy kernel mods
Develop a simple web interface with a LAMP platform
Prepare complex web interfaces in JavaScript and get to know how to stream video data from a webcam
Find out how to use a GPS to determine where your sailboat is, and then get the bearing and distance to a new waypoint
Use a wind sensor to sail your boat effectively both with and against the wind
Build an underwater ROV to explore the underwater world
See how to build an autonomous Quadcopter
In Detail
BeagleBone is a microboard PC that runs Linux. It can connect to the Internet and run OSes such as Android and Ubuntu. You can transform this tiny device into a brain for an embedded application or an endless variety of electronic inventions and prototypes.
This Learning Path starts off by teaching you how to program the BeagleBone. You will create introductory projects to get yourselves acquainted with all the nitty gritty. Then we’ll focus on a series of projects that are aimed at hobbyists like you and encompass the areas of home automation and robotics. With each project, we’ll teach you how to connect several sensors and an actuator to the BeagleBone Black. We’ll also create robots for land, sea, and water. Yes, really!
The books used in this Learning Path are:
BeagleBone Black Cookbook
BeagleBone Home Automation Blueprints
Mastering BeagleBone Robotics
Style and approach
This practical guide transforms complex and confusing pieces of technology to become accessible with easy- to-succeed instructions. Through clear, concise examples, you will quickly get to grips with the core concepts needed to develop home automation applications with the BeagleBone Black.
Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the code file.
Table of contents
-
BeagleBone: Creative Projects for Hobbyists
- Table of Contents
- BeagleBone: Creative Projects for Hobbyists
- Credits
- Preface
-
1. Module 1
-
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
- Getting ready
- System navigational command – change your directory – cd
- How to do it…
- There's more…
- System navigational command – show your current directory – pwd
- How to do it…
- System navigational command – find a file – find
- How to do it…
- Device and system insight – shows what's inside a directory – ls
- How to do it…
- Device and system insight – find out what USB devices are connected – lsusb
- How to do it…
- Device and system insight – get information about connected devices – cat/proc/bus/input/devices
- How to do it…
- There's more…
- Device and system insight – get your version of Linux
- How to do it…
- Device and system insight – find out running processes – ps
- How to do it…
- Device and system insight – find out the resources used by running processes – top and htop
- How to do it…
- Device and system insight – quitting processes – kill
- How to do it…
- Device and system insight – message reports – dmesg
- How to do it…
- Device and system insight – shows disk space – df -h
- How to do it…
- Device and system insight – explore network – Ifconfig
- How to do it…
- Modify content / data commands – make a new directory – mkdir
- How to do it…
- Modify content/data commands – remove a file or directory – rm
- How to do it…
- Modify content / data commands – download files – wget
- How to do it…
- There's more…
- Modify content / data commands – open a tar file – tar [options]
- How to do it…
- There's more…
- Modify content / data commands – clean up files – autoclean
- How to do it…
- Modify content / data commands – purge a package – apt-get purge, apt-get remove --purge
- How to do it…
- Modify content/data commands – shutdown the system – [options]
- How to do it…
- See also
- Edit a text file from the command shell
- Connectivity
- Package management – Installing packages using apt-get
- SSH / Remote access
- System images
- 2. Basic Programming Recipes
- 3. Physical Computing Recipes Using JavaScript, the BoneScript Library, and Python
-
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
-
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
- 6. Run Faster, Run Real Time
- 7. Applied Recipes – Sound, Picture, and Video
- 8. The Internet of Things
-
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
-
1. Setting Up for the First Time
-
2. Module 2
- 1. Dangerous Gas Sensors
- 2. Ultrasonic Parking Assistant
- 3. Aquarium Monitor
- 4. Google Docs Weather Station
- 5. WhatsApp Laundry Room Monitor
- 6. Baby Room Sentinel
- 7. Facebook Plant Monitor
- 8. Intrusion Detection System
- 9. Twitter Access Control System with Smart Card and RFID
- 10. A Lights Manager with a TV Remote Controller
- 11. A Wireless Home Controller with Z-Wave
-
3. Module 3
- 1. Preparing the BeagleBone Black
- 2. Building a Basic Tracked Vehicle
- 3. Adding Sensors to Your Tracked Vehicle
- 4. Vision and Image Processing
-
5. Building a Robot that Can Walk
- Building robots that can walk
- Working of servomotors
- Building the quadruped platform
- Using a servo controller to control the servos
- Communicating with the servo controller via a PC
- Connecting the servo controller to the BeagleBone Black
- Creating a program on Linux to control your quadruped
- Issuing voice commands to your quadruped
- Summary
- 6. A Robot that Can Sail
- 7. Using GPS for Navigation
- 8. Measuring Wind Speed – Integrating Analog Sensors
- 9. An Underwater Remotely Operated Vehicle
- 10. A Quadcopter
- 11. An Autonomous Quadcopter
- Bibliography
- Index
Product information
- Title: BeagleBone: Creative Projects for Hobbyists
- Author(s):
- Release date: July 2017
- Publisher(s): Packt Publishing
- ISBN: 9781788395656
You might also like
book
Models to Code: With No Mysterious Gaps
Learn how to translate an executable model of your application into running code. This is not …
book
BeagleBone Robotic Projects - Second Edition
Exciting new capabilities to enable even easier DIY robotics with BeagleBone Blue About This Book Build …
book
Ivor Horton's Beginning Visual C++ 2013
Learn C++ with the best tutorial on the market! Horton's unique tutorial approach and step-by-step guidance …
article
Run Llama-2 Models Locally with llama.cpp
Llama is Meta’s answer to the growing demand for LLMs. Unlike its well-known technological relative, ChatGPT, …