Mathematical Model
Mathematical Model
movement along the x-axis (forward and reverse) and the other controlling the movement
along the y-axis (up and down). We'll consider a simplified model with basic dynamics and
control system equations.
System Dynamics:
Let x(t) represent the position along the x-axis, and y(t) represent the position along the y-
axis. The dynamics equations for the system can be expressed as follows:
Control System:
For a proportional-derivative (PD) control system, the control inputs can be determined by
the following equations
Combining the dynamics equations and control system equations, the complete system can
be represented as follows:
These equations form a system of coupled differential equations that describe the motion of
the whiteboard cleaner along both the x-axis and y-axis, taking into account the control inputs
and desired trajectories. Please note that the actual modelling might require additional
considerations, and this is a basic representation. Adjustments and refinements may be
necessary based on the specific characteristics of the whiteboard cleaner system.
Creating a complete mathematical model and control system for a whiteboard cleaner with
two stepper motors, including movement along both the x-axis and y-axis, involves defining
the system dynamics, control laws, and implementing them in MATLAB. Below is a
simplified MATLAB script to give you an idea. This script assumes a basic PD control
system for simplicity.
Mathlab code
Explanation:
The script defines symbolic variables for time t, positions x(t) and y(t), control inputs
ux(t) and uy(t), and parameters.
System dynamics equations and PD control laws are defined symbolically.
The control inputs are substituted into the dynamics equations.
Parameters and initial conditions are set.
The system of differential equations is solved symbolically using dsolve and
numerically using ode45.
Results are plotted to visualize the motion along the x-axis and y-axis.