Water Pump¶
Overview¶
The water pump is also a motor, which converts the mechanical energy of the motor or other external energy through a special structure to transport the liquid.
Required Components¶
In this project, we need the following components.
It’s definitely convenient to buy a whole kit, here’s the link:
Name |
ITEMS IN THIS KIT |
LINK |
---|---|---|
Elite Explorer Kit |
300+ |
You can also buy them separately from the links below.
COMPONENT INTRODUCTION |
PURCHASE LINK |
---|---|
- |
|
- |
|
- |
Wiring¶
Note
To protect the Power Supply Module’s battery, please fully charge it before using it for the first time.
Schematic Diagram¶
Code¶
Note
You can open the file
25-pump.ino
under the path ofelite-explorer-kit-main\basic_project\25-pump
.Or copy this code into Arduino IDE.
Attach the tubing to the pump and position it in the basin. Once the code is successfully uploaded, the water pump will turn on and remain active for five seconds. When conducting this experiment, please ensure that the circuit is kept away from water to prevent any potential short circuits.
Code Analysis¶
The motor can be driven by providing a voltage difference between the copper sheets at both sides of the motor.
digitalWrite(motorBI, HIGH);
digitalWrite(motorFI, LOW);