Data Acquisition and Control Using Arduino & MATLAB
Data Acquisition and Control Using Arduino & MATLAB
• A microcontroller contains
– one or more processor
– memory and
– programmable input/output peripherals.
Monitor
Hard Disk
Pilot
Input : Output
Fuel flow rate for jet engine Velocity
Flight
Actuator
Engine
Figure 6 Open loop system for velocity control of flight jet
Flight Engine
Actuator
Set point : Velocity
Error
Controller
Output : Velocity
PV
Velocity :
Sensor
Flight Engine
Actuator
Set point : Velocity
Controller
Output : Velocity
Measured Velocity
Velocity :
Sensor
pinMode(a,8,'input');
pinMode(a,13,'output');
while(t<interv)
STATUS=digitalRead(a,8);
digitalWrite(a,13,STATUS);
t=t+passo;
end
Potentiometer PIN 1 : 5 V
R2
Vout = R2 / (R1 + R2) * Vin
• 210 = 1024
Time in sec