# Needing to support connection

**URL:** <https://forum.core-electronics.com.au/t/needing-to-support-connection/23170>\
**Category:** Arduino\
**Created:** [29 August 2025 02:34 UTC](https://forum.core-electronics.com.au/t/needing-to-support-connection/23170 "2025-08-29T02:34:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dieu300571](https://avatars.discourse-cdn.com/v4/letter/d/3e96dc/32.png) [@Dieu300571](https://forum.core-electronics.com.au/u/Dieu300571)\
**Post date:** [29 August 2025 02:34 UTC](https://forum.core-electronics.com.au/t/needing-to-support-connection/23170/1 "2025-08-29T02:34:23Z")

</div>

![0e67680ea954220a7b452](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/7/7034d5cfb2c69304a1a81da9fc54a0a866bdc49e.jpeg)

 ![6bc4508191db1a8543ca1](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/d/df56c66eee9282b6a915b6e87fb3457393b6a6ef.jpeg)

 ![f1e288e749bdc2e39bac3](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/4/4005c28bfe082a1cc0fe10615b419ae0480317ff.jpeg)

Hi everyone,

I’m a beginner with Arduino and currently working on a small project. The idea is as follows:

- Use a **color sensor** to detect the green color of leaves.

- Once the green color is detected, the **distance sensor** becomes active.

- If the measured distance is less than **0.3m** , the Arduino will send an output signal to open the **solenoid valve** and activate the **pump** , which will draw water from the tank and spray it through a nozzle.

The **main items I currently have** are:

- Color sensor

- Distance sensor

- Arduino

- Solenoid valve

- Pump

- Relay

👉 My problem is:

1. I don’t know how to properly connect these items together so that they work reliably.

2. I’m not sure if I already have all the necessary components, or if I’m missing something important.

I would really appreciate it if someone could guide me on how to connect these items and let me know if I need any additional components to make the system work safely and effectively.

Thanks a lot for your help! 🙏

---

<div class="post-metadata">

**Author:** ![ahsrab292840](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@ahsrab292840](https://forum.core-electronics.com.au/u/ahsrab292840)\
**Post date:** [30 August 2025 20:55 UTC](https://forum.core-electronics.com.au/t/needing-to-support-connection/23170/2 "2025-08-30T20:55:44Z")

</div>

You will need to add these components to your setup.

- External 12V power supply (for pump + solenoid)

- Flyback diode (1N4007 or similar) across solenoid and pump (to protect electronics from voltage spikes when turning off coils)

- Relay module with optocoupler (if you don’t already have one, this ensures isolation between Arduino and high-power devices)

- MOSFET module (optional) – instead of a relay, MOSFETs are better for pumps/valves because they’re faster and last longer.

---

<div class="post-metadata">

**Author:** ![James46717](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@James46717](https://forum.core-electronics.com.au/u/James46717)\
**Post date:** [30 August 2025 21:29 UTC](https://forum.core-electronics.com.au/t/needing-to-support-connection/23170/3 "2025-08-30T21:29:46Z")

</div>

In any project you should create a diagram of what you want to do. Can be simple sketch or complex schematic. Then decide, figure out, how you are going to do it and what devices you will/may need.

Divide the project into separate parts and test each. ie the Arduino, how to program it, how the interfaces work, the limitations it has, the power it needs. The colour sensor, determine what it needs to work, what interface does it use, what power does it need, will it need something between it and the Arduino and how the Arduino will produce results once it is connected.

But it all starts with documentation. Write down what you want to do and how you plan to do it, then test each part of it separately, get each working then combine them together one at a time. And solve any problems that arise.

Simply write down the power needs of the devices you have purchased and what interface they have and how they can be connected to the Arduino and how the software on the Arduino will access them.

Regards  
Jim

---

<div class="post-metadata">

**Author:** ![James46717](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@James46717](https://forum.core-electronics.com.au/u/James46717)\
**Post date:** [30 August 2025 22:03 UTC](https://forum.core-electronics.com.au/t/needing-to-support-connection/23170/4 "2025-08-30T22:03:07Z")

</div>

From the parcel list; I see you have purchased a 12V plug pack. All the other electronic devices work with 5V.

The Arduino can be powered from a PC USB port. The 5V out of the Arduino can be used to power the colour sensor and the ultrasonic sensor because they consume little power. **BUT** the relay module needs about 70mA to hold the relay active and there are two of them. You should NOT use the Arduino 5V out to power this. You will need a 5V power supply.

You could use a DC to DC converter like that listed below. Connect 12V from your plug pack as input to the DC to DC convertor. **WARNING:** The power out of this device is adjustable. **DO NOT** connect it anything before checking it is set to 5V. The display on the device allows you to check this.

> **[20W Adjustable DC-DC Buck Converter with Digital Display](https://core-electronics.com.au/20w-adjustable-dc-dc-buck-converter-with-digital-display.html)**
>
> This is a 20W adjustable DC-DC buck converter module with digital display. It is based on LM2596 3A step-down voltage regulator and supports an input of 4~40V DC...

What is the final design for this, will it always be connected to a PC ??  
Protection of these delicate electronic devices is important, some sort of case you should also look at.

Cheers  
Jim

---

<div class="post-metadata">

**Author:** ![Robert93820](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@Robert93820](https://forum.core-electronics.com.au/u/Robert93820)\
**Post date:** [31 August 2025 00:42 UTC](https://forum.core-electronics.com.au/t/needing-to-support-connection/23170/5 "2025-08-31T00:42:06Z")

</div>

Add on to  
James46717 reply above  
Make sure the “parent” 12V supply will provide the TOTAL current plus a bit for headroom. That is a 12V 500mA supply would probably not be anywhere near enough.  
Cheers Bob
