Rank: 25 based on 1251 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 29 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 190 46
  • 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 481 51
  • 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 44 0
24 Apr 2013 Screenshot proesmans Optical flow using the Proesmans method Author: Giampiero Campa image processing, optical flow, mex file 22 1
  • 5.0
5.0 | 1 rating
Comments and Ratings by Giampiero View all
Updated File Comments Rating
15 Aug 2014 Arduino IO package: Slides and Examples Slides for the webinar: "Learning Basic Mechatronics Concepts Using the Arduino Board and MATLAB". Author: Giampiero Campa

Hi Colm, you should probably connect a good external power source to the motor shield.

Anyway, in the version1 of the motor shield library the stepper commands are blocking, so, while you can have 2 stepper connected, you can only operate them one at a time, not both at the same time.

I think (but I am not sure) that the same is true for the version 2 of the board.

Note that instead you can run up to 4 DC motor simultaneously since DC motor commands are not blocking.

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!

Comments and Ratings on Giampiero's Files View all
Updated File Comment by Comments Rating
07 Sep 2014 MIMOtool Multi Input Multi Output Systems Toolbox Author: Giampiero Campa Lahcen

06 Sep 2014 Arduino IO package: Slides and Examples Slides for the webinar: "Learning Basic Mechatronics Concepts Using the Arduino Board and MATLAB". Author: Giampiero Campa wayan

HELP...
I'm using Arduino UNO

when I enter

>> a=arduino('COM4');
Attempting connection .............
Warning: Unsuccessful read: A timeout occurred before the Terminator was reached.
Error using arduino (line 104)
Connection unsuccessful, please make sure that the board is powered on, running a sketch
provided with the package, and connected to the indicated serial port. You might also try
to unplug and re-plug the USB cable before attempting a reconnection.

16 Aug 2014 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa zhubo

1

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

Hi Colm, you should probably connect a good external power source to the motor shield.

Anyway, in the version1 of the motor shield library the stepper commands are blocking, so, while you can have 2 stepper connected, you can only operate them one at a time, not both at the same time.

I think (but I am not sure) that the same is true for the version 2 of the board.

Note that instead you can run up to 4 DC motor simultaneously since DC motor commands are not blocking.

15 Aug 2014 Arduino IO package: Slides and Examples Slides for the webinar: "Learning Basic Mechatronics Concepts Using the Arduino Board and MATLAB". Author: Giampiero Campa Colm

Hi,

I am using the ArduinoIO package and a Adafruit Motor Shield with 2 motors. I am having a little difficulty powering the motors. Is there anyway of having two simultaneous stepper motor outputs?

Thank you in advance

Contact us