Circuit Documentation
Summary
This circuit is designed to control a 5V mini water pump based on the moisture level detected by a SparkFun Soil Moisture Sensor. The system uses a 5V relay to switch the water pump on and off. Power is supplied via a USB plug.
Component List
SparkFun Soil Moisture Sensor
- Pins: VCC, GND, SIG
- Description: Measures the moisture level in the soil.
- Purpose in Circuit: Provides a signal to control the relay based on soil moisture.
USB Plug
- Pins: GND, D+, D-, 5V+, Out
- Description: Provides power to the circuit.
- Purpose in Circuit: Supplies 5V power to the relay, soil moisture sensor, and water pump.
5V Relay
- Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
- Description: Acts as a switch to control the water pump.
- Purpose in Circuit: Switches the water pump on and off based on the signal from the soil moisture sensor.
5V Mini Water Pump
- Pins: Positive pin, Negative pin
- Description: Pumps water when powered.
- Purpose in Circuit: Waters the soil when activated by the relay.
Comment
- Description: Placeholder for comments or notes in the circuit.
- Purpose in Circuit: Not applicable.
Wiring Details
SparkFun Soil Moisture Sensor
- VCC: Connected to the 5V+ pin of the USB Plug.
- GND: Connected to the GND pin of the USB Plug, GND pin of the 5V Relay, and the negative pin of the 5V Mini Water Pump.
- SIG: Connected to the In pin of the 5V Relay.
USB Plug
- 5V+: Connected to the VCC pin of the SparkFun Soil Moisture Sensor and the Common terminal and VCC pins of the 5V Relay.
- GND: Connected to the GND pin of the SparkFun Soil Moisture Sensor, GND pin of the 5V Relay, and the negative pin of the 5V Mini Water Pump.
5V Relay
- In: Connected to the SIG pin of the SparkFun Soil Moisture Sensor.
- GND: Connected to the GND pin of the USB Plug, GND pin of the SparkFun Soil Moisture Sensor, and the negative pin of the 5V Mini Water Pump.
- VCC: Connected to the 5V+ pin of the USB Plug.
- Common terminal: Connected to the 5V+ pin of the USB Plug.
- Normally Open: Connected to the positive pin of the 5V Mini Water Pump.
5V Mini Water Pump
- Positive pin: Connected to the Normally Open pin of the 5V Relay.
- Negative pin: Connected to the GND pin of the USB Plug, GND pin of the SparkFun Soil Moisture Sensor, and GND pin of the 5V Relay.
Code
There is no code provided for this circuit. If a microcontroller is added in the future, the code section will be updated accordingly.
