View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Auto flush

Be the first to rate this file! 28 Downloads (last 30 days) File Size: 702 KB File ID: #51956 Version: 1.0
image thumbnail

Auto flush



Demonstrates auto flushing using an ultrasonic sensor.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| Watch this File

File Information

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.

Required Products Simulink
MATLAB release MATLAB 8.5 (R2015a)
MATLAB Search Path
Other requirements arduino support package
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
18 Mar 2016 Techsource Technical Team

Hi Ihab, yes it is possible to run the S-Function on the Arduino UNO.

Comment only
15 Feb 2016 Ihab Al Khaldi

can i run this s function on arduino uno?

Comment only
13 Feb 2016 Ihab Al Khaldi

Do i need to specify data in the model explorer for the chart?

Comment only
06 Jul 2015 1.0

Change title

Contact us