Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

COLD WATER HOT WATER ON/OFF ON/OFF 101 oo D 211 In this question, you are going to control the temperature of tap water by mixing

image text in transcribed
COLD WATER HOT WATER ON/OFF ON/OFF 101 oo D 211 In this question, you are going to control the temperature of tap water by mixing hot and cold water. Desired temperature is adjusted with a potentiometer Temperature should be in the range of 20C and 75C therefore min reading (ov) of potantiometer should map to 20C and max reading (5) of potantiometer should map to 75C Temperature of the water can be measured with a ANALOG temperature sensor. Formula relating output voltage of the sensor and temperature is given below T-15V Water channels can be controlled with selonoid valves. If you apply HIGH voltage to the valve is opened. If you apply low voltage, the valve will turn be closed You are required to write a program to keep water temperature at sensor location at desired temperature read from potentiometer. The control code should be very simple. Le. If temperature is less than the desired temperature open valve of hot water and close valve of cold water. Otherwise, do the opposite You are allowed to use any library functions (analogRead, digitalReads, delay, etc.) Assume that Temperature Sensor is connected to AD Potantiometer is connected to A1 You should decide the pins that valves to be connected

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven Databases In Seven Weeks A Guide To Modern Databases And The NoSQL Movement

Authors: Luc Perkins, Eric Redmond, Jim Wilson

2nd Edition

1680502530, 978-1680502534

More Books

Students also viewed these Databases questions

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago