Feedback Control with Scilab and Arduiono

From the author of Scilab.ninja

  • Title : Feedback Control with Scilab and Arduino
  • Author : Varodom Toochinda, Ph.D
  • Format : e-book (.PDF)
  • Pages : 273
  • ISBN : 978-6-16-423248-8
Update : Sep 15, 23 It has been 7 years since the first appearance of this book. I now decide to make the whole book available for public. You can download it here.
The purpose of this e-book is to guide the audience from basic usage of Scilab and its simulation engine Xcos, to prototyping on an Arduino board. Since my research interests are in control systems area, the focus is on control analysis, design, simulation, and then implementation on a target board. Some materials are already scattered around my website scilab.ninja, while others, such as most topics on Arduino, are entirely new. To be readable as a book, all contents have to be wrapped to a cohesive story that can serve as classroom supplement. I actually use this book to accompany my engineering teaching at Kasetsart university.

The whole book can now be downloaded from the link above.

Book Outline

Software

FCSA_sw.zip : all Scilab and Arduino examples used in the book.

Software Tips

  • Close all graphic windows before you run the UNO Command Window. Otherwise, it could happen easily that UNO Command Window loses focus and froze. In such case, close all windows and close serial port by the following commands

    xdel(winsid());
    closeserial(unoh);
    

    and launch the UNO Command Window again.

  • If you receive strange characters, check the serial baud rate. At the beginning of the book, the baud rate is set as 9600 bps. Later on when the controller is more complicated, performance suffers with slow serial communication speed so it is increased to 115200 bps. This is specified in Serial.begin(). The rate of Serial Monitor or UNO Command Window must be changed to match.

  • In the Scilab stepplot() function (discussed on page 139 of Chapter 6), sampling period T is hard coded on the second line of the function. Make sure it matches the one used on Arduino to ensure correct time scale on the plot.

Facebook Page

www.facebook.com/fcsabook

Comments

Post a Comment

Popular posts from this blog

PIC24E I2C communication with MCP4725

An Introduction to Finite State Machine Design

A Note on Output Compare (PWM) Module of PIC24E