Giter Site home page Giter Site logo

martinvrican / automationshield Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gergelytakacs/automationshield

0.0 0.0 0.0 30.68 MB

Arduino library and MATLAB/Simulink API for the AutomationShield Arduino expansion boards for control engineering education.

License: Other

C++ 41.19% MATLAB 25.41% Objective-C 18.53% C 14.86%

automationshield's Introduction

AutomationShield Library Build Status CodeFactor Codacy Badge

About AutomationShield

Arduino, MATLAB and Simulink IDE for the AutomationShield expansion boards for control engineering education. You can read more about the AutomationShield project in our Wiki page.

Downloading and Installing the AutomationShield Library

I don't know Git

If you are not familiar with Git, please download the latest release of the library from the Releases section, as the production code download does not include certain dependencies. Search for the AutomationShield_vX.Y.tar file in the Assets, where vX.Y is the major and minor version number of the release. Do not use the Source Code files in the Assets, since these lack the dependent code as well.

I use Git

For those who wish to use Git, this repository contains submodules, therefore you should use git clone --recursive git://github.com/gergelytakacs/AutomationShield.git to get these as well. In case you have already cloned the repository, the submodule directories in src/lib/ may be empty. In this case, you have to initialize it by calling submodule update --init --recursive.

Interfaces

Arduino IDE

Open the Arduino IDE, click on the Sketch menu, and find the Include Library option. This opens another sub-menu from which you shold select Add .ZIP Library... that will open the file browser. Locate the renamed library .zip file and click Open.

MATLAB

Launch the installMatlabAndSimulink.m file from the root directory or the installForMATLAB.m from the matlab directory from the MATLAB command line. This adds and saves the correct paths to your MATLAB installation. The MATLAB API for ArduinoShield requires the installation of the MATLAB Support Package for Arduino Hardware.

Simulink

Launch the installMatlabAndSimulink.m file from the root directory or the installForSimulink.m from the simulink directory from the MATLAB command line. This adds and saves the correct paths to your MATLAB installation. The MATLAB API for ArduinoShield requires the installation of the Simulink Support Package for Arduino Hardware. The algorithmic blocks for the boards should appear in your library.

Library usage

This is a minimal summary for library usage. The harware library for a particular board is initialized by the board name followed by begin for example to initialize the OptoShield call:

OptoShield.begin();

The onboard sensor is read by calling the sensorRead() method, in case of the aformentioned OptoShield this would be

y=OptoShield.sensorRead();

returning the reading to the variable y. Finally, the actuator is set by the actuatorWrite() method, that is

OptoShield.actuatorWrite(u);

sets the actuator to u. Inputs and outputs are floating point numbers.

Please consult our Wiki page for more details and board specific instructions.

Examples

Arduino IDE

The library contains examples in the \examples\ directory that will also show up in the Examples collection of the Arduino IDE. You can access this by clicking File, Examples and look for the AutomationShield library. Examples showcase the use of the AutomationShield library in Arduino sketches.

MATLAB IDE

Worked examples for the AutomationShield MATLAB IDE are located in the \matlab\examples\ directory.

Simulink IDE

Worked examples for the AutomationShield Simulink IDE are located in the \simulink\examples\ directory.

automationshield's People

Contributors

gergelytakacs avatar peterchmurciak avatar tiborkonkoly avatar corleone68 avatar gabor7697 avatar rkoplinger avatar evavargova avatar raleh avatar kubojakub avatar lukasvadovic2 avatar martinlucan avatar per1234 avatar mgulan avatar codacy-badger avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.