0
\$\begingroup\$

I'm currently doing a project where I'm supposed to measure the current and the voltage from a solar panel and am unsure of how I should ground all the components in the circuit (since electrical engineering is not my field). I'm wondering whether I should connect all my devices' GND (ADC, Arduino, Hall sensor) to the minus side of the solar panel and load, or if I should connect the devices to the Arduino GND and the load plus voltage divider to the minus side of the solar panel (as picture #2 shows).

Since I've seen both versions in different Arduino battery measurement examples, I want to make sure I don't make any big mistakes and ruin components/measurements. Initially, I was going with version 1 (everything using the same GND in order to get the reference voltages correct), but after some googling I'm unsure. I apologize if my question is badly phrased. I'd also be glad if someone could explain why any/both of the measurement circuits are okay/not okay.

Version 1

Version 2

\$\endgroup\$
7
  • \$\begingroup\$ In both versions, where does the 5V come from? \$\endgroup\$ Commented Apr 5, 2019 at 12:02
  • \$\begingroup\$ From the Arduino (I should probably make that clear in the sketches). The ADC and the Hall sensor is be powered by the Arduino, and the Arduino in turn is powered by an external power source. \$\endgroup\$
    – OhmMyGod
    Commented Apr 5, 2019 at 12:33
  • \$\begingroup\$ Do you need very low noise measurement? \$\endgroup\$
    – Unknown123
    Commented Apr 5, 2019 at 16:22
  • \$\begingroup\$ I've taken a few precautions in order to get more accurate results (e.g. added low-pass filters, using the average of a number of samples). I just want to know how to properly ground the components in my measurement circuit. \$\endgroup\$
    – OhmMyGod
    Commented Apr 5, 2019 at 16:55
  • 1
    \$\begingroup\$ @Unknown123 Did not know about the mention feature (first time poster), thanks for notifying me of it! Your answer was helpful and I've marked it as an accepted answer \$\endgroup\$
    – OhmMyGod
    Commented Apr 7, 2019 at 17:00

1 Answer 1

1
\$\begingroup\$

The first is the correct one.

Take a look at its functional block diagram for a typical hall-effect switch, such as A3144 here.

A3144 Hall Effect Switch Functional Block Diagram

Or typical linear hall-effect sensor, such as OH49E here.

OH49E Hall Effect Sensor Functional Block Diagram

Hall-effect sensor/switch needs the same ground reference for its internal circuitry to be able to work.
The ADC from the voltage divider input needs the same ground reference as well.

If you're not working on very precise, accurate, low noise requirement, then it's good enough.
Else you might want to consider to separate the digital and analog ground, read more here

\$\endgroup\$

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.