Search Comments and Ratings

go

   
Date File Comment by Comment Rating
26 Sep 2014 Simulink Support Package for Raspberry Pi Hardware Credit-card sized, low-cost, single-board computer with audio and video input/output Author: MathWorks Simulink Team Murat Belge

sky1991: Do you have access to MATLAB R2014a? The Rasbian image used in R2013a support package for Raspberry Pi does not support Model B+ boards as this board was not available back then. We recently updated the R2014a support package to support Model B+ boards.

If you do not have access to R2014a MATLAB, you need to load a Raspbian Wheezy image to your board outside of MATLAB and make necessary modifications to the Rasbian image for Simulink compatibility.

Follow the getting started guide for Raspberry Pi to boot your board with Raspbian Wheezy: http://www.raspberrypi.org/help/quick-start-guide/

After booting the board, login to your board using a monitor and a keyboard and execute the following on a Linux shell:

$ sudo apt-get update
$ sudo apt-get install ibsdl1.2-dev alsa-utils espeak x11vnc guvcview i2c-tools libi2c-dev ssmtp ntpdate git-core v4l-utils cmake
$ cp /etc/ssh/sshd_config /home/pi/sshd_config.new
$ echo -e "\\n\\n# Turn off reverse DNS lookup\\nUseDNS no\\n" >> /home/pi/sshd_config.new
$ sudo mv /home/pi/sshd_config.new /etc/ssh/sshd_config

At this point reboot your board:
$ sudo shutdown -r now

After your board boots, launch MATLAB and test connectivity to your board:

>> h = raspberry_pi('<your board's ip address>')
>> h.connect

At this point you should see connection successful message on the MATLAB command line. Once you verify that connection is fine, you can start using your board with Simulink.

05 Sep 2014 Simulink Support Package for Raspberry Pi Hardware Credit-card sized, low-cost, single-board computer with audio and video input/output Author: MathWorks Simulink Team Murat Belge

Version 14.1.2 of the MATLAB Support Package for Raspberry Pi Hardware has been released. The updated support package contains full support for the new Raspberry Pi Model B+ board.

05 Sep 2014 MATLAB Support Package for Raspberry Pi Hardware Acquire data from Camera Board and other sensors connected to your Raspberry Pi Author: MathWorks MATLAB Hardware Team Murat Belge

Version 14.1.2 of the MATLAB Support Package for Raspberry Pi Hardware has been released. The updated support package contains full support for the new Raspberry Pi Model B+ board.

15 Jul 2014 Simulink Support Package for Raspberry Pi Hardware Credit-card sized, low-cost, single-board computer with audio and video input/output Author: MathWorks Simulink Team Murat Belge

Ravikiran: The Raspbian image that comes with Simulink Support Package for Raspberry Pi hardware is customized to work with Simulink features. You can find a comprehensive list of customizations in the comments section below. If you apply these customizations to your existing Raspbian image, you do not need to install our Raspbian image.

Here is the list of customizations:

Following Linux packages are installed on top of the base image: libsdl1.2-dev, alsa-utils, espeak, x11vnc, guvcview, i2c-tools, libi2c-dev, wiringPi, ssmtp, ntpdate.

Following additional modifications have been done:
* Add user "pi" to video group: "sudo usermod -a -G video pi"
* Load i2c module in /etc/modules (add line "i2c-dev")
* Comment out blacklisted items "spi-bcm2708" and "i2c-bcm2708" in /etc/modprobe.d/raspi-blacklist.conf
* Create /etc/modprobe.d/uvcvideo.conf and enable UVCVIDEO quirks
* Enable SSH using raspi-config
* Enable medium level overclocking using raspi-config
* Enable writing IP address configuration to the FAT partition of the SD card
* Enable speaking IP address when the board boots (/etc/rc.local)
* Turn off reverse DNS lookup for SSH (/etc/ssh/sshd_config)
* Set time zone to New York

19 Mar 2014 Simulink Support Package for Raspberry Pi Hardware Credit-card sized, low-cost, single-board computer with audio and video input/output Author: MathWorks Simulink Team Murat Belge

For those who are interested in using the Raspberry Pi camera board, the R2014a MATLAB Support Package for Raspberry Pi hardware provides a command line interface to capture images from the camera.

19 Feb 2014 Simulink Support Package for Raspberry Pi Hardware Credit-card sized, low-cost, single-board computer with audio and video input/output Author: MathWorks Simulink Team Murat Belge

For those who want to use Raspberry Pi Camera Board with Simulink:

The latest release of the Raspbian Wheezy image has V4L2 drivers for the Camera Board. This means that you can use the V4L2 Video Capture block in the Simulink block library for Raspberry Pi to capture images from the Raspberry Pi Camera Board. Here are the instructions:

1. Upgrade your Raspbian image to the latest to get the official V4L2 driver for Camera Board:

# sudo apt-get update
# sudo apt-get dist-upgrade
# sudo rpi-update

2. Reboot

# sudo reboot

3. After reboot, execute the following command to load the V4L2 driver for the Raspberry Pi Camera:

# sudo modprobe bcm2835-v4l2

After this step, you should see a /dev/video0 device (check by "ls -al /dev/vid*") that corresponds to the Camera Board. Now use the V4L2 Video Capture Block to capture images from this video device.

Note that you need to perform step 3 above every time you reboot your board. You can incorporate the command in step 3 into "/etc/rc.local" to automatically load the V4L2 driver at boot time.

10 Jan 2014 Simulink Support Package for Raspberry Pi Hardware Credit-card sized, low-cost, single-board computer with audio and video input/output Author: MathWorks Simulink Team Murat Belge

We are looking into Linux/Mac support.

23 Dec 2013 Simulink Support Package for Raspberry Pi Hardware Credit-card sized, low-cost, single-board computer with audio and video input/output Author: MathWorks Simulink Team Murat Belge

Francesco: Can you start MATLAB in "Administrator" mode and try the firmware update portion of the targetinstaller again? Your problem looks like an issue with permissions to query the removable drives.

28 Oct 2013 Embedded Coder Support Package for STMicroelectronics STM32F4-Discovery Board Generate code optimized for STM32F4-Discovery board Author: MathWorks Embedded Coder Team Murat Belge

Evgeniy: The STM32F4-Discovery board is only supported for R2013b or later.

26 Aug 2013 Simulink Support Package for Raspberry Pi Hardware Credit-card sized, low-cost, single-board computer with audio and video input/output Author: MathWorks Simulink Team Murat Belge

Just double click on it. If you have a MATLAB installed it should be opened by MATLAB.

Another way to install the Raspberry Pi support package is to start MATLAB in administrator mode and run "targetinstaller" on the MATLAB command line.

07 Aug 2013 Simulink Support Package for Raspberry Pi Hardware Credit-card sized, low-cost, single-board computer with audio and video input/output Author: MathWorks Simulink Team Murat Belge

RAJ: Is the download location for the firmware a UNC path? Try donwloading the firmware to a location in your local drive. Example: "C:\raspberrypi\firmware". Can you post what your download path was set to?

18 Jun 2013 Simulink Support Package for Arduino Hardware Student-priced microcontroller board Author: MathWorks Simulink Team Murat Belge

Support package installer is supported since R2012a. Type in "targetinstaller" at the MATLAB command prompt to launch the installer.

11 Jun 2013 Simulink Support Package for Raspberry Pi Hardware Credit-card sized, low-cost, single-board computer with audio and video input/output Author: MathWorks Simulink Team Murat Belge

Hugo: Can I have your Simulink model? This looks like a bug. I'd like to make sure it is fixed.

07 Jun 2013 Simulink Support Package for Raspberry Pi Hardware Credit-card sized, low-cost, single-board computer with audio and video input/output Author: MathWorks Simulink Team Murat Belge

Hugo:

I think the crackling / popping sound is originating from the fact that the sample rate of the model (32/48e3) is too fast for the Linux OS to keep up. It is strange that the ALSA driver itself does not report any underruns. In any case, I changed the frame size going out of the Sine Wave block to 256 that got rid of the problem.

There is one more issue in your model in that the input to the ALSA Audio Playback function must be a signed int16 which means that samples are in the range [2^15, 2^15-1). Your MATLAB code was scaling the samples to 2^16-1.

Finally, you do not need to use a MATLAB function to scale the sine wave. Change the amplitude of the Sine Wave block to 32000 and use a Data Type Conversion block to convert the output to int16. Get rid of the MATLAB function block. Note also that adding the Data Type conversion block before matrix concatenation reduces the amount of work CPU is doing by half when doing data conversion.

06 Jun 2013 Simulink Support Package for Raspberry Pi Hardware Credit-card sized, low-cost, single-board computer with audio and video input/output Author: MathWorks Simulink Team Murat Belge

Hugo:
I need some information to reproduce the issue you are facing.

1. What is the parameters of the sine wave block (samplet time, amplitude, etc.)?

2. What is the sampling rate of the ALSA Audio Playback block?

28 May 2013 Simulink Support Package for Raspberry Pi Hardware Credit-card sized, low-cost, single-board computer with audio and video input/output Author: MathWorks Simulink Team Murat Belge

Right click on the MATLAB icon or the MATLAB entry in the start menu and choose "Run as administrator" option.

29 Apr 2013 Raspberry Pi Driver Block SFunction Simple Digital Out SFunction example block showing how to use the WiringPi library Author: Joshua Hurst Murat Belge

29 Apr 2013 Access GPIO pins on BeagleBoard from Simulink This example shows how to access GPIO pins on the BeagleBoard using Simulink. Author: Michael Lundgren Murat Belge

Use external mode to see the data on a Simulink scope. Open Tools > Run on Target Hardware > Options menu from your Simulink model and check "Enable External mode" box. Build and run your model. If you connect the output port of your MATLAB function block to a Simulink scope, you will see the data on your host computer when you run your model. I recommend reading the "Getting started" demo.

23 Apr 2013 Simulink Support Package for Raspberry Pi Hardware Credit-card sized, low-cost, single-board computer with audio and video input/output Author: MathWorks Simulink Team Murat Belge

Joshua: The new Raspian Wheezy image is based on "2013-02-09-wheezy-raspbian.zip".

Following Linux packages are installed on top of the base image: libsdl1.2-dev, alsa-utils, espeak, x11vnc, guvcview, i2c-tools, libi2c-dev, wiringPi, ssmtp, ntpdate.

Following additional modifications have been done:
* Add user "pi" to video group: "sudo usermod -a -G video pi"
* Load i2c module in /etc/modules (add line "i2c-dev")
* Comment out blacklisted items "spi-bcm2708" and "i2c-bcm2708" in /etc/modprobe.d/raspi-blacklist.conf
* Create /etc/modprobe.d/uvcvideo.conf and enable UVCVIDEO quirks
* Enable SSH using raspi-config
* Enable medium level overclocking using raspi-config
* Enable writing IP address configuration to the FAT partition of the SD card
* Enable speaking IP address when the board boots (/etc/rc.local)
* Turn off reverse DNS lookup for SSH (/etc/ssh/sshd_config)
* Set time zone to New York

23 Apr 2013 Simulink Support Package for Raspberry Pi Hardware Credit-card sized, low-cost, single-board computer with audio and video input/output Author: MathWorks Simulink Team Murat Belge

Fabrice/Leonardo: Did you start MATLAB in administrator mode?

12 Apr 2013 Simulink Support Package for Raspberry Pi Hardware Credit-card sized, low-cost, single-board computer with audio and video input/output Author: MathWorks Simulink Team Murat Belge

We updated the firmware image for Raspberry Pi using the latest release of Raspbian Wheezy (base image 2013-02-09-wheezy-raspbian.zip). If your Raspberry Pi Model B has a Hynix memory chip (the black square RAM chip right in the middle Raspberry Pi board) and you are having difficulty booting your board, try the new firmware image. Launch "targetupdater" utility on MATLAB command line and follow instructions to update the firmware of your Raspberry Pi.

The firmware image uses 2 GB of the SD card. After booting your board with the new firmware, run "raspi-config" utility on your board and select "expand_rootfs" option to expand the firmware image to fill the rest of the SD card.

02 Apr 2013 Simulink Support Package for Raspberry Pi Hardware Credit-card sized, low-cost, single-board computer with audio and video input/output Author: MathWorks Simulink Team Murat Belge

We are looking into MAC/Linux support. Anybody else who wants Raspberry Pi support package to be available on MAC/Linux?

12 Mar 2013 Simulink Support Package for Raspberry Pi Hardware Credit-card sized, low-cost, single-board computer with audio and video input/output Author: MathWorks Simulink Team Murat Belge

If you are having issues with updating the firmware of your Raspberry Pi, take a look at the following installation and troubleshooting guide: http://www.mathworks.com/support/solutions/attachment.html?resid=1-LUYRC0&solution=1-LTA2JJ

12 Mar 2013 Simulink Support Package for Raspberry Pi Hardware Credit-card sized, low-cost, single-board computer with audio and video input/output Author: MathWorks Simulink Team Murat Belge

Attach a pair of speakers or headphones to the analog audio port of the Raspberry Pi board to hear Raspberry Pi speak its IP address when it boots. If you do not have a monitor connected to the Raspberry Pi board, this feature may come in handy.

08 Mar 2013 Simulink Support Package for Beagleboard Hardware (R2012b) Simulink block library for creating standalone applications for the BeagleBoard Author: MathWorks Simulink Team Murat Belge

We have gotten many requests for GPIO support. R2013a version of the BeagleBoard support package contains built-in support for accessing GPIO pins. If you are using R2012a or R2012b, take a look at "Access GPIO pins on BeagleBoard from Simulink" submssion in Filex change.

08 Oct 2012 Access GPIO pins on BeagleBoard from Simulink This example shows how to access GPIO pins on the BeagleBoard using Simulink. Author: Michael Lundgren Murat Belge

21 Sep 2012 Teaching Mechatronics with Low Cost Hardware: Webinar Examples Examples for the webinar "Teaching Mechatronics with Low Cost Hardware" Author: Davide Ferraro Murat Belge

18 Jun 2012 SSH From Matlab (updated) + SFTP/SCP Run commands on a remote machine from a Matlab session, via a secure shell. Author: David Freedman Murat Belge

For BeagleBoard users out there who is trying to connect to their board from within MATLAB using SSH. The BeagleBoard support package in R2012a has built-in support for SSH connection. The BeagleBoard support package uses "plink.exe" and "pscp.exe" utilities to talk to beagleboard. There is a demo called "Executing Remote Linux Commands" that goes over the API.

To install BeagleBoard downloadable support package, type in "targetinstaller" on the MATLAB command line.

27 Mar 2012 Simulink Support Package for Beagleboard Hardware (R2012a) Simulink block library for creating standalone applications for the BeagleBoard Author: MathWorks Simulink Team Murat Belge

31 Jan 2012 Embedded Coder Support Package for Beagle Board Simulink block library for creating standalone applications for the Beagle Board Author: MathWorks Classroom Resources Team Murat Belge

There are no GPIO blocks available for BeagleBoard in this support package. However, we are planning to add support for GPIO read/write in a future release.

There is no PWM on BeagleBoard (xM or Bx/Cx). You can emulate a basic PWM using GPIO but this would be a poor substitute.

BeagleBone support is planned for a feature release.

10 Nov 2011 Embedded Coder Support Package for Beagle Board Simulink block library for creating standalone applications for the Beagle Board Author: MathWorks Classroom Resources Team Murat Belge

There is no Simulink video display block to support display through the HDMI output port.

15 Jul 2011 Embedded Coder Support Package for Beagle Board Simulink block library for creating standalone applications for the Beagle Board Author: MathWorks Classroom Resources Team Murat Belge

The Angstrom distribution has V4L2 drivers for a set of Webcams. The UVC Webcams, for example, are well-supported. I use a Logitech Webcam C6000 and it works well. One thing you might try is to see if the kernel module for UVC webcam is loaded. Look at the following link: https://wiki.archlinux.org/index.php/Webcam_Setup. This is for Ubuntu but Angstrom is similar.

Contact us