mio400s mechatronic design and simulation (mathematical modelling) session 6 - sensor modelling
TRANSCRIPT
![Page 1: MIO400S Mechatronic Design and Simulation (Mathematical Modelling) Session 6 - Sensor Modelling](https://reader036.vdocuments.site/reader036/viewer/2022082411/56649f315503460f94c4cc85/html5/thumbnails/1.jpg)
MIO400S Mechatronic Design and Simulation (Mathematical Modelling)
Session 6 - Sensor Modelling
![Page 2: MIO400S Mechatronic Design and Simulation (Mathematical Modelling) Session 6 - Sensor Modelling](https://reader036.vdocuments.site/reader036/viewer/2022082411/56649f315503460f94c4cc85/html5/thumbnails/2.jpg)
What is a Sensor?
It is a device that receives and responds to a signal or stimulus.
Examples
Position sensorTemperature sensorSpeed sensorVoltmeterMicrophone
![Page 3: MIO400S Mechatronic Design and Simulation (Mathematical Modelling) Session 6 - Sensor Modelling](https://reader036.vdocuments.site/reader036/viewer/2022082411/56649f315503460f94c4cc85/html5/thumbnails/3.jpg)
Sensor Components
A sensor usually consists of
• The Sensor• The conditioning circuit
Both need to be modelled
Inaccuracies need to be modelled
• Random errors• Systematic errors (bias)• Dynamic response
![Page 4: MIO400S Mechatronic Design and Simulation (Mathematical Modelling) Session 6 - Sensor Modelling](https://reader036.vdocuments.site/reader036/viewer/2022082411/56649f315503460f94c4cc85/html5/thumbnails/4.jpg)
Sensors Contd
Other characteristics of Sensors may need to be modelled
• Input Range• Sensitivity• Linearity• Hysterisis• Sample rate• Slew rate• Noise
![Page 5: MIO400S Mechatronic Design and Simulation (Mathematical Modelling) Session 6 - Sensor Modelling](https://reader036.vdocuments.site/reader036/viewer/2022082411/56649f315503460f94c4cc85/html5/thumbnails/5.jpg)
Sensors Contd
Dynamic response
Response to a changing signal is different to that of a steady state input
The response “lags” - this is due to energy storing components in the sensor.
Examples• Intertia• Capacitance• Inductance
![Page 6: MIO400S Mechatronic Design and Simulation (Mathematical Modelling) Session 6 - Sensor Modelling](https://reader036.vdocuments.site/reader036/viewer/2022082411/56649f315503460f94c4cc85/html5/thumbnails/6.jpg)
Sensors Contd
Types of Dynamic behavior of sensorsWeb resource http://www.science.smith.edu/~jcardell/Courses/EGR326/Modeling_1st2nd_order_systems.pdf
1. Zero order – responds instantaneously
2. First order – Example a Voltage sensor with an RC circuit as a filter
How do we models this – we will use the RC circuit example
The differential equation for this is DV/dT = (1/RC)[Vin - Vc]
![Page 7: MIO400S Mechatronic Design and Simulation (Mathematical Modelling) Session 6 - Sensor Modelling](https://reader036.vdocuments.site/reader036/viewer/2022082411/56649f315503460f94c4cc85/html5/thumbnails/7.jpg)
Sensors ContdThis equation is modelled in Xcos/Simulink as follows
Gain 1/RC Integrator
Feedback
Step Input V
dV/dt V
If this is plotted we see the RC curve
![Page 8: MIO400S Mechatronic Design and Simulation (Mathematical Modelling) Session 6 - Sensor Modelling](https://reader036.vdocuments.site/reader036/viewer/2022082411/56649f315503460f94c4cc85/html5/thumbnails/8.jpg)
Sensors Contd3. Second order – Example a mass spring damper
How do we models this
The differential equation for this is
Where Xddot is the acceleration A of mass mAnd Xdot is the Velocity V of the massAnd x is the displacement
![Page 9: MIO400S Mechatronic Design and Simulation (Mathematical Modelling) Session 6 - Sensor Modelling](https://reader036.vdocuments.site/reader036/viewer/2022082411/56649f315503460f94c4cc85/html5/thumbnails/9.jpg)
Sensors ContdThis is modelled in the following way
Produces a plot as follows
![Page 10: MIO400S Mechatronic Design and Simulation (Mathematical Modelling) Session 6 - Sensor Modelling](https://reader036.vdocuments.site/reader036/viewer/2022082411/56649f315503460f94c4cc85/html5/thumbnails/10.jpg)
DC Motor Simulation ExampleThe parameters of a measured DC motor as [resented inhttp://www.engin.umich.edu/group/ctm/examples/motor/motor.htmlAndhttp://vlabs.iitkgp.ernet.in/RCSLab/exp1.htmlwere Where Input V = Source voltageOutput I = current w = angular velocityParameters R = Resistance (1 Ohm) L = Inductance (0.1H) J = Inertia (0.01kg*m2/s2) K = Ke = Kt = EMF Force constant (0.05Nm/Amp) b = damping ratio (or viscous friction)0.1Nms
![Page 11: MIO400S Mechatronic Design and Simulation (Mathematical Modelling) Session 6 - Sensor Modelling](https://reader036.vdocuments.site/reader036/viewer/2022082411/56649f315503460f94c4cc85/html5/thumbnails/11.jpg)
DC Motor Contd 1
The motor torque, T, is related to the armature current, i, by a constant factor Kt. The back emf, e, is related to the rotational velocity by the following equations:
T = Ki
Back emf e = K w
ThereforeJ dw/dt + b w = KiL di/dt + Ri = V - Kw
![Page 12: MIO400S Mechatronic Design and Simulation (Mathematical Modelling) Session 6 - Sensor Modelling](https://reader036.vdocuments.site/reader036/viewer/2022082411/56649f315503460f94c4cc85/html5/thumbnails/12.jpg)
DC Motor Contd 2
![Page 13: MIO400S Mechatronic Design and Simulation (Mathematical Modelling) Session 6 - Sensor Modelling](https://reader036.vdocuments.site/reader036/viewer/2022082411/56649f315503460f94c4cc85/html5/thumbnails/13.jpg)
DC Motor Contd 3