Wiring Diagram
Last updated
Last updated
The board is connected to 4 X AA Batteries. The Arduino is connected to a moisture sensor and relay via a breadboard. The Moisture sensor takes multiple readings from the soil each and when the moisture content drops below the pre-set value the relay is triggered sending power to the water pump. The power is cut again after 4 seconds.
The Arduino is the 'brains' of the system. Follow these steps below to wire up your circuit.
Since the battery holder does not have a male pin at the end, connect 1 X Male-Female jumper to the positive end (red line) of the breadboard and another 1 X Male-Female to the negaivite end (blue line) of the breadboard. This will create a positive feed to all the breadboard slots at the red line and a negative feed at the opposite blue line.
Connect a male-male jumper wire to the pin hole marked '5v' on the Arduino board and connect the other male end to the positive end on the breadboard. Depicted by the blue wire in the diagram.
Connect a male-male jumper from the GND on the Arduino to the negative (blue) hole on the breadboard. Depicted by grey wire on diagram
Connect a male-female jumper from the VCC pin on the relay to a positive hole on the breadboard. Depicted by purple wire on diagram.
Connect a male-female jumper from the GND pin on the relay to a negative hole on the breadboard. Depicted by brown wire on diagram.
Connect a male-male jumper from the COM pin on the relay to a positive hole on the breadboard. Depicted by pink wire on diagram.
The Water pump wires do not have any pins on them. To connect them you can use male-female jumpers.
Connect a male-female jumper from a negative hole on the breadboard to the black wire on the water pump. This is depicted by the black wire on the diagram. You can push the water pump black wire into the female slot of the jumper wire or you can snip the female end off and join the wires, please ensure to insulate the wire afterwards if you decide to snip them.
Connect a male-female jumper from a NO pin on the relay to the red wire on the water pump. This is depicted by the red wire on the diagram. You can push the water pump red wire into the female slot of the jumper wire or you can snip the female end off and join the wires, please ensure to insulate the wire afterwards if you decide to snip them.
Connect the soil moisture sensor to the sensor module using the jumper cable provided. The positive side of the sensor will be on the left side.
Connect a male-female jumper from the VCC pin on the soil moisture sensor module to a positive hole on the breadboard. Depicted by green wire on diagram
Connect a male-female jumper from the GND pin on the soil moisture sensor module to a negative hole on the breadboard. Depicted by orange wire on diagram
Connect a male-male jumper from the AO pin on the soil moisture sensor module to the A2 PIN on the Arduino board. Depicted by yellow wire on diagram.
Insert the batteries into the battery holder and ensure the switch is off.
Connect the Red wire from the battery holder to the positive jumper wire you added on step 1 above. You can either push the red wire into the female jumper or snip the wire. Remember to insulate if you snip.
Connect the Black wire from the battery holder to the negative jumper wire you added on step 2 above. You can either push the black wire into the female jumper or snip the wire. Remember to insulate if you snip.