Usage of Output pin as ground?

Hi, I have Arduino uno board with ATMEGA 16 microcontroller. My main concern is as below.

I have 8 channel 5v- relay board which has Vcc as common supply for all 8 relays and you have to connect relay pin to ground in order to activate the individual relays. So can i use output pin as ground when it is low in order to activate the relay of relay board by reverse logic?

Generally ground should be common for all relays and you have to supply 5v Vcc to individual pins in order to activate the relay.

jainishpatel123:
I have 8 channel 5v- relay board which has Vcc as common supply for all 8 relays and you have to connect relay pin to ground in order to activate the individual relays. So can I use output pin as ground when it is low in order to activate the relay of relay board by reverse logic?

That is how it is done.

jainishpatel123:
Generally ground should be common for all relays and you have to supply 5v Vcc to individual pins in order to activate the relay.

Nonsense! :cold_sweat:

Not when you are using digital electronics to control the relays.

As long as the output pin is not getting too much current. Seems that it should not in this case.