O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Programming and Customizing the Multicore Propeller Microcontroller: The Official Guide

Book Description

The Only Official Guide to the Parallax Multicore Propeller Microcontroller

Written by a team of Propeller experts, this authoritative guide shows you how to realize your design concepts by taking full advantage of the multicore Propeller microcontroller's unique architecture. The book begins with a review of the Propeller hardware, software, and Spin language so you can get started right away. Programming and Customizing the Multicore Propeller Microcontroller: The Official Guide is filled with a wide variety of step-by-step, hands-on projects. Put your ideas into production when you learn how to:

  • Debug code for multiple cores
  • Understand how the Propeller interacts with different sensors
  • Wirelessly network Propeller chips
  • Build a balancing robot and control it with computer vision
  • Develop networking applications using an off-the-shelf Ethernet chip
  • Create a portable multivariable GPS tracking and data logging device
  • Use the Propeller as a remote virtual peripheral for media applications
  • Create a Propeller-powered HVAC green house model
  • Synthesize speech with the Propeller

Experience more of the process at mhprofessional.com/propeller

Table of Contents

  1. Cover Page
  2. Programming and Customizing the Multicore Propeller™ Microcontroller
  3. Copyright Page
  4. Dedication
  5. Contents
  6. About the Authors
  7. Foreword
  8. Introduction
  9. Chapter 1 The Propeller Chip Multicore Microcontroller
    1. Introduction
    2. Multicore Defined
    3. Why Multicore?
    4. Multicore Propeller Microcontroller
    5. Summary
    6. Exercises
  10. Chapter 2 Introduction to Propeller Programming
    1. Introduction
    2. What’s the Secret?
    3. Ready to Dive In?
    4. Let’s Get Connected!
    5. Your First Propeller Application
    6. A Blinking LED
    7. RAM versus EEPROM
    8. A More Powerful Blink
    9. All Together Now
    10. Wrapping It Up
    11. Timing Is Everything
    12. Sizing the Stack
    13. Propeller Objects and Resources
    14. Summary
    15. Exercises
  11. Chapter 3 Debugging Code for Multiple Cores
    1. Propeller Features That Simplify Debugging
    2. Object Design Guidelines
    3. Common Multiprocessor Coding Mistakes
    4. Survey of Propeller Debugging Tools
    5. Debugging Tools Applied to a Multiprocessing Problem
    6. Summary
    7. Exercises
  12. Chapter 4 Sensor Basics and Multicore Sensor Examples
    1. Introducing Sensors by Their Microcontroller Interfaces
    2. On/Off Sensors
    3. Resistive, Capacitive, Diode, Transistor, and Other
    4. Pulse and Duty Cycle Outputs
    5. Frequency Output
    6. Voltage Output
    7. Synchronous Serial
    8. Asynchronous Serial
    9. Questions about Processing and Storing Sensor Data
    10. Summary
    11. Exercises
  13. Chapter 5 Wirelessly Networking Propeller Chips
    1. Introduction
    2. Overview of Networking and XBee Transceivers
    3. Hardware Used in This Chapter
    4. Testing and Configuring the XBee
    5. Sending Data from the Propeller to the PC
    6. Polling Remote Nodes
    7. Using the XBee API Mode
    8. A Three-Node, Tilt-Controlled Robot with Graphical Display
    9. Summary
    10. Exercise
  14. Chapter 6 DanceBot, a Balancing Robot
    1. Introduction
    2. The Challenge
    3. Building the DanceBot
    4. Controlling the DanceBot
    5. Summary
    6. Exercises
  15. Chapter 7 Controlling a Robot with Computer Vision
    1. Introduction
    2. Understanding Computer Vision
    3. PropCV: A Computer Vision System for the Propeller
    4. Apply Filters and Track a Bright Spot in Real Time
    5. Following a Line with a Camera
    6. Track a Pattern
    7. State-of-the-Art Computer Vision with OpenCV
    8. OpenCV and Propeller Integration
    9. Summary
    10. Exercises
  16. Chapter 8 Using Multicore for Networking Applications
    1. Introduction
    2. Ethernet and Internet Protocols
    3. EtherX Add-in Card for the Propeller-Powered HYDRA
    4. Creating a Simple Networked Game
    5. Summary
    6. Exercises
  17. Chapter 9 Portable Multivariable GPS Tracking and Data Logger
    1. Introduction
    2. Overview of the Sensors
    3. Main Spin Object
    4. Experiment
    5. Summary
    6. Exercises
  18. Chapter 10 Using the Propeller as a Virtual Peripheral for Media Applications
    1. Introduction
    2. Overview, Setup, and Demo
    3. System Architecture and Constructing the Prototype
    4. Remote Procedure Call Primer
    5. Virtual Peripheral Driver Overview
    6. Client /Host Console Development
    7. Exploring the Command Library to the Slave/Server
    8. Enhancing and Adding Features to the System
    9. Exploring Other Communications Protocols
    10. Summary
    11. Exercises
  19. Chapter 11 The HVAC Green House Model
    1. Introduction
    2. Exploring the Problem
    3. The HVAC Green House Model
    4. Summary
    5. Exercises
  20. Chapter 12 Synthesizing Speech with the Propeller
    1. Introduction
    2. Using Spectrographs to “See” Speech
    3. Exploring the VocalTract Object
    4. Summary
    5. Exercises
  21. Appendix A Propeller Language Reference
    1. Categorical Listing of Propeller Spin Language Elements
    2. Categorical Listing of Propeller Assembly Language
    3. Reserved Word List
  22. Appendix B Unit Abbreviations
  23. Index