How to measure solar panel voltage using arduino?

Click For Summary

Discussion Overview

The discussion revolves around measuring solar panel voltage using an Arduino, particularly in high-voltage solar systems where the voltage can reach up to 351Vdc. Participants explore various methods for safely measuring voltage and current, while considering the implications of system grounding and the need for stable power supply for the Arduino.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested, Experimental/applied

Main Points Raised

  • Some participants express concerns about the high voltage levels in solar systems and the challenges of measuring voltage safely, particularly when the solar negative is significantly below system ground.
  • One suggestion is to use the output from an inverter to avoid dealing with raw high voltage DC, while others argue that this could lead to unnecessary power consumption.
  • Participants discuss the feasibility of using high-voltage resistive attenuators and difference amplifiers for voltage measurement, but caution about the dangers involved.
  • Some propose using a dedicated PV panel to power the Arduino and instrumentation, while others suggest using a buck converter to step down the voltage safely.
  • There is a discussion about using opto-isolation for communication between the Arduino and the measurement circuit to enhance safety.
  • One participant mentions the potential of using a current-to-frequency converter to safely measure voltage, generating pulses proportional to string voltage.
  • Another participant introduces the Adafruit INA219 current sensor breakout as a potential solution for measuring current, discussing its specifications and the implications of using different resistor values for scaling measurements.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method for measuring solar panel voltage and current. Multiple competing views and approaches are presented, with ongoing debate about safety, efficiency, and measurement accuracy.

Contextual Notes

Participants highlight various limitations, including the need for high-voltage components, the challenges of accurately measuring voltage under different conditions, and the potential for power loss in measurement devices. There are also unresolved questions about the effects of changing resistor values on measurement accuracy.

Who May Find This Useful

This discussion may be useful for individuals interested in solar energy systems, Arduino projects, and safe measurement techniques in high-voltage environments.

  • #31
solvejskovlund said:
When I started this thread I was hoping someone would respond "Hey, this device does exactly what you need". I'd prefer if there was a device that could be bought ready.
Must not have looked too hard...
Here's the first one I found, I'm sure there's many others:
https://www.dataq.com/products/di-4730/

Try a google search like "500V data acquisition".
 
Engineering news on Phys.org
  • #32
solvejskovlund said:
Powering with one panel.... Voc=38,1V; within the range of a buck converter. Even two panels will be within the range. I'm not sure if that is a good idea though - it will unbalance the strings as it will load one panel in one string.
If the isolated instrumentation required 20mA at 15V, an ideal switching buck converter running on 38 volts input, would only need a current input of 20 mA *15V / 38V = 8 mA. That is an unbalance, but I don't see it as a big problem.

By accumulating charge at a rate of say 100 uA in a capacitor, from the string-voltage sensing-chain, that charge can be dumped through an opto-isolator, which eliminates much of the instrumentation current that must come from the lowest isolated panel.

When the light level is low, the controller should reduce power by sleeping. Your system should allow all relays to open, automatically switching the PV panels into the low-power configuration.
 
  • #33
solvejskovlund said:
When I started this thread I was hoping someone would respond "Hey, this device does exactly what you need".
Rive said:
the only safe solution I can suggest is to get a DMM with remote (bluetooth?) connection.
Google 'DMM serial', it's still not late...
1675316525807.png

TP4000ZC is kind of 'dirt cheap'.

I still suggest to go for bluetooth, though. Good insulation, lot harder to mess up.:doh:

On second thought, I suggest to stop. The difficulty to do this safely and effectively just does not fits you.
 
Last edited:

Similar threads

Replies
6
Views
4K
Replies
28
Views
4K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 31 ·
2
Replies
31
Views
5K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 13 ·
Replies
13
Views
6K
  • · Replies 153 ·
6
Replies
153
Views
17K
  • · Replies 17 ·
Replies
17
Views
16K
  • · Replies 88 ·
3
Replies
88
Views
12K
  • · Replies 9 ·
Replies
9
Views
4K