O'Reilly logo

Rapid BeagleBoard Prototyping with MATLAB and Simulink by Dr.Fei Qin, Dr. Xuewu Dai

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

Interfacing sensors via digital I/O in Simulink

Congratulations, now the hardware system is ready to use. Let's get back to the software design. Here we will introduce the simpler approach—the Simulink method to drive the ZMotion sensor through the built-in BeagleBoard Support Package. The introduction of Simulink has been described in the previous chapter, based on which we will be able to achieve this aim quite easily.

First, let's start a new Simulink model and open the Simulink library by typing simulink in the command window of MATLAB. Locate Simulink Support Package for BeagleBoard Hardware in the Simulink library browser and click on it; you will easily see that the GPIO driver has already been provided by the GPIO Read and GPIO Write blocks. ...

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

Start Free Trial

No credit card required