45
\$\begingroup\$

For the sake of not incorrectly connecting my power supply and damaging my board I'm going to ask a relatively dumb question. Is ground on my board the negative terminal on my battery? Explicitly Should I connect the ground to the negative terminal of the battery?

\$\endgroup\$
  • 1
    \$\begingroup\$ FYI, in case you ever need a split supply (e.g. +/- 4.5V supply for an op-amp powered by a 9V battery), here are some circuits for a buffered, low-impedance VGND at half the battery voltage: tangentsoft.net/elec/vgrounds.html \$\endgroup\$ – Eryk Sun Feb 14 '11 at 17:06
  • 3
    \$\begingroup\$ You can pick any point in a circuit and call it ground. It's just a label. Did someone else design the circuit? Did they label a point ground? Did they show how the battery or batteries are connected to it? \$\endgroup\$ – endolith Feb 15 '11 at 15:48
  • \$\begingroup\$ A shared ground/(-) terminal is especially important when 2 or more electronic devices are communicating with one another. \$\endgroup\$ – user115538 Jul 1 '16 at 6:41
29
\$\begingroup\$

Yes - just remember that your ground in that case will only be relative to the battery. If you go to connect this to another device (serial interface, etc) you need to link the ground lines so they're a common ground.

So long as it is isolated, you're fine.

\$\endgroup\$
  • 4
    \$\begingroup\$ As a bonus, if you have 2 batteries in series, you can use the middle terminal as ground and have a positive and negative supply from the 2 other battery terminals. \$\endgroup\$ – Robert Feb 14 '11 at 16:38
  • \$\begingroup\$ @Robert wouldn't that put the ground at non-zero potential? Is that ok? \$\endgroup\$ – Agos Feb 14 '11 at 23:58
  • 4
    \$\begingroup\$ @Agos - The potential is relative. Ground is an arbitrary designation. In a situation with split rails, as long as the voltage between the rails is fixed, the overall potential of the entire circuit can move up and down without any negative effects. \$\endgroup\$ – Connor Wolf Feb 15 '11 at 4:52
26
\$\begingroup\$

The ground pin on the microcontroller is two things: (1) a voltage reference, and (2) a current return.

Voltage Reference: Voltages don't really exist at single points, voltages are differences between points. This means that to speak sensibly about some single point in a circuit being at a given voltage, it has to be relative to some other point in the circuit. The common convention is to pick one node in the circuit and call it 'ground', and then all voltages are specified relative to that. With a microcontroller, the ground pin is the reference against which the inputs are 'measured' to determine whether they are high or low.

Current Return: All the current that flows into a micro-controller has to flow back out again somewhere. You're certainly aware that current flows into the +5V pin. Note that some current will flow out various pins as signal outputs, but then some outputs will actually admit current into the chip. Input pins can also source or sink current. Regardless, whatever current is left over is expected to flow out the ground pin of the micro-controller. In essence, the supply current is returned to the supply through the ground connection.

So when your power supply is a battery, it makes perfect sense to connect the (-) side of the battery to your system's ground pin. Notice that this isn't just a voltage reference though; it is also the supply return. In practical terms, what this means that the wire you use to connect (-) to the board's ground should be at the same size as the wire you use to connect (+) to the board's power input.

\$\endgroup\$
3
\$\begingroup\$

The potential is relative. Ground is an arbitrary designation. —Fake Name

This is something I worked out recently, only then realising why the hydraulic analogy was causing me cognitive dissonance. If a "voltage supply" was a waterfall, the image of a 12m top-to-bottom waterfall stuck in the middle of the sky, somewhere above my 5m waterfall which started 5m above the "ground" just didn't make any sense.

And then I tied the negative pin on my Arduino (powered by a 12V wall wart) to the drain on the transistors I was using to switch current to my LED strips and the circuit worked.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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