กลับไปหน้ารวมไฟล์
smart-irrigation-e457a2-en.md
void setup() {
Serial.begin(9600);
pinMode(A0,INPUT);
pinMode(12, OUTPUT);
pinMode(13, OUTPUT);
}
void loop() {
int val=analogRead(A0);
Serial.println(val);
if(val<350){
digitalWrite(12, LOW);
digitalWrite(13, HIGH);
delay(500);
}
if(val>1000)
{
digitalWrite(12,HIGH);
digitalWrite(13,LOW);
}
}

EXPANDED TECHNICAL DETAILS

Automated Agricultural Hydration

The Smart Irrigation system optimizes water usage by sensing soil moisture levels and automating the delivery of water only when necessary.

  • Moisture Thresholding: Integrates a Soil Moisture Sensor (analog). The Arduino samples the moisture level (0-1023) and compares it against a pre-set "Dryness threshold."
  • High-Power Actuation: When the soil reaches the critical dry-point, the Arduino triggers a 5V/12V Relay, which in turn activates a water pump.

Safety and Logic

  • Rain-Delay Override: (Advanced version) Includes a guide on adding a "Rain Sensor." If the Arduino detects active rain, it overrides the irrigation cycle to prevent over-watering and save water resources.

ข้อมูล Frontmatter ดั้งเดิม

title: "Smart irrigation"
description: "Home automation"
author: "stt4236"
category: ""
tags:
  - "home automation"
  - "communication"
  - "internet of things"
views: 1947
likes: 3
price: 699
difficulty: "Intermediate"
components:
  - "1x cardboard"
  - "1x Arduino UNO"
  - "1x LED (generic)"
  - "1x Buzzer"
  - "1x SparkFun Soil Moisture Sensor (with Screw Terminals)"
  - "1x SparkFun Solder-able Breadboard - Mini"
  - "1x Tape, Foam"
  - "1x Jumper wires (generic)"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "3af9d827171bc9d0b42704b22175b90c99eb64c29a7d57eb36ff7c33d3bcb26b"
encryptedPayload: "U2FsdGVkX1/vBkCgDJyhswhWdVIFhFXbyCbkgBDdQ8MktxJxuF1/gtGepFd5oDfMbuD/cslUSdqycSwJzkgER1Re6786DpU50ARIN/wM8V8="
seoDescription: "Build a Smart irrigation system for Home automation using Arduino to automate plant watering efficiently."
videoLinks: []
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/smart-irrigation-e457a2_cover.jpg"
lang: "en"