万本电子书0元读

万本电子书0元读

顶部广告

BeagleBone Black Cookbook电子书

售       价:¥

5人正在读 | 0人评论 9.8

作       者:Charles A. Hamilton

出  版  社:Packt Publishing

出版时间:2015-11-18

字       数:249.7万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Over 70 recipes and solutions for inventors, makers, and budding engineers to create projects using the BeagleBone Black About This Book ?Learn how to develop applications with the BeagleBone Black and open source Linux software ?Sharpen your expertise in making sophisticated electronic devices ?Explore the BeagleBone Black with this easy-to-succeed recipe format Who This Book Is For If you are a hardware, Linux, and/or microcomputing novice, or someone who wants more power and possibilities with product prototypes, electronic art projects, or embedded computing experiments, then this book is for you. It is for Internet of Things enthusiasts who want to use more sophisticated hardware than the Raspberry Pi or the Arduino can provide. Whether you are an engineering student, a DIYer, an inventor, or an advanced electronics enthusiast, this book delivers accessible, compelling instructions for using an advanced microcomputing platform. 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 draft prototypes for wearable and Internet of Things devices In Detail 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 *ing, 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 set up test recipes for building a project on board a small satellite's payload. Style and approach This comprehensive recipe book deconstructs a complex, often confusing piece of technology, and transforms it to become accessible and fun with snappy, unintimidating prose, and extensive easy-to-succeed instructions.
目录展开

BeagleBone Black Cookbook

Table of Contents

BeagleBone Black Cookbook

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why Subscribe?

Free Access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Sections

Getting ready

How to do it…

How it works…

There's more…

See also

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

1. Setting Up for the First Time

Introduction

First boot up

Getting ready

How to do it…

Getting ready

How to do it...

Power requirements – basic guidelines

Display

Connecting an HDMI LCD

How to do it...

Connecting a non-HDMI LCD or cape

How to do it...

There's more…

Essential GNU/Linux commands – the command shell

Getting ready

How to do it...

How it works...

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

How it works...

How to do it...

See also

Connectivity

Connectivity – Ethernet

Getting ready

How to do it...

Connectivity – Wi-Fi

Getting ready

How to do it...

There's more…

See also

Package management – Installing packages using apt-get

Getting ready

How to do it…

See also

SSH / Remote access

Using SSH to control your BBB

How to do it…

Using VNC to control your BBB

Getting ready…

How to do it...

There's more...

System images

OS image flashing – internal drive boot

Getting ready

How to do it...

There's more…

Expand your partition

Backing up a code image to a file

OS image flashing – the SD card boot

Getting ready

How to do it...

Updating your current OS kernel

See also

2. Basic Programming Recipes

Introduction

Introduction to BoneScript

Toggle LED

How to do it...

See also

Using the Cloud9 IDE

How to do it…

See also

Node.js basic recipes

Adding a new module to Node.js

Getting ready

How to do it...

There's more…

See also

Using Node.js with Johnny-Five

How to do it…

There's more…

Python basic recipes

Getting ready

Adding libraries

How to do it…

Running a Python script to control the LEDs

How to do it…

There's more…

3. Physical Computing Recipes Using JavaScript, the BoneScript Library, and Python

Introduction

The essentials of electronics

Header pins and pinmuxing

The process of pinmuxing

There's more…

Controlling external LEDs

Getting ready

How to do it...

Writing an alternative script with Python

There's more…

Using buttons – button press function

Pull-up, pull-down, and floating

Getting ready

How to do it...

There's more…

Using analog sensors

Temperature sensors

Getting ready

How to do it...

There's more…

See also

Variable resistance sensor – photocell

Getting ready

How to do it…

Using motors

DC motors

Getting ready

How to do it...

How it works...


Servo motors

A crash course in pulse width modulation

Getting ready

How to do it...

There's more…

4. Exploring GNU/Linux Recipes Using Bash, Autotools, Debugger, and systemd

Introduction

The basic shell script

How to do it...

Epoch Time shell script

How to do it...

There's more...

Compile and install

See also

Compile and install Git from source

How to do it...

Debugging

See also

Debug a simple C-code application from the command line using GDB

How to do it...

See also

Debug an application remotely from Eclipse and GDB server

How to do it...

There's more…

systemd services

There's more…

See also

Basic commands for systemd services

How to do it...

There's more…

Optimize boot time

How to do it...

Create a systemd service to run at boot time

How to do it...

5. Basic Programming Recipes with the Linux Kernel

Introduction

Kernel building basics

See also

Kernel application binary interface

Getting ready

How to do it...

How it works…

Installing the latest kernel image

Getting ready

How to do it...

Installing and building a custom kernel

Getting ready

How to do it...

Interactions with the kernel – sysfs entries and controlling the GPIOs

Getting ready

How to do it...

There's more…

Device Tree and its roots

There's more…

Device Tree / basic build

Getting ready

How to do it...

Device Tree / advanced – adding DT overlay to run a custom cape

Getting ready

How to do it...

There's more…

See also

Universal cape overlay

Getting ready

How to do it…

There's more…

Running a script to check DT usage on GPIO pins

Getting ready

How to do it…

6. Run Faster, Run Real Time

Introduction

Installing a test tool

Getting ready

How to do it...

See also

Modifying the kernel using RT-PREEMPT

Getting ready

How to do it…

There's more…

Modifying the kernel using Xenomai

Getting ready

How to do it...

There's more…

See also

Programmable real-time units – an introduction

Getting ready

How to do it…

A simple PRU test with an assembler

Getting ready

How to do it…

See also

Running an ultrasonic range sensor with the PRUs

Getting ready

How to do it…

Using Python with the PRUs

Getting ready

How to do it…

See also

7. Applied Recipes – Sound, Picture, and Video

Introduction

Wiring up a mini amp and speakers

Getting ready

How to do it…

Creating a high-quality audio platform with Volumio

Getting ready

How to do it…

There's more…

See also

Using videos and displays in projects

Getting ready

How to do it…

There's more…

Testing a mini LCD cape

Getting ready

How to do it…

Making a video chat client prototype using Linphone

Getting ready

How to do it…

Part I – compiling and installing a Linphone binary from the repository

Part II – compiling and installing Linphone from source

Getting ready

How to do it…

8. The Internet of Things

Introduction

Location-based recipes – hooking up GPS

Getting ready

How to do it…

There's more...

Location-based recipes – Bluetooth LE and Beacons

Getting ready

How to do it…

There's more...

Using sensors and data with ThingSpeak

Getting ready

How to do it…

See also

Making things smarter – building a wireless digital picture frame

Getting ready

How to do it...

See also

9. The Black in Outer Space

Introduction

Grabbing the International Space Station flyover data and visualizing it

Getting ready

How to do it…

There's more…

Tracking using RTL-SDR

See also

Airplane tracking with RTL-SDR

Getting ready

How to do it…

There's more…

Satellite tracking using GPredict and RTL-SDR

Getting ready

How to do it…

There's more…

Satellite tracking using the SatNogs Network client / ground station and RTL-SDR

Getting ready

How to do it…

Adding other interfaces – ISS tracking and text to speech

Getting ready

How to do it…

There's more…

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部