Rank: 28 based on 1483 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 38 0
  • 5.0
5.0 | 1 rating
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 257 47
  • 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 543 53
  • 5.0
5.0 | 11 ratings
08 Apr 2014 Screenshot Motor Shields Motor Shield Driver Blocks Author: Giampiero Campa arduino, motor shield, driver, servo, stepper 48 0
24 Apr 2013 Screenshot proesmans Optical flow using the Proesmans method Author: Giampiero Campa image processing, optical flow, mex file 16 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
17 Oct 2014 Arduino IO package: Slides and Examples Slides for the webinar: "Learning Basic Mechatronics Concepts Using the Arduino Board and MATLAB". Author: Giampiero Campa Jacob

I have the same problem as wayan.

I'm using the ArduinoIO pacaage on Matlab2014a/Linux Ubuntu 12.04, Arduino Deumilanove

=arduino('/dev/ttyUSB0')
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.

The power indicator LED of the Arduino is ON, reconnecting USB and restarting computer don't work. What could be the problem??

15 Oct 2014 Device Drivers Developing Simulink Device Driver Blocks: Step-By-Step Guide and Examples Author: Giampiero Campa Nancy

I'm trying to use the SD card library , I get this error when I build the model;

The call to realtime_make_rtw_hook, during the after_make hook generated the following error:
The build failed with the following message: make: *** No rule to make target `../../../../../../../../../../../../MATLAB/SupportPackages/R2014a/arduino-1.0.5/hardware/arduino/cores/arduino/HardwareSerial.h', needed by `HardwareSerial.o'. Stop.

Any help will be appreciated.

-Nancy

03 Oct 2014 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 Yuan, Xiwen

30 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 Soheil

30 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 Soheil

Hi Giampiero,

Thanks so much for this great package. I am willing to use an ArduinoUno board to control a step motor. I have installed the libraries and am able to run a DC motor with the motor_sim block without any problem. However, if I run the stepper_sim and try to run a Step motor, it will have a lot of delay until it realizes and executes the commands for its input. I also plugged in a good power supply for the motor shield since I thought it might be due to power shortage but it did not seem to fix the problem.

Bottom line is, The package works quite well with the DC motor but not working properly with the step motor.

Is there anything I am doing wrong?

Contact us