KS0549 Keyestudio DIY Electronic Watering Kit: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
Line 25: Line 25:


=== Control relay modules and water pumps ===
=== Control relay modules and water pumps ===
4.1 Control relay modules and water pumps <br>
Parameters:
* Working voltage 2.5V~6V
* The inner diameter of a water pipe is 6mm 
* When voltage is 5V, the height of the water pipe from the pump cannot be higher than 105cm
Description
The relay is an electric switch, and the water pump is a power device. We can pump water by the relay switch.
Test Code
<pre>
#define IN1 3
#define IN2 5
#define IN3 6
#define IN4 9
void setup() {
  pinMode(IN1, OUTPUT);
  pinMode(IN2, OUTPUT);
  pinMode(IN3, OUTPUT);
  pinMode(IN4, OUTPUT);
}
void loop() {
  digitalWrite(IN1, HIGH);
  digitalWrite(IN2, HIGH);
  digitalWrite(IN3, HIGH);
  digitalWrite(IN4, HIGH);
  delay(3000);
  digitalWrite(IN4, LOW);
  digitalWrite(IN3, LOW);
  digitalWrite(IN2, LOW);
  digitalWrite(IN1, LOW);
  delay(1000);
}
</pre>


=== Soil Humidity Sensor ===
=== Soil Humidity Sensor ===
Line 36: Line 81:
=== Display soil humidity values ===
=== Display soil humidity values ===


=== Automatic watering device ===  
=== Automatic watering device ===
 
 
 


== Resources ==
== Resources ==

Revision as of 10:58, 23 May 2022



Description

As for some plants lovers, they are keen on spending time in caring for their plants. Yet if they are busy in your work or entertainments, plants may wither by virtue of lacking water. To avoid this, we launched an automatic watering device with four humidity sensors and a water pump. It can water four plants pots. An equipped display screen can show the humidity value of soil.


Parameters

  • Working voltage: 5V
  • External power supply: DC 6-15V (recommended 9V)
  • DC output capability per I/O: 10 mA
  • 3.3V port output: 150 mA max
  • Size: 68*51*11mm3
  • Weight: 22.5g


Wiring Diagram

Project

Control relay modules and water pumps

4.1 Control relay modules and water pumps

Parameters:

  • Working voltage 2.5V~6V
  • The inner diameter of a water pipe is 6mm 
  • When voltage is 5V, the height of the water pipe from the pump cannot be higher than 105cm


Description

The relay is an electric switch, and the water pump is a power device. We can pump water by the relay switch.

Test Code

#define IN1 3
#define IN2 5
#define IN3 6
#define IN4 9

void setup() {
  pinMode(IN1, OUTPUT);
  pinMode(IN2, OUTPUT);
  pinMode(IN3, OUTPUT);
  pinMode(IN4, OUTPUT);
}

void loop() {
  digitalWrite(IN1, HIGH);
  digitalWrite(IN2, HIGH);
  digitalWrite(IN3, HIGH);
  digitalWrite(IN4, HIGH);
  delay(3000);
  digitalWrite(IN4, LOW);
  digitalWrite(IN3, LOW);
  digitalWrite(IN2, LOW);
  digitalWrite(IN1, LOW);
  delay(1000);
}



Soil Humidity Sensor

Automatic watering device

Control an LCD1602 display

Display character strings and values

Display soil humidity values

Automatic watering device

Resources

https://fs.keyestudio.com/KS0549