HAPPY BOOKSGIVING
Use code BOOKSGIVING during checkout to save 40%-55% on books and eBooks. Shop now.
Register your product to gain access to bonus material or receive a coupon.
This EPUB will be accessible from your Account page after purchase.
This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.
The BeagleBone Black Primer
Master BeagleBone Black:
Today’s most powerful low-cost embedded development platform!
You can do amazing things with BeagleBone Black. Get started in just five minutes: all you need is a USB cable and this easy, hands-on primer!
Brian McLaughlin teaches you enough to be seriously dangerous. Start with the simplest embedded programming concepts. Explore BeagleBone Black’s capabilities, and learn all the essentials, from controlling I/O to establishing network connections.
Then, step by step, master increasingly advanced techniques with the Cloud9 IDE and BoneScript…Integrate external hardware…Install Linux or Android…Use Cape expansion boards to do even more.
Don’t just learn it: do it. This guide is packed with projects, from weather stations, to car computers, to a “capstone” project using Software Defined Radio to capture signals from local airspace and orbiting satellites!
You won’t just put BeagleBone Black to work: you’ll start imagining great projects of your own. And then you’ll build them.
Discover how BeagleBone Black works, and what it can do
Brian McLaughlin is an engineer by profession and by hobby. Building on a solid foundation in software, he was first exposed to advanced hardware topics while working on the Hubble Space Telescope. After working for Lockheed Martin, he joined NASA, where he’s supported many of NASA’s most exciting missions. He holds a B.S. in computer science (North Carolina State University) and an M.S. in systems engineering (University of Maryland). He’s also written for GeekDad and is a member of the growing Maker community.
&>
Introduction
Who This Book Is For ....................................................................1
How This Book Is Organized .........................................................2
Conventions Used in This Book .....................................................3
Let Me Know What You Think .......................................................3
Chapter 1 Embedded Computers and Electronics ......................... 5
What Are Embedded Electronics? ..................................................5
Arduino .........................................................................................9
What Should Readers Get Out of This Book? ...............................12
Chapter 2 Introduction to the Hardware ................................... 15
A Short Lineage of the BeagleBone Black .....................................15
Chapter 3 Getting Started ....................................................... 25
Setting Up and Saying “Hello, World!” ........................................26
Connecting to Ethernet ................................................................32
Chapter 4 Hardware Basics ..................................................... 39
Electronics Basics: Voltage, Current, Power, and Resistance .........39
The Short Circuit .........................................................................43
Chapter 5 A Little Deeper into Development .............................. 57
Interpreted Code .........................................................................57
Compiled Code ...........................................................................65
Chapter 6 Trying Other Operating Systems ............................... 71
History of the Linux World: Part I ................................................71
Picking an Operating System .......................................................73
Loading the microSD Card ..........................................................73
Chapter 7 Expanding the Hardware Horizon .............................. 81
Binary Basics ...............................................................................81
Serial Communications ................................................................91
Chapter 8 Low-Level Hardware and Capes ................................. 97
Linux Hardware Through The File System .....................................97
Hardware in the File System .......................................................100
One Pin, Multiple Functions ......................................................103
Hardware Configuration ............................................................108
Chapter 9 Interacting with Your World, Part 1: Sensors .......... 113
Sensor Basics ............................................................................113
Chapter 10 Remote Monitoring and Data Collection ................... 127
Project Outline ..........................................................................127
Wiring Up The Project ...............................................................130
Seeing the Light .........................................................................134
Publishing the Sensor Data ........................................................137
Start Collecting Data .................................................................142
Chapter 11 Interacting with Your World, Part 2: Feedback and Actuators 149
Controlling Current ...................................................................149
Blinking to Fading .....................................................................156
Vibration Motors .......................................................................159
Servo Motors ............................................................................161
Stepper Motors .........................................................................165
Chapter 12 Computer Vision ................................................... 171
Connecting a Camera ................................................................171
Utilizing OpenCV Libraries .........................................................177
A Better Photo Booth ................................................................178
Cascade Classifiers ....................................................................180
Tracking a Face .........................................................................182
Chapter 13 Sniffing Out Car Trouble ......................................... 189
Car Computers ..........................................................................189
Interfacing to the Car ................................................................191
Reading the Car’s Status ............................................................198
Interpreting the Data .................................................................199
Chapter 14 Ground Control to Major Beagle ............................. 205
Radio Data ...............................................................................205
WiFi ..........................................................................................210
Software Defined Radio .............................................................212
Grabbing Libraries with Git ........................................................215
Radio Testing ............................................................................216
Calibrating the Radio ................................................................219
Listening to Aviation Data .........................................................221
BeagleBone Black Air Traffic Control Station..............................223
Chapter 15 Moving Forward .................................................... 225
Project Ideas .............................................................................226
Tools ........................................................................................230
Resources ..................................................................................230
Index ................................................................... 233