Arduino SA
Search…
Wiring Diagram

Diagram

How the circuit works?

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.

Wiring the power

  1. 1.
    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.
  2. 2.
    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.
  3. 3.
    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

Wiring the Relay

  1. 1.
    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.
  2. 2.
    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.
  3. 3.
    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.

Wiring the Water Pump

The Water pump wires do not have any pins on them. To connect them you can use male-female jumpers.
  1. 1.
    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.
  2. 2.
    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.

Wiring the Soil Moisture Sensor

  1. 1.
    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.
  2. 2.
    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
  3. 3.
    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
  4. 4.
    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.

Adding the Battery

  • 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.

You are now ready to upload the code

Last modified 14d ago