Rank: 4289 based on 23 downloads (last 30 days) and 1 file submitted
photo

Michael Lundgren

E-mail

Personal Profile:

 

Watch this Author's files

 

Files Posted by Michael Lundgren
Updated   File Tags Downloads
(last 30 days)
Comments Rating
05 Oct 2012 Screenshot Access GPIO pins on BeagleBoard from Simulink This example shows how to access GPIO pins on the BeagleBoard using Simulink. Author: Michael Lundgren beagleboard, pandaboard, support package, gpio, beagle panda digital ..., arduino 23 3
  • 5.0
5.0 | 2 ratings
Comments and Ratings by Michael Lundgren View all
Updated File Comments Rating
10 May 2013 Raspberry Pi DC Motor H-Bridge Driver Block SFunction DC Motor Driver Block using Soft PWM of WiringPi Library Author: Joshua Hurst

Just what I have been searching for. Good job.

09 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

The pinmap for GPIO blocks is a nice touch.

Comments and Ratings on Michael Lundgren's Files View all
Updated File Comment by Comments Rating
23 May 2014 Access GPIO pins on BeagleBoard from Simulink This example shows how to access GPIO pins on the BeagleBoard using Simulink. Author: Michael Lundgren Mirko

Hi, I am a new user of Matlab/Simulink, for the first time, I would like to make a connection between a raspberry pi I2C and an Arduino using simulink. Someone could explain how this code and where do I pick up the data read?

There is a place in simulink Sfunction that creates a connection with I2C read and write?

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.

19 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 utya

hello. So i use i2cset and i2cget functions to recieva data from IMU. I use this code

function y = fcn()
%#codegen
persistent pf;
pf = coder.opaque('FILE *');
y = coder.nullcopy(uint8(0));
res = coder.nullcopy(uint8(zeros(1, 10)));
readOnly = c_string('r');
readCmd = c_string(['i2cget -y 1 0x53 0x32']);
if isequal(coder.target, 'rtw')
pf = coder.ceval('popen', coder.rref(readCmd), coder.rref(readOnly));
coder.ceval('fgets', coder.wref(res), 10, pf);
coder.ceval('printf', c_string('%s'), c_string(res));
end
end
function str = c_string(str)
% Convert MATLAB string to C-string by adding a string termination
% character
str = [str, 0];
end
But i dont know how to send data to Scope. Please help me.

12 Feb 2013 Access GPIO pins on BeagleBoard from Simulink This example shows how to access GPIO pins on the BeagleBoard using Simulink. Author: Michael Lundgren Ufuk Irmak

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

Contact us