Learning BeagleBone Python Programming

Unleash the potential of BeagleBone using Python

Learning BeagleBone Python Programming

Alexander Hiam

1 customer reviews
Unleash the potential of BeagleBone using Python
Mapt Subscription
FREE
$29.99/m after trial
eBook
$22.40
RRP $31.99
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$22.40
$39.99
$29.99p/m after trial
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Code Files
Preview in Mapt

Book Details

ISBN 139781784399702
Paperback196 pages

Book Description

BeagleBone is a barebone computer that can be configured and customized for different applications and is almost half the price of a standard computer. This book will cover the basics of how BeagleBone Black's hardware interface subsystems work, and can be controlled using two popular Python libraries for BeagleBone Black. You will be introduced to BeagleBone Black's GPIO, PWM, ADC, UART, SPI, I2C, and eQEP subsystems. We will then dive deep into more complex built-in peripherals, demonstrating different ways to receive input from a user including buttons, potentiometers, and rotary encoders with the eQEP module. We will also learn about interfacing with external devices; this will be demonstrated using the serial modules to interface with external devices such as temperature sensors and accelerometers. Towards the end of the book, we will present a couple of real-world problems and demonstrate how to solve them with the skills you've acquired.

Table of Contents

Chapter 1: Before We Begin
An overview of BeagleBone
Pulse width modulation
Tools and additional hardware
The BeagleBone design
Board comparison
Helpful resources
Summary
Chapter 2: Getting Started
Initial setup
Updating your Debian image
Connecting to your BeagleBone
Connecting to the Internet
Using the serial console
Updating your software
The PyBBIO library
The Adafruit_BBIO library
Summary
Chapter 3: Digital Outputs
GPIO modules
Interactive GPIO
Calculating resistor values for LEDs
Driving higher currents from GPIO pins
Blink
Taking advantage of the OS
Summary
Chapter 4: PWM and ADC Subsystems
PWM
ADC
Your first robot
Summary
Chapter 5: User Input
Buttons
Potentiometers
Summary
Chapter 6: Program Output
LED displays
SMTP
Character LCD
Summary
Chapter 7: Serial Communication
Serial communication
UART
I2C
SPI
Summary
Chapter 8: Interfacing with External Devices
Accelerometers
Summary
Chapter 9: Using the Network
TCP/IP
HTTP
IoT Services
Summary
Chapter 10: A Practical Example
Weather station
Connecting to the Internet
Weather alerts
Summary

What You Will Learn

  • Set up BeagleBone Black for development with the PyBBIO and Adafruit_BBIO Python libraries
  • Understand how each of BeagleBone Black's hardware interface subsystems work
  • Connect many different types of hardware to BeagleBone Black
  • Use Python code to control and communicate with external hardware
  • Write programs that interact with the physical world around you

Authors

Table of Contents

Chapter 1: Before We Begin
An overview of BeagleBone
Pulse width modulation
Tools and additional hardware
The BeagleBone design
Board comparison
Helpful resources
Summary
Chapter 2: Getting Started
Initial setup
Updating your Debian image
Connecting to your BeagleBone
Connecting to the Internet
Using the serial console
Updating your software
The PyBBIO library
The Adafruit_BBIO library
Summary
Chapter 3: Digital Outputs
GPIO modules
Interactive GPIO
Calculating resistor values for LEDs
Driving higher currents from GPIO pins
Blink
Taking advantage of the OS
Summary
Chapter 4: PWM and ADC Subsystems
PWM
ADC
Your first robot
Summary
Chapter 5: User Input
Buttons
Potentiometers
Summary
Chapter 6: Program Output
LED displays
SMTP
Character LCD
Summary
Chapter 7: Serial Communication
Serial communication
UART
I2C
SPI
Summary
Chapter 8: Interfacing with External Devices
Accelerometers
Summary
Chapter 9: Using the Network
TCP/IP
HTTP
IoT Services
Summary
Chapter 10: A Practical Example
Weather station
Connecting to the Internet
Weather alerts
Summary

Book Details

ISBN 139781784399702
Paperback196 pages
Read More
From 1 reviews

Read More Reviews