Rank: 30 based on 1452 downloads (last 30 days) and 34 files submitted
photo

Giampiero Campa

E-mail
Company/University
The Mathworks Inc.
Lat/Long
33.857662, -118.29316

Personal Profile:

I am from Taranto, South East Italy. I received Master (EE) and Ph.D. (Robotics) from the University of Pisa, and I have been with the Flight Control Group, (MAE Dept), at West Virginia University until 2008. I am now finally and proudly working for The MathWorks.

Professional Interests:
Nonlinear Control, Systems Modeling and Simulation, Robotics

 

Watch this Author's files

 

Files Posted by Giampiero View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
30 May 2014 Screenshot What is the best way to implement my algorithm in Simulink ? Eight ways to implement an Extended Kalman Filter as a Simulink block Author: Giampiero Campa extended kalman filte..., simulink, sfunction, system object, sfunction builder, legacy code tool 53 0
09 May 2014 Screenshot Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa arduino, device, driver, encoder, dc motor, stepper motor 213 45
  • 4.94118
4.9 | 19 ratings
09 Apr 2014 Screenshot Arduino IO package: Slides and Examples Slides for the webinar: "Learning Basic Mechatronics Concepts Using the Arduino Board and MATLAB". Author: Giampiero Campa arduino, mechatronics, class, motor, analog, digital 406 48
  • 5.0
5.0 | 10 ratings
08 Apr 2014 Screenshot Motor Shields Motor Shield Driver Blocks Author: Giampiero Campa arduino, motor shield, driver, servo, stepper 41 0
24 Apr 2013 Screenshot proesmans Optical flow using the Proesmans method Author: Giampiero Campa image processing, optical flow, mex file 24 1
  • 5.0
5.0 | 1 rating
Comments and Ratings by Giampiero View all
Updated File Comments Rating
25 Nov 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

IMPORTANT UPDATE: For MATLAB 2013b you will need to apply a fix for the S-Function builder (otherwise an incorrect argument list will be generated for a block that has no inputs).

Go to the following page: http://www.mathworks.com/support/bugreports/1006532
scroll down to the bottom, and follow the instructions therein (it basically
comes down to saving the zip file, opening winzip as administrator, and
unzipping the file in the MATLAB folder (e.g. C:\Program Files\MATLAB\2013b).

Also note that another issue in MATLAB 2013b causes high memory usage on the
Arduino side, and thus prevents the upload of models that have many blocks
and/or high memory requirements. This might sometimes be a problem for boards
with smaller memory footprint like the Uno or Nano.

17 Jun 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

Glen,
send me the files with the exact procedure that you are following and the error you are getting, i'll see if i can do anything.

30 May 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

Mark,
you need to scroll up to see the upper part of the text. Maximizing the window might also help a little.

29 Apr 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

I'm glad that's working, Nathan.
Thanks Phil, that's great!

19 Apr 2013 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa

Phil, i think the variable "lcd" needs to be defined as a global. Try to define it in the libraries pane, after all the includes, see page 16 of the guide.

Comments and Ratings on Giampiero's Files View all
Updated File Comment by Comments Rating
31 Jul 2014 Arduino IO package: Slides and Examples Slides for the webinar: "Learning Basic Mechatronics Concepts Using the Arduino Board and MATLAB". Author: Giampiero Campa Sina

Hi. Thanks for your help.
Actually, I haven't used that Arduino.m file since it didn't suggest to do so. Why should I change this?
Actually, the arduino libraries I have for the motor and encoder, have some functions integrated which can call some pin values as inputs and defines the PWM voltage values as outputs in order to be able to control the torque on the motor. I am not sure how to use this package to control torque instead of speed. Thanks again.

30 Jul 2014 Arduino IO package: Slides and Examples Slides for the webinar: "Learning Basic Mechatronics Concepts Using the Arduino Board and MATLAB". Author: Giampiero Campa MathWorks Classroom Resources Team

Hi Sina,
have a look at the section of the readme.txt file that concerns customizing the package. The bottom line is that you will have to rewrite parts of the sketch running on the arduino and maybe slightly modify the arduino.m class file.

Hope that helps.

28 Jul 2014 Arduino IO package: Slides and Examples Slides for the webinar: "Learning Basic Mechatronics Concepts Using the Arduino Board and MATLAB". Author: Giampiero Campa Sina

Hi Everyone,
I am using the arduino with a prototype shield to run and control a DC motor (wit built in encoder) which is driven by a pololu motor driver (http://www.pololu.com/product/1451).
Now, I am trying to use the Arduino IO package to be able to use matlab or simulink with my system.
Both the motor and the encoder have libraries available. I was wondering how I can use the IO package with matlab and have those libraries and commands integrated as well?
Thank you for your support in advance.
Sina

28 Jul 2014 Arduino IO package: Slides and Examples Slides for the webinar: "Learning Basic Mechatronics Concepts Using the Arduino Board and MATLAB". Author: Giampiero Campa Fyraj, Fyraj

14 Jul 2014 Arduino IO package: Slides and Examples Slides for the webinar: "Learning Basic Mechatronics Concepts Using the Arduino Board and MATLAB". Author: Giampiero Campa ALVAREZ, EDWIN

vishnu vardhan before that, have you uploaded any sketh on arduino for Matlab Communication? example Adiosrv.ino or Adioes.ino? and have you copy the files arduino.m and install arduino in current folder or matlab?

Contact us