Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write an arduino program to control a plant watering system. The system has two sensor , a soil Moisture sensor on analog input AO and
Write an arduino program to control a plant watering system.
The system has two sensor a soil Moisture sensor on analog input AO and a light sensor on analog input A It controls a pump on digital pin At night the ground may be slightly dry but we do not want to water beacuse this could cause mold, so the pump should be off. We only want to water during daylight hours.
This table describes the behaviour of the system
Moisture light level pump
Wet Dark Off
Dry Dark Off
Dry Light On
Wet Light Off
The moisture sensor will read less than V when the soil is dry, and more than V when the soil is wet.
The light sensor will read less than V at night, and more than V during the day
Write the C code to implement this behaviour
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