Title : Feedback Control with Scilab and Arduino
Author : Varodom Toochinda, Ph.D
Format : e-book (.PDF)
Pages : 273
ISBN : 978-6-16-423248-8
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.
Free samples (Chapter 1,2, and Appendix A, B) can be downloaded by clicking on the links below. The whole e-book (USD 7.00) can be purchased via Paypal by clicking the “Buy Now” button. After payment received, the e-book will be emailed to you within 24 hours, with your email address imprinted and used as password to open the .pdf file. The e-book has to be manually processed for each purchase by the author. There is no automated email reply or download link.
Arduino Setup and Programming
Linear Continuous-time Systems and Feedback Properties
PID Controller Implementation
Model-based Feedback Control
SoftwareFCSA_sw.zip : all Scilab and Arduino examples used in the book.
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
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.