You are previewing BeagleBone By Example.
O'Reilly logo
BeagleBone By Example

Book Description

Learn how to build physical computing systems using BeagleBone Black and Python

About This Book

  • Get to grips with the fundamentals of BeagleBone

  • Leverage Python scripts to program BeagleBone for your requirements

  • Build four exciting projects, from home automation to a tele-controlled robot

  • Who This Book Is For

    This book is intended for hobbyists and consumers who wish to create impressive projects using BeagleBone. You must be familiar with Python programming.

    What You Will Learn

  • Program on BeagleBone Black using Python

  • Interface sensors and actuators to BeagleBone Black

  • Build your own real-time physical computing systems

  • Connect physical computing systems to cloud servers

  • Build your own home automation and home security system

  • Build your own tele-controlled robot with real-time video streaming

  • In Detail

    BeagleBone is a low cost, community-supported development platform to develop a variety of electronic projects. This book will introduce you to BeagleBone and get you building fun, cool, and innovative projects with it. Start with the specifications of BeagleBone Black and its operating systems, then get to grips with the GPIOs available in BeagleBone Black. Work through four types of exciting projects: building real-time physical computing systems, home automation, image processing for a security system, and building your own tele-controlled robot and learn the fundamentals of a variety of projects in a single book.

    By the end of this book, you will be able to write code for BeagleBone in order to operate hardware and impart decision-making capabilities with the help of efficient coding in Python.

    Style and approach

    This book is a step by step guide that will walk you through the fundamentals of building different projects using 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

    1. BeagleBone By Example
      1. Table of Contents
      2. BeagleBone By Example
      3. Credits
      4. About the Author
      5. About the Reviewer
      6. www.PacktPub.com
        1. eBooks, discount offers, and more
          1. Why subscribe?
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      8. 1. Getting Started with BeagleBone
        1. Prerequisites
        2. BeagleBone Black – a single board computer
        3. Getting to know your board – BeagleBone Black
        4. Hardware specification of BeagleBone Black
        5. Setting up your BeagleBone board
        6. Installing operating systems
        7. Booting your BeagleBone board from a SD card
        8. Logging into the board via SSH over Ethernet
        9. Working on Linux Shell
        10. Writing your own Python program on BeagleBone board
        11. Summary
      9. 2. Circuit Fundamentals and GPIO
        1. Prerequisites
        2. Usage of breadboards
        3. Switches and LEDs
          1. Momentary switch
          2. Toggle switch
        4. GPIOs
        5. Adding libraries to Python
        6. Using Python to access GPIOs
        7. Project – blinking an LED using Python script
        8. Summary
      10. 3. Introduction to Physical Computing Systems
        1. Prerequisites
        2. Introducing physical computing systems
        3. Basic elements of physical computing systems
          1. Application areas
        4. Project – toggle LED using a push button
        5. Summary
      11. 4. Real-time Physical Computing Systems Using BeagleBone
        1. Prerequisites
          1. Materials needed
        2. Temperature sensor
          1. How do LM35 sensors work?
        3. Temperature sensing using a LM35 sensor
        4. Summary
      12. 5. Connecting Physical Computing Systems to the Internet
        1. Prerequisites
          1. Materials needed
        2. Giving Internet access to your BeagleBone board
        3. Adding Wi-Fi to the BeagleBone board
        4. Intermediate level project: An e-mail alert fire alarm
        5. Advanced level project: Uploading sensor data to a web cloud
        6. Summary
      13. 6. Home Automation Using BeagleBone
        1. Prerequisites
          1. Materials needed
        2. The structure of home automation systems
        3. Introduction to web servers
        4. Python-Flask on BeagleBone Black
        5. Transistors, relays, power switches
        6. Advanced project: An Internet controlled power switch – controlling an AC bulb from the Internet
          1. Setting up port forwarding
        7. Summary
      14. 7. Working with Images Using Computer Vision
        1. Prerequisites
          1. Materials needed
        2. Adding a USB camera to a BeagleBone board
        3. OpenCV – introduction and setting up on the BeagleBone board
          1. Installing OpenCV on Debian on a BeagleBone board
        4. Project: Image capture from a camera using Python and OpenCV
        5. Summary
      15. 8. Home Security Systems Using BeagleBone Black
        1. Prerequisites
        2. PIR sensors
          1. How PIR sensors work
        3. Motion detection using PIR sensors
        4. Sending e-mail with an attachment from BeagleBone Black
        5. Advanced project – Motion-based home security alert system
        6. Summary
      16. 9. Exploring Robotics
        1. Introduction to robotics
        2. Elements, structure and operation of robotic systems
        3. Application areas
          1. Industrial robotics
          2. Domestic robots
          3. Medical robotics
          4. Mobile robots
          5. Social and humanoid robots
        4. Differential-drive robots
        5. Summary
      17. 10. Building Your Own Robot
        1. Prerequisites
          1. Materials Needed
        2. DC motors
        3. L293D motor driver IC
        4. Live video streaming on the BeagleBone board
        5. Advanced project – a telecontrolled robot with live video streaming
        6. Summary
      18. Index