Rapid BeagleBoard Prototyping with MATLAB and Simulink

Rapid BeagleBoard Prototyping with MATLAB and Simulink
eBook: $17.99
Formats: PDF, PacktLib, ePub and Mobi formats
save 15%!
Print + free eBook + free PacktLib access to the book: $47.98    Print cover: $29.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Table of Contents
Sample Chapters
  • Develop and validate your own embedded audio/video applications rapidly with Beagleboard
  • Create embedded Linux applications on a pure Windows PC
  • Full of illustrations, diagrams, and tips for rapid Beagleboard prototyping with clear, step-by-step instructions and hands-on examples

Book Details

Language : English
Paperback : 152 pages [ 235mm x 191mm ]
Release Date : October 2013
ISBN : 1849696047
ISBN 13 : 9781849696043
Author(s) : Dr Xuewu Dai, Dr Fei Qin
Topics and Technologies : All Books, Application Development, Enterprise Products and Platforms, Other

Table of Contents

Chapter 1: Introducing BeagleBoard
Chapter 2: Installing Linux on the BeagleBoard
Chapter 3: C/C++ Development with Eclipse on Windows
Chapter 4: Automatic Code Generation
Chapter 5: Digital I/O and Serial Communication
Chapter 6: Voice Recognition
Chapter 7: Digital Video-Based Motion Detection
Appendix: Wrapping Up
    • Chapter 2: Installing Linux on the BeagleBoard
      • Setting up the hardware
        • Compulsory hardware
        • Required hardware for rapid prototyping in this book
        • Connecting our components
      • Installing software and tools on a Windows 7 PC
        • Target and host PC systems
        • Finding the COM port for a RS232-USB adapter cable
        • Configuring the IP address of the host PC
        • Installing MATLAB and the BeagleBoard support package
          • What are MATLAB and Simulink
          • Why we use MATLAB/Simulink for rapid prototyping
      • Installing Ubuntu for BeagleBoard on a Windows 7 PC
      • Configuring BeagleBoard
      • First interaction with the BeagleBoard
        • Installing PuTTY on a Windows PC
        • Logging into BeagleBoard from a Windows PC
        • Logging in via a serial-USB connection
      • Using Win32 Disk Imager to create multiple microSD cards
      • Summary
      • Chapter 3: C/C++ Development with Eclipse on Windows
        • Windows-based cross-compiler
          • Installing Sourcery CodeBench Lite in Windows
          • Verifying the installation
          • Verifying the compiler
        • Mac and Linux users
        • Installing Eclipse IDE on Windows 7
          • Installing the GNU ARM Eclipse plugin
          • Installing Remote System Explorer (RSE)
          • Connecting to a BeagleBoard in RSE
        • Build your first Hello World! program
          • Creating your first project in Eclipse
          • Configuring the cross-compiler and the C/C++ build
          • Compiling our application
          • Transferring program files to a BeagleBoard
          • Running programs on the BeagleBoard
          • Running and debugging remotely with Eclipse
        • Summary
        • Chapter 4: Automatic Code Generation
          • MATLAB code generation
            • MATLAB and m-language
            • Code generation workflow in MATLAB
            • Selecting a compiler for MATLAB Coder
            • C/C++ code generation with MATLAB Coder
          • Creating BeagleBoard applications in Eclipse
            • Creating an Eclipse project for BeagleBoard applications
            • Running the executable at the BeagleBoard
          • Simulink code generation
            • A Simulink model of a music player
            • Building the Simulink model
            • Writing a Simulink device driver block for a BeagleBoard
            • Configuring the model to run on a BeagleBoard
            • Running the music player on the BeagleBoard
            • Playing music without Simulink
            • Tuning model parameters on the fly
            • Tuning model parameters through GUIs
            • Other things to try
          • Summary
          • Chapter 5: Digital I/O and Serial Communication
            • IR sensor hardware
            • Voltage shifting
            • Interfacing sensors via digital I/O in Simulink
            • Interfacing sensors via a serial port in C
            • MATLAB-based algorithm integration
            • Other things to try
            • Summary
            • Chapter 6: Voice Recognition
              • Defining the voice recognition task
              • Configuration of the voice recognition system
              • Digital audio signals
              • Handling audio in MATLAB/Simulink
              • Frame-based signal processing in Simulink
              • Structure of a voice recognition system
              • Feature extraction
              • Training session
                • Voice acquisition and segmentation
                • Vector Quantization (VQ) training
              • Recognition session
              • Running the voice recognition application
              • Performance optimization by parameter tuning
              • Other things to try
              • References
              • Summary
              • Chapter 7: Digital Video-Based Motion Detection
                • Video input: Digital camera hardware connection
                • Video acquisition: Software driver
                • Motion detection algorithm
                • Implementation algorithm in Simulink
                  • Grayscale image
                  • Image enhancement
                  • Detection of the moving area
                • Parameter optimization
                • Summary
                • Appendix: Wrapping Up
                  • A brief review of what we have learned
                  • Ideas for next-step projects
                    • Expanding the IR motion detector to include verbal alarms
                    • Voice-controlled light switch
                      • Voice biometric authentication systems
                      • 2D Ball tracking
                      • Gesture-controlled devices
                  • Useful references and websites

                  Dr Xuewu Dai

                  Dr Xuewu Dai graduated (BEng) in Electronic Engineering and received his MSc in Computer Science, both from the Southwest University, Chongqing, China, in 1999 and 2003, respectively, and completed his PhD study at the School of Electrical and Electronic Engineering, University of Manchester, in 2008. He joined the School of Electronic and Information Engineering, Southwest University, as a Lecturer Assistant in 2002 and did research projects at University College London and University of Oxford. As a researcher and R&D engineer in signal processing and dynamic system modeling, he has over 10 years' experience in MATLAB/Simulink simulation and embedded software development. More recently, he has been actively involved in wireless sensor actuator networks for various research and industrial projects (such as condition monitoring of aircraft engines, buildings, DFIG wind generators, CAN field-bus for SCADA, and optic sensors for water quality monitoring).

                  Dr Fei Qin

                  Dr Fei Qin is currently an Assistant Professor in the Department of Electronic and Communications, University of Chinese Academy of Science, Beijing, China. He received his PhD degree from University College London, UK, in 2012. Prior to the start of his PhD, he was working for Crossbow Technology, Beijing Rep. Office as a Sr Application Engineer. He has been working on the development of embedded systems for many different products and applications for almost ten years, including wireless network, sensor, and radar systems.

                  Code Downloads

                  Download the code and support files for this book.

                  Submit Errata

                  Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


                  - 3 submitted: last submission 20 May 2014

                  Errata type: Graphics | Page 98

                  Please refer to the previous screenshot for the Simulink model VocRcgBB_Trn_v2.mdl. The revised program has been uploaded.

                  Errata type: Technical | Page 104

                  Section: Running the voice recognition application

                  Step number 3: "When you finish, stop and close the training model. Two new variables, trsOFF and codebkOFF, should appear in the MATLAB workspace."

                  should read: "When you finish, stop and close the training model. Two new variables, trsOFF and trsON, should appear in the MATLAB workspace."

                  Errata type: Technical | Page 95

                  The code line: "framedSig2 = diag(h) * framedSig1;"

                  should be: "framedSig2 = diag(h) * framedSig;"

                  The number "1" will not be there in the framedSig variable.

                  Sample chapters

                  You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                  Frequently bought together

                  Rapid BeagleBoard Prototyping with MATLAB and Simulink +    Oracle Database 12c Backup and Recovery Survival Guide =
                  50% Off
                  the second eBook
                  Price for both: $39.60

                  Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                  What you will learn from this book

                  • Understand rapid prototyping on a Windows host, including Matlab/Simulink code generation for Beagleboard
                  • Set up a cross-development environment on Windows for Beagleboard
                  • Access Beagleboard’s GPIO pins and RS232 communication in Matlab and Simulink
                  • Develop your own S-function block in Simulink to access Beagleboard’s hardware devices
                  • Create an audio player and equalizer in Simulink, including audio file reading
                  • Adjust the parameters of your target system on-the-fly for the purpose of performance optimization
                  • Penetrate into an infrared sensor in Matlab/Simulink for smart home applications
                  • Build a video motion detection system for security applications

                  In Detail

                  As an open source embedded single-board computer with many standard interfaces, Beagleboard is ideal for building embedded audio/video systems to realize your practical ideas. The challenge is how to design and implement a good digital processing algorithm on Beagleboard quickly and easily without intensive low-level coding.

                  Rapid BeagleBoard Prototyping with MATLAB and Simulink is a practical, hands-on guide providing you with a number of clear, step-by-step exercises which will help you take advantage of the power of Beagleboard and give you a good grounding in rapid prototyping techniques for your audio/video applications.

                  Rapid BeagleBoard Prototyping with MATLAB and Simulink looks at rapid prototyping and how to apply these techniques to your audio/video applications with Beagleboard quickly and painlessly without intensive manual low-level coding. It will take you through a number of clear, practical recipes that will help you to take advantage of both the Beagleboard hardware platform and Matlab/Simulink signal processing. We will also take a look at building S-function blocks that work as hardware drivers and interfaces for Matlab/Simulink. This gives you more freedom to explore the full range of advantages provided by Beagleboard.

                  By the end of this book, you will have a clear idea about Beagleboard and Matlab/Simulink rapid prototyping as well as how to develop voice recognition systems, motion detection systems with I/O access, and serial communication for your own applications such as a smart home.


                  This book is a fast-paced guide with practical, hands-on recipes which will show you how to prototype Beagleboard-based audio/video applications using Matlab/Simlink and Sourcery Codebench on a Windows host.

                  Who this book is for

                  Rapid BeagleBoard Prototyping with MATLAB and Simulink is great for students and academic researchers who have practical ideas and who want to build a proof-of-concept system on an embedded hardware platform quickly and efficiently. It is also useful for product design engineers who want to ratify their applications and reduce the time-to-market. It is assumed that you are familiar with Matlab/Simulink and have some basic knowledge of computer hardware. Experience in Linux is favoured but not necessary, as our software development is purely on a Windows host.

                  Code Download and Errata
                  Packt Anytime, Anywhere
                  Register Books
                  Print Upgrades
                  eBook Downloads
                  Video Support
                  Contact Us
                  Awards Voting Nominations Previous Winners
                  Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                  Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software