"Based on a source, book, or expertise in the specialized field, I need a solution to the question." Write an Arduino program to control water tank levels, The 1st Tank level is monitored by ultrasonic sensor No.1, connected to pin Ao on the Arduino board and it's linked to a valve via port 7 to regulate the valve's opening and closing. Similarly, 2nd tank is monitored by ultrasonic sensor No.2, connected to pin A1, and linked to a valve through port 8. Follow the rules in the Table below to control valve and motor activation via port 13 with a 500 ms delay: TRIYAH UN Water level Tank Tank 1<500 (Threshold) Tank 2<300 Tank 1==500 Tank 2<300 Tank 1<500 Tank 2==300 Tank 1=500 Tank 2=300 Motor ON ON SON OFF Valve 1 ON OFF ON OFF Valve 2 ON ON OFF OFF
"Based on a source, book, or expertise in the specialized field, I need a solution to the question." Write an Arduino program to control water tank levels, The 1st Tank level is monitored by ultrasonic sensor No.1, connected to pin Ao on the Arduino board and it's linked to a valve via port 7 to regulate the valve's opening and closing. Similarly, 2nd tank is monitored by ultrasonic sensor No.2, connected to pin A1, and linked to a valve through port 8. Follow the rules in the Table below to control valve and motor activation via port 13 with a 500 ms delay: TRIYAH UN Water level Tank Tank 1<500 (Threshold) Tank 2<300 Tank 1==500 Tank 2<300 Tank 1<500 Tank 2==300 Tank 1=500 Tank 2=300 Motor ON ON SON OFF Valve 1 ON OFF ON OFF Valve 2 ON ON OFF OFF
Chapter7: Relays
Section: Chapter Questions
Problem 9SQ: What is optoisolation?
Related questions
Question

Transcribed Image Text:"Based on a source, book, or expertise in the
specialized field, I need a solution to the
question."
Write an Arduino program to control water tank levels, The 1st
Tank level is monitored by ultrasonic sensor No.1, connected to
pin Ao on the Arduino board and it's linked to a valve via port 7
to regulate the valve's opening and closing. Similarly, 2nd tank
is monitored by ultrasonic sensor No.2, connected to pin A1,
and linked to a valve through port 8. Follow the rules in the
Table below to control valve and motor activation via port 13
with a 500 ms delay:
TRIYAH UN
Water level Tank
Tank 1<500
(Threshold)
Tank 2<300
Tank 1==500
Tank 2<300
Tank 1<500
Tank 2==300
Tank 1=500
Tank 2=300
Motor
ON
ON
SON
OFF
Valve 1
ON
OFF
ON
OFF
Valve 2
ON
ON
OFF
OFF
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps

Recommended textbooks for you


EBK ELECTRICAL WIRING RESIDENTIAL
Electrical Engineering
ISBN:
9781337516549
Author:
Simmons
Publisher:
CENGAGE LEARNING - CONSIGNMENT

Electricity for Refrigeration, Heating, and Air C…
Mechanical Engineering
ISBN:
9781337399128
Author:
Russell E. Smith
Publisher:
Cengage Learning


EBK ELECTRICAL WIRING RESIDENTIAL
Electrical Engineering
ISBN:
9781337516549
Author:
Simmons
Publisher:
CENGAGE LEARNING - CONSIGNMENT

Electricity for Refrigeration, Heating, and Air C…
Mechanical Engineering
ISBN:
9781337399128
Author:
Russell E. Smith
Publisher:
Cengage Learning