Features
- Eliminates the need of messy jumpers and breadboards, connect all sensors and modules with ease!
- Control the relays both with Crowduino interfaces and with normal ones, the board is not limited to crowduino only.
- Power the board with single 12V power supply, no need seperate power supply for the arduino.
- 6 interfaces for sensors, one interface for water switch and one interface for motor or pump.
- on-board power switch to control the power.
Specifications
- Weight: 900g
- Size of the box: 25cm x 19cm x 5.7cm
- Length of water pipe: 5m.
- Length of 3 pin crowtail cable: 50cm.
Package list
- Crowtail- soil moisture sensors x 4
- Crowtail- smart pump shield x 1
- 5.5M water pipe x 1
- DC 12V adapter x 1
- DC12V Four-Way Valve x 1
- Water pump x1
- 50cm 3 pin crowatail cable x4
- برد آردوینو آپشنال بوده و در صورت نیاز بایستی تهیه فرمایید
Wiki & External links
————————————————————–
// set all moisture sensors PIN ID
int moisture1 = A0;
int moisture2 = A1;
int moisture3 = A2;
int moisture4 = A3;
// declare moisture values
int moisture1_value = 0;
int moisture2_value = 0;
int moisture3_value = 0;
int moisture4_value = 0;
// set water relays
int relay1 = 3;
int relay2 = 4;
int relay3 = 5;
int relay4 = 6;
// set water pump
int pump = 2;
void setup() {
// declare relay as output
pinMode(relay1, OUTPUT);
pinMode(relay2, OUTPUT);
pinMode(relay3, OUTPUT);
pinMode(relay4, OUTPUT);
// declare pump as output
pinMode(pump, OUTPUT);
// declare the ledPin as an OUTPUT:
Serial.begin(9600);
}
void loop() {
// read the value from the moisture sensors:
moisture1_value = analogRead(moisture1);
moisture2_value = analogRead(moisture2);
moisture3_value = analogRead(moisture3);
moisture4_value = analogRead(moisture4);
// check which plant need water
// and open the switch for that specific plant
if(moisture1_value<=450){
digitalWrite(relay1, HIGH);
}
if(moisture2_value<=450){
digitalWrite(relay2, HIGH);
}
if(moisture3_value<=450){
digitalWrite(relay3, HIGH);
}
if(moisture4_value<=450){
digitalWrite(relay4, HIGH);
}
// make sure there is at least one plant that needs water
// if there is, open the motor
if(moisture1_value<=450 || moisture2_value<=450 || moisture3_value<=450 || moisture4_value<=450){
digitalWrite(pump, HIGH);
}
// let it water the plant for 5 seconds
delay(5000);
// turn the pump off
digitalWrite(pump, LOW);
// go each switch and turn them off
digitalWrite(relay1, LOW);
digitalWrite(relay2, LOW);
digitalWrite(relay3, LOW);
digitalWrite(relay4, LOW);
// wait 5 minutes and repeat the process
delay(300000);
}
نقد و بررسیها
هیچ دیدگاهی برای این محصول نوشته نشده است.