I first noticed the BeagleBone in 2011. At the time, most of my projects involved the Arduino, so I was quite curious when I saw a board that looked a little bit like an Arduino but acted more like a full computer. It seemed a bit complicated, so I was initially skeptical that I would be able to get anything working with it. Nonetheless, I ordered a BeagleBone and eagerly anticipated its arrival.
When it arrived, I was first amused by its dimensions. It fit in the palm of my hand and could even be enclosed within an Altoids tin. In fact, it fit almost too perfectly inside the tin. The radius of the rounded corners seemed to indicate that it was designed for such an enclosure. I’d later learn that, indeed it was designed that way.
After a lot of Internet searching and brushing up on how to write scripts within Linux, I had the BeagleBone blinking an LED, a common first step with hardware development platforms. Soon thereafter, I was reading the state of buttons, pulling images from a webcam, printing text with a receipt printer, and connecting the board to the Internet.
My first big project with the BeagleBone was called the Descriptive Camera. It worked a lot like a regular camera: point it at a scene that you want to capture and then hit the shutter button. But that’s where the similarities with a camera end. Instead of saving a photograph, this prototype camera outputs a text description of the scene that you’ve captured. And it even spits it out of the front of the camera like a Polaroid print.
The Descriptive Camera didn’t use any fancy computer vision algorithms to convert the image into text. It actually used crowd sourcing. After hitting the shutter button, the photo would be uploaded to Amazon’s Mechanical Turk service, where you can pay people online to do small tasks like transcribing audio, identifying terms in a contract, or in this case, describe a photo. After the person submitted the text, it would be outputted by the camera’s printer.
The BeagleBone was the perfect platform for this endeavor. Making a project that brings together a USB webcam, an Internet connection, buttons, LEDs, and the receipt printer, all while enclosing it in a small box would have been very difficult with many of the other platforms out there. As a tool, the BeagleBone is so capable and flexible that I could have created this same exact project in so many different ways.
But I know from experience that having a tool that’s so versatile can make things hard when you’re just starting out. There’s no right way to do any single thing, so you can feel paralyzed before you’ve even begun.
My hope is that this book will get you through that initial phase. It will give you just enough of the basics in a few different realms so that you can start digging deeper on your own. Having a few different ways to do the same thing means you can settle on the way that you’re most comfortable with and focus on making your vision a reality.
The following typographical conventions are used in this book:
Constant width
Constant width bold
Constant width italic
This icon signifies a tip, suggestion, or general note.
This icon indicates a warning or caution.
This book is here to help you get your job done. In general, you may use the code in this book in your programs and documentation. You do not need to contact us for permission unless you’re reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing a CD-ROM of examples from Make: books does require permission. Answering a question by citing this book and quoting example code does not require permission. Incorporating a significant amount of example code from this book into your product’s documentation does require permission.
We appreciate,but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN. For example: “Getting Started With BeagleBone by Matt Richardson (Maker Media). Copyright 2014, 978-1-4493-4537-2.”
If you feel your use of code examples falls outside fair use or the permission given here, feel free to contact us at [email protected].
Safari Books Online is an on-demand digital library that delivers expert content in both book and video form from the world’s leading authors in technology and business.
Technology professionals, software developers, web designers, and business and creative professionals use Safari Books Online as their primary resource for research, problem solving, learning, and certification training.
Safari Books Online offers a range of plans and pricing for enterprise, government, education, and individuals.
Members have access to thousands of books, training videos, and prepublication manuscripts in one fully searchable database from publishers like O’Reilly Media, Prentice Hall Professional, Addison-Wesley Professional, Microsoft Press, Sams, Que, Peachpit Press, Focal Press, Cisco Press, John Wiley & Sons, Syngress, Morgan Kaufmann, IBM Redbooks, Packt, Adobe Press, FT Press, Apress, Manning, New Riders, McGraw-Hill, Jones & Bartlett, Course Technology, and hundreds more. For more information about Safari Books Online, please visit us online.
Please address comments and questions concerning this book to the publisher:
Make: |
1005 Gravenstein Highway North |
Sebastopol, CA 95472 |
800-998-9938 (in the United States or Canada) |
707-829-0515 (international or local) |
707-829-0104 (fax) |
Make: unites, inspires, informs, and entertains a growing community of resourceful people who undertake amazing projects in their backyards, basements, and garages. Make: celebrates your right to tweak, hack, and bend any technology to your will. The Make: audience continues to be a growing culture and community that believes in bettering ourselves, our environment, our educational system—our entire world. This is much more than an audience, it’s a worldwide movement that Make is leading—we call it the Maker Movement.
For more information about Make:, visit us online:
Make: magazine: http://makezine.com/magazine/ |
Maker Faire: http://makerfaire.com |
Makezine.com: http://makezine.com |
Maker Shed: http://makershed.com/ |
We have a web page for this book, where we list errata, examples, and any additional information. You can access this page at:
http://oreil.ly/Getting-Started-BeagleBone |
To comment or ask technical questions about this book, send email to:
[email protected] |
This book was updated in July 2014 to cover Revision C of the BeagleBone Black as well as the move from Ångström to Debian as the default Linux distribution for BeagleBone. Reader errata that was current as of that date was also resolved.
We’d like to thank a few people who have provided their knowledge, support, advice, and feedback to Getting Started with BeagleBone:
Brian Jepson |
Marc de Vinck |
Jason Kridner |
Gerald Coley |
Tom Igoe |
Clay Shirky |
John Schimmel |
Phillip Torrone |
Limor Fried |
Justin Cooper |
Andrew Rossi |