Bang/Bang Control with a Hysteresis Deadband

Christopher Lum February 4, 2025
Video Thumbnail
Christopher Lum Logo

Christopher Lum

@christopherlum

About

Educational videos and tutorials covering optimization, control theory, mathematics, computer tools (Matlab/Simulink, Mathematica, Blender, etc.), unmanned aerial systems, and general engineering.

Video Description

In this video we improve on the bang/bang control algorithm by adding a hysteresis deadband. This makes the system more robust to actuator/control chatter at the cost of slightly increased over/undershoot. We investigate how to implement this controller in Simulink using Stateflow to build finite state machines. We also demonstrate how Stateflow is compatible with the Simulink Support Package for Arduino Hardware which allows us to execute Stateflow charts on an Arduino in real-time. Topics and timestamps: 0:00 – Introduction 4:12 – Hysteresis deadband concept 20:41 – Implementation using memory blocks 23:05 – Implementation as a finite state machine 29:41 – Simulink simulation model 44:18 – Simulink Arduino implementation 47:34 – Building controller in Stateflow 52:53 – Summary of pros/cons Lecture notes and code can be downloaded from https://github.com/clum/YouTube/tree/main/Controls36 All Control Theory videos in a single playlist (https://www.youtube.com/playlist?list=PLxdnSsBqCrrF9KOQRB9ByfB0EUMwnLO9o) #Control #ControlTheory All Matlab/Simulink videos in a single playlist (https://www.youtube.com/playlist?list=PLxdnSsBqCrrEU0dLSrTcl0-w9cVYKMTaF) #Matlab #Simulink You can support this channel via Patreon at https://www.patreon.com/christopherwlum or by clicking on the ‘Thanks’ button underneath the video. Thank you for your help!

You May Also Like