Question regarding common ground between Nano, HC05, Hi-Link

Hi all,

I have been trying to make home automation by using HC05 Bluetooth Module, Arduino Nano and Hi-link 220VAC-5VDC converter.

The problem I am facing at the moment is I can not control the relay with Arduino when I feed the relay with an external power source(Hi-link) even though code and relay work perfectly if I feed the relay with Arduino itself. I have been searching for the cause and I have found that relay and Arduino should have a common ground.

My question is whether it is possible to connect -Vo DC output of Hi-Link to Arduino Ground. Please see the attached wire diagram. I could not find the same relay I am using. Mine is 5 V Relay Module with Optocoupler and it has (+5V, GND, Control) and (NO, C, NC). Control was missing in the fritzing relay, I showed it with the yellow wire from Arduino. I could not find the bulb, LED is actually a bulb.

I hope my first forum entry and question was clear and well-formatted. I am sorry if there are mistakes and thanks for the help people!

Yes, make the connection.

If you don't how do you suppose any current flows from the Arduino output, through the relay and back to the Arduino power supply? They are called 'circuits' because the electricity has to go round in a circuit back to where it started from.

Of course, you are right and I am aware of that but wanted to be sure that I won't harm nano board. Thank you very much!

It's a common mistake for people new to electronics.

I have some standard text I use about earth and 0V, it's not quite the answer to your question, which is why I didn't post it above, but I think you might find it useful. Here it is:

Earth and 0V
Earth (or ground) and 0V are often talked about as if they are the same thing. They are not, although, as they are often connected together, they can often be regarded as the same.
0V (zero volts, often incorrectly called “no volts”) is a point in a circuit designated by the circuit designer. 0V is the point to which all other voltages in the circuit are referenced unless otherwise stated. By definition 0V cannot be noisy. 0V is often but not always the most negative point in the circuit.
Earth is that muddy stuff outside. There is only one earth, if you are in any doubt, go outside and look around. In electrical terms when people say “earth” they really mean a connection to earth, often through the earth wire in the premises electrical distribution system.
An important thing to consider is that, while there is only one earth, there can be different connections to it and they are not all the same. In the UK (I don’t know about other countries) the earth connection in the building electrical distribution cabling is connected to the incoming neutral wire of the feed into the building before any fuse, meter or isolator. The neutral itself will be connected to the earth (the actual muddy stuff) at the distribution transformer. This means that an earth connection made to the building electrical earth might not be at the same voltage as an earth connection made to a metal stake pushed into the earth outside the building. As there is likely to be current flowing in the neutral back to the transformer then there will be a voltage drop across the neutral wire’s resistance. You can measure this voltage by putting a metal stake in the ground and measuring the voltage between the stake and the electrical system’s earth, most of the time this will be a few volts AC at most. However, if the transformer is hit by lighting then there is the possibility that the electrical system earth could be different from the earth outside the building by many tens or hundreds of thousands of volts, at least for a fraction of a second.
Some examples:
Something powered by batteries but not connected to anything else has a 0V but not an earth.
Many electronic devices, including Arduino, run off a power supply (the USB cable for example) that has its negative terminal connected to earth, so 0V and earth are connected and can be considered the same, and the supply is +5V (or whatever).
Many plug in mains adaptors do not have an earth connection (the earth pin is made of plastic), so anything running off them does not have an earth unless otherwise provided.
In my industry, telecoms, the positive pole of the supply is connected to earth, so the equipment runs on a -50V supply.
Analogue audio equipment typically runs off a split supply of -15V, 0V +15V, so it is the middle of the supply that is connected to earth, not the most negative part.

Actually, my confusion was whether -Vo in Hi-Link can be considered as ground or not. What comes into Hi-Link is an AC voltage, so no ground. The output is -Vo and +Vo. I thought maybe the ground point is inside of the package itself:

-2.5 ------------- Relay In
0 5V
+2.5 ------------- Relay In

Then I thought maybe I have to open the package to make a common ground.

Thank you for the info!

GROUND is the dirt you’re standing on.
Nothing you do is going to change it’s potential significantly.

So we use that as a reference for other +/- voltages
Usually (95% of cases) GROUND will be regarded as +/-0Vdc
but to make sure, we ‘tie’ the two together with low resistance (cable)