MATLAB

ARDUINO SIMULINK


 FREE DOWNLOAD  eBook  size: 8.0 MB

 
FREE   DOWNLOAD examples  size: 2 MB

Ver. 1.0 / 2013        eBooks only for WINDOWS!

 Nr.10                       (no further obligation!)

BUY

 

In this eBook (96 pages) we will show you step by step, how you can program the ARDUINO UNO and MEGA with SIMULINK.

ARDUINO MEGA

In the first chapter we show the difference between a traditional programming with C and the new method of model-based development, simulation and automatic code genration.

 

 A very short introduction in SIMULINK shows how you can create a small model and simulate.

With these basics, we start in the third chapter in the control technology. We model a DC motor, designing a digital PID controller to simulate all together. From the controller and the discrete transfer function, we generate the software for the ARDUINO UNO and let it run on the target hardware.

ARDUINO SIMULINK

In the two following chapters, we will show the possibilities and characteristics of automatic code generation with SIMULINK and the differences between ARDUINO UNO and MEGA.

So far we had only one sampling rate and all signals were of the DOUBLE data type. In the following chapter we will concentrate on Multirate (several different sampling rates) and the data type focus on INTEGER. Continue to learn SIMULINK and some weaknesses that will be improved in the last chapter with Stateflow in modeling and simulating of complex control. The last chapter explains the State machines and their use wit STATEFLOW in the model-based development for ARDUINO.

 

START
  Model-based software development
  This eBook
  Software for this eBook
  Copyright

----- SIMULINK and ARDUINO ---------------
Architect and bricklayer
Technical Drawing
SIMULINK
Programming in C
UML

----- Modeling in SIMULINK --------------
What is MATLAB and SIMULINK
Toolboxen and Blooksets
Requirements
System Architect
Subsystem
UML is at the end
The block clock generator
The Digital Output block
LED on resistor
Simulation
Software clocked
What does -1 mean?
Simulation of the clocked software
Double = Boolean

----  Code generation for ARDUINO ------
Installation
Library
Prepare model for SW generation
RUN on ARDUINO
RUN on ARDUINO
Digital Input
Feedback and clock generator
Feedback in ARDUINO

----  ARDUINO MEGA can do more ------------
ARDUINN MEGA 2560
SIMULINK and external mode
Settings on the MEGA
Change parameters
TASK Overrun

----- DC-Motor Controller ---------------------
Introduction
DC-Motor
Equivalent circuit diagram
Mathematical description
Motor data
Simulink Model
Hierarchy
Malfunction
Analogue control
Controller on ARDUINO
Discrete PID controller
Discrete PID controller and DC motor
Discrete PID controller on ARDUINO
Continuous transfer function
Discrete transfer function DC motor
Discrete function on ARDUINO
Controller + system on ARDUINO
How large is the manipulated variable?
Limit regulating variable
Control value limitation
Results with limits
Control motor via PWM
PWM in SIMULINK
PWM on the simulation model
PWM and ARDUINO
Target of the model-based development

----- Complex logic -------------------
Introduction
Water tank
Signal Builder
Valve
Masking I
Masking II
Discrete integrator
Height sensor
Software and drivers
Library
Algebraic Loop
Driver settings
Data Type
Physical quantities and integers
Can calculate ARDUINO integer
Control system
Multirate
Temperature control
Three sampling times
Event

 ---- STATEFLOW -----------------------
Different behaviour modes
Switch LED on and off
States in Stateflow
Transitionen
Conditions
Output in Stateflow
Simulation Stateflow
Substate
Counter and condition
Subcharted or Grouped
Internal and external transition
Subsystem on and off
Junction
IF-ELSE with Junction
Parallel States
Event control
Event as output
That's not all!

THE END
 




 


email@ebookaktiv.de


2003-2020
   ebooksmechatronic.com

Last Update: 03.04.2020


5 Euro


-----------------
eBooks      prices
-----------------

  1     5,0€
  3    10,0€

  6    15,0€
  9    20,0€

ALL download
30,0€
---------------
      
  

ARDUINO

UNO

Mikrocontroller

Simulink

MATLAB

Sketch

Board

Elektronik

Sensor

Motor

A/D-Wandler

Interrupt

Timer

RTOS

RTW

TargetLink

Double

INT16

C-Code

Generierung