Question: Real-time embedded system There is a tank with a capacity of 1000 liters that is fed with an inlet flow generated by a pump and

Real-time embedded system There is a tank with a capacity of 1000 liters that is fed with an inlet flow generated by a pump and has an outlet through which the liquid comes out. Two flow sensors are available, one that measures inlet flow on a scale of 0 to 30 [l/s) and one that measures outlet flow on a scale of 0 to 15 [L/s], and both Sensors have an output of 0 to 5 M. Design a system that monitors the inlet and outlet flow, and calculates the level in the tank by integrating the difference between the inlet and outlet flow assuming the initial level is 0. In addition, the system must turn off the pump when the stored volume is greater than 900 liters and keep it off until the stored volume is less than 100 liters by changing the state of one bit (1 to turn the pump on and 0 to turn it off). Further, The system must be designed in two ways: using the timero of the PIC16F877A microcontroller and using an external clock connected to the external interrupt pin. The stored volume must be calculated every second. Show system code and schematic and may represent sensors with voltage sources. Real-time embedded system There is a tank with a capacity of 1000 liters that is fed with an inlet flow generated by a pump and has an outlet through which the liquid comes out. Two flow sensors are available, one that measures inlet flow on a scale of 0 to 30 [l/s) and one that measures outlet flow on a scale of 0 to 15 [L/s], and both Sensors have an output of 0 to 5 M. Design a system that monitors the inlet and outlet flow, and calculates the level in the tank by integrating the difference between the inlet and outlet flow assuming the initial level is 0. In addition, the system must turn off the pump when the stored volume is greater than 900 liters and keep it off until the stored volume is less than 100 liters by changing the state of one bit (1 to turn the pump on and 0 to turn it off). Further, The system must be designed in two ways: using the timero of the PIC16F877A microcontroller and using an external clock connected to the external interrupt pin. The stored volume must be calculated every second. Show system code and schematic and may represent sensors with voltage sources
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
