Auto flush

Demonstrates auto flushing using an ultrasonic sensor.

You are now following this Submission

Editor's Note: This file was selected as MATLAB Central Pick of the Week

I went into one of the toilets in a mall. Saw the auto flushing and couldn't stop thinking about it. So here it is.
This model illustrates auto flushing in the men’s toilet (or women's). When it detects human presence, it will flush once before peeing begins. When the process is completed, it will flush again. Flushing is represented by a rotating DC motor.

Cite As

Techsource Technical Team (2026). Auto flush (https://www.mathworks.com/matlabcentral/fileexchange/51956-auto-flush), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Stateflow in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Communities
Version Published Release Notes Action
1.0.0.0

Change title