Skip to content

Arduino Code for 4 channel Plant Watering System Seems Wrong #6

@polyphonic13

Description

@polyphonic13

The document has the following conditional for the control of the water pumps:

if (value>550)
    digitalWrite(IN1, LOW);
}
else
{
    digitalWrite(IN1, HIGH);
}

This will turn on the pump if the value from the moisture sensor goes below 550. However, when reading values from the moisture sensor, it appears that lower values are more moist, e.g. the ambient air has a reading of 573 and water a reading of 264. If this is correct, the conditional should be reversed, where a lower values turns on the pump and higher value shuts it off.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions