0
\$\begingroup\$

I am using an Arduino (actually an onboard co-processor AVR on an x86-based SBC) to control 120 Neopixel LEDs. Obviously, the power requirements of this many LEDs requires a separate supply.

I can't just use a single large power supply for both, because the SBC requires 11-15V if using the DC input connectors. The Neopixel strings require 5V.

I believe that I should connect one of the ground pins of the SBC to the ground terminal of the large power supply that the Neopixel is using so that communications works properly and won't damage the Neopixels somehow.

However, is it possible that doing this could somehow hurt the SBC? That would be bad, because it was about $350. I suspect there will be no issue, but I wanted to ask engineers, because again, $350.

The way I understand it is that if there's no path to the positive terminal on the PSU, that there's no potential between the SBC and the PSU's ground, but it does provide a common "floor" so that the two devices can safely interact. But can the connection to the data input on the Neopixels from the SBC potentially be dangerous in this scenario?

If there's a risk of damage, I suppose I can get a voltage regulator to bring the 5V PSU up to 12V and then power the SBC from it.

\$\endgroup\$
2
  • \$\begingroup\$ Which SBC, which power supply, how are they connected? Most likely, you need to connect data and ground of AVR to control the LEDs, and supply and ground to power them, so they would be connected. \$\endgroup\$
    – Justme
    Commented Mar 29, 2021 at 20:23
  • \$\begingroup\$ SBC is a LattePanda Alpha 864, PSU is this basic 5V 12A from Amazon: amazon.com/gp/product/B074YHN8D1/… The plan for connection is simply pin 6 digital output from AVR to the data input on the Neopixel strip, 5V PSU connected directly to positive and ground on the Neopixels, and potentially one of the ground terminals of the AVR to the same ground point on the PSU as the Neopixels. \$\endgroup\$
    – Mike C
    Commented Mar 29, 2021 at 20:26

2 Answers 2

2
\$\begingroup\$

Your board outputs logic levels like +5V or 0V to control the LEDs, these are voltage, and voltage is relative, it is the difference in electric potential between two points. You can't have a voltage if you have only one wire, you need two. One of them is often called "ground" or "0V" and it is used as a voltage reference relative to which all other voltages are measured.

If you don't connect grounds, then the receiving chip on the other end has no way to know about that reference, so it will have no idea what voltage it is receiving. So it won't work.

can the connection to the data input on the Neopixels from the SBC potentially be dangerous in this scenario?

If you don't connect the grounds together then both devices will be at random potential relative to each other, which means that if current has to flow it will flow via what's connected, which is the IO pins of your chip, instead of just through copper. This is when it fries.

You would worry about connecting grounds if they were at different potentials, for example if you have long cables between devices, and these devices are earthed to different places in different buildings. Also if both devices are earthed in a way that creates a long enough loop of Earth wire in the building that is closed by your ground connection, because when lightning strikes in the vicinity it will induce current into conductive loops. This is why Ethernet uses isolation transformers, for example.

But that would not be the case if you use two power supplies powered from the same socket. No worries in your case.

\$\endgroup\$
3
  • \$\begingroup\$ This is exactly the in-depth explanation I was looking for to feel safe about it. Thank you! I understand voltage potential and logic levels, but didn't know what exactly happens when I connect two separate ground planes. They are on the same earth path. Much of the details about electricity are a mystery to me still. That's why I'm a software engineer. I can do something wrong there, and it probably won't start a fire. Probably. \$\endgroup\$
    – Mike C
    Commented Mar 29, 2021 at 20:40
  • 1
    \$\begingroup\$ Hehe, ok here's a software analogy, I mean it's like pointer arithmetics. Ground is the pointer to the array, voltage is the index. What's p[x] if there is no p? \$\endgroup\$
    – bobflux
    Commented Mar 29, 2021 at 20:48
  • 1
    \$\begingroup\$ p is always something, you just don't know what it is if you haven't initialized it yourself. Perfect analogy. \$\endgroup\$
    – Mike C
    Commented Mar 29, 2021 at 20:52
1
\$\begingroup\$

Connecting the grounds between two systems that are in physical close proximity to each other is normal and done frequently.

If however your systems are far apart (on the order of 20+ ft.) , then you'll want to use some sort of isolation system to allow them to communicate while maintaining separate grounds.

\$\endgroup\$
2
  • \$\begingroup\$ Thank you. There will be several feet of wire between the systems, but nowhere near 20 or even 10. \$\endgroup\$
    – Mike C
    Commented Mar 29, 2021 at 20:27
  • 1
    \$\begingroup\$ That will be fine. \$\endgroup\$
    – Aaron
    Commented Mar 29, 2021 at 20:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.