Submitted:
25 April 2025
Posted:
30 April 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Literature Review and Modeling of Variable Sampling Techniques
2.1. Most Common Variable Sampling Techniques
-
*Sampling Trigger: Sampling occurs when a certain error threshold is exceeded or a specific event is detected.*Advantages: This reduces unnecessary computation, saving energy and bandwidth. It only samples when needed, optimizing the control process.*Disadvantages: It may introduce unpredictability in system response due to the irregularity of sampling.*Applications: Networked control systems, IoT, and systems with limited communication bandwidth.
-
*Sampling Trigger: The sampling period adapts to the system’s dynamics or state. It changes based on error magnitude, system speed, or performance requirements.*Advantages: More efficient computation as the sampling rate increases when there are large changes in system dynamics.*Disadvantages: Requires real-time analysis of the system’s state, which can be computationally expensive.*Applications: Automotive systems, adaptive controllers, and energy-efficient systems.
-
*Sampling Trigger: The next sampling instant is predicted based on a model of the system, compensating for time delays.*Advantages: This approach can improve stability and control performance in systems with inherent delays.*Disadvantages: Requires an accurate model of the system, which may not always be available or reliable.*Applications: High-speed control systems, nonlinear systems, or systems with communication delays.
-
*Sampling Trigger: The sampling rate varies depending on the system state, such as velocity, acceleration, or other dynamic variables.*Advantages: Adjusting sampling based on system state allows for better responsiveness and performance, particularly in fast-changing systems.*Disadvantages: Requires real-time state estimation and may not be suitable for all systems.*Applications: Robotics, motion control, and aerospace systems.
-
*Sampling Trigger: Sampling is based on a mathematical model that predicts when the next sampling is required, optimizing for performance or energy usage.*Advantages: This approach minimizes unnecessary updates and is energy-efficient.*Disadvantages: It is more complex to implement, requiring an accurate model and real-time computations.*Applications: Embedded systems, low-power control applications, and systems with limited resources.
-
Bang-Bang Control (On-Off Control) [1]*Sampling Trigger: The control action switches fully ON or OFF based on a predefined error threshold.*Advantages: Simple and cost-effective with fast response, especially for systems where precise control is not necessary.*Disadvantages: Can cause oscillations or instability because of the lack of smooth control; not suitable for systems that require fine control.*Applications: Thermostats, motor drives, basic automation systems.
-
*Sampling Trigger: The sampling rate adapts based on the magnitude of the error, adjusting the pulse frequency to maintain control.*Advantages: Energy-efficient, as it dynamically adjusts the control signals according to the system’s needs.*Disadvantages: Less precise than Pulse Width Modulation (PWM), which can lead to less accurate control; requires careful tuning and design.*Applications: Power electronics, switching regulators, and embedded control applications.
| Technique | Sampling Trigger | Advantages | Disadvantages | Common Applications |
|---|---|---|---|---|
| Event-Triggered Control (ETC) | Sampling occurs when an error threshold is exceeded | Reduces unnecessary computations, saves bandwidth | May introduce unpredictable delays | Networked control systems, IoT, industrial automation |
| Self-Tuning Sampling (Adaptive Sampling) | Sampling time adapts based on system dynamics | Efficient computation, better transient response | Requires real-time analysis of system state | Automotive control, energy-efficient systems |
| Time-Delay Control (TDC) | Predictive model determines next sampling instance | Compensates for delays, improves stability | Requires an accurate model of the plant | High-speed or nonlinear control systems |
| State-Dependent Sampling | Sampling varies with system state (e.g., velocity, acceleration) | Adjusts to dynamic changes, improves performance | Requires real-time state estimation | Robotics, motion control, aerospace |
| Model-Based Variable Sampling | Uses a mathematical model to optimize sampling | Energy-efficient, minimizes unnecessary updates | Complex implementation, requires a reliable model | Embedded systems, low-power control applications |
| Bang-Bang Control (On-Off) | Control action switches fully ON or OFF based on threshold | Simple, cost-effective, fast response in some systems | Can cause oscillations, not precise | Thermostats, motor drives, basic automation |
| Pulse Frequency Modulation (PFM) | Pulse frequency adapts based on error magnitude | Energy-efficient, dynamic response adapts to needs | Less precise than PWM, requires careful design | Power electronics, switching regulators, embedded control |
2.2. Most Common Control Methods Modeling
2.2.1. Proportional-Integral-Derivative (PID) Control
2.2.2. Bang-Bang Control
2.2.3. Pulse Frequency Modulated (PFM) Control
2.3. Contribution: Proposed EDSC Method
3. Mathematical Modeling of EDSC
- is the maximum sampling period,
- C is a tunable constant that controls the rate of adaptation.
4. Embedded System Implementation of EDSC
4.1. Timer0-Based Sampling Period
- Increasing :→ Faster response, as larger errors lead to smaller (higher sampling frequency). However, too high may cause instability due to excessive sampling.
- Decreasing :→ Slower response, as the system updates less frequently even for large errors, leading to sluggish control.
- Setup the timer prescaler (256 as per Equation (2)).
- Measure error,
- Reload Timer0 as
- Adjust PWM duty cycle
- Wait for Timer0 interrupt and repeat step 2
- The sampling time decreases as the error increases
- The PWM duty cycle changes in discrete steps based on the sign of the error
- The plant response adapts dynamically, improving efficiency
5. Refined Transfer Function Approximation of EDSC with DC motor
5.1. Motor Dynamics and Control Law
- J is the moment of inertia (kg·m2),
- B is the viscous friction coefficient (N·m·s),
- K is the motor gain constant (rad/V·s),
- is the angular velocity (rad/s),
- u is the control signal (PWM or voltage applied to the motor).
5.2. Continuous-Time Approximation with Delay
6. EDSC Matlab Simulation and Lyapunov Stability Analysis
6.1. Matlab Simulation Setup and Results
- Case 1 (): The system achieved a 95% settling time of s with an average sampling interval of s. However, steady-state oscillations persisted, with rad/s, due to discrete control adjustments.
- Case 2 (): The average sampling interval reduced to s, improving the transient response with a reduced settling time of s. However, the steady-state error remained unchanged ( rad/s), indicating that primarily affects transient behavior.
6.2. Lyapunov Stability Analysis of the EDSC System
7. EDSC Implementation Design and Experimental Results
7.1. Implementation Setup
- External interrupt handler is responsible for counting the pulses generated by the motor shaft’s Hall sensor.
- Timer1 interrupt handler is responsible for measuring a one-second interval, during which the accumulated Hall sensor pulses are utilized to compute the real-time motor shaft speed. Consequently, the actual speed is updated at a fixed interval of one second. In the implemented prototype, the Hall sensor generates 8 pulses per revolution, thus, Timer1 is configured to trigger an interrupt every seconds (i.e., 125 ms), enabling a more frequent update of the actual speed.
-
Timer2, in conjunction with the Capture/Compare/PWM module, is used to generate the PWM control signal.
7.2. Experimental Results
- DO1 – Timer0 Interrupt: Toggles on every Timer0 interrupt event.
- DO0 – Timer1 Interrupt: Toggles on each Timer1 interrupt event.
- DO3 – Hall Sensor Event: Toggles upon every Hall sensor interrupt.
- DO4 – PWM Signal Monitoring: Records the PWM output for comprehensive signal analysis.
8. Conclusion
References
- Astrom, K.J.; Wittenmark, B. Adaptive Control. Dover Publications 1999. [Google Scholar]
- Heemels, W.P.M.H.; Johansson, K.H.; Tabuada, P. An Introduction to Event-Triggered and Self-Triggered Control. Proceedings of the IEEE 2012, 100, 232–252. [Google Scholar]
- Wang, X.; Lemmon, M.D. Self-Triggered Feedback Control Systems With Finite-Gain Stability. IEEE Transactions on Automatic Control 2009, 54, 452–467. [Google Scholar] [CrossRef]
- Shi, L.; Johansson, M.; Murray, R.M. Self-Tuning Sampling for Networked Control Systems. IEEE Transactions on Control Systems Technology 2017, 25, 316–323. [Google Scholar]
- Liu, X.; Wang, Z. Pulse Frequency Modulation for Digital Control of Power Electronics. IEEE Transactions on Power Electronics 2013, 28, 5106–5113. [Google Scholar]
- Zhang, H.; Chen, Y. Dynamic Adaptive Sampling in Embedded Systems. IEEE Embedded Systems Letters 2018, 10, 85–88. [Google Scholar]
- Tabuada, P. Event-Triggered Real-Time Scheduling of Stabilizing Control Tasks. IEEE Transactions on Automatic Control 2007, 52, 1680–1685. [Google Scholar] [CrossRef]
- Miskowicz, M. Event-Based Control and Signal Processing; CRC Press, 2014.
- Ogata, K. Modern Control Engineering, 5th ed.; Prentice Hall, 2010.
- Middleton, R.H.; Goodwin, G.C. Adaptive Control for Discrete-Time Systems. IEEE Transactions on Automatic Control 2009, 54, 785–791. [Google Scholar]
- Stefanovic, M.; Antsaklis, P.J. Feedback Control with State-Dependent Discrete-Time and Logic-Based Switching. IEEE Transactions on Automatic Control 2006, 51, 785–791. [Google Scholar]
- Lee, J.H.; Dahleh, M.A. Model-Based Adaptive Control for Discrete-Time Systems. IEEE Transactions on Control Systems Technology 2012, 20, 615–622. [Google Scholar]
- Bhalla, A.; Thakur, R.S. A Review on Model-Based Adaptive Control Techniques. International Journal of Control, Automation and Systems 2020, 18, 256–272. [Google Scholar]
- Astrom, K.; Hagglund, T. Advanced PID Control; ISA, 2006.
- Ziegler, J.; Nichols, N. Optimum settings for automatic controllers. Transactions of the ASME 1942, 64, 759–768. [Google Scholar] [CrossRef]
- Visioli, A. Practical PID Control; Springer-Verlag, 2006.
- Franklin, G.; Powell, J.; Emami-Naeini, A. Feedback Control of Dynamic Systems; Addison-Wesley, 1994.
- Robert, M. Spacecraft bang-bang control. Journal of Guidance, Control, and Dynamics 2003, 26, 657–663. [Google Scholar]
- Fuller, A. Nonlinear Control; Springer-Verlag, 1996.













Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).