Question
Write a UML and sequence diagram on a liquid level detection system for closed tanks. System consists of a: MCU, Analog front-end (AFE), LCD display,
Write a UML and sequence diagram on a liquid level detection system for closed tanks. System consists of a:
MCU, Analog front-end (AFE), LCD display, transducer and ultrasonic sensor.
Diagram should show the following:
1.- Systems starts, LCD display shows a welcoming message.
2.- User inputs diameter of tank
3.- MCU sends 8Mhz frequency to the AFE which divides this frequency by 2 (4Mhz) and sends it to the tank via the transducer
3.- AFE waits to receive echo back from sent signal (If echo = 0, medium is water, if echo = 1, medium is air). This is where detection happens. (This is an iterative process, as the device is moved up and down to detect the liquid level, constant signals will be sent and received until detection happens)
4.- AFE signals MCU that detection happened, MCU sends data to the LCD to display message that liquid level was detected and MCU triggers ultrasonic sensor to detect height from liquid level to surface of tank
5.- Volume of liquid is calculated with the height obtained and the initial diamater inputted by user
6.- MCU sends data to the LCD to display the volume of liquid in tank.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started