Measure multiple voltages
-
I need help with my build. I had what I thought was a great idea but now I'm having doubts & regrets.
I want to
- monitor the utility power (three phase. L1, L2, L3)
- monitor solar inverter power (single phase)
- monitor solar battery 48+ V
- monitor 12V power supply (DC-DC 48=>12V)
- send alarms if any are down & return back up
- have six green leds on in a dash when all is clear - extra orange and red led for alarm states
The 240Vs each have a plug and a wall wart/phone charger plugged in.
I built a thru-hole pcb with 6 LEDs and voltage dividers for each power supply.
A Rpi Zero + MCP3008 reads the voltage dividers.
I connected the grounds (neg wires) on the chargers (4x) and hooked it to the pcb. I have leds light up. The 48v and 12v however don't light the leds (their gnd is not connected). The MCP3008 is not reading (the code could be wrong - just did a quick test).As I was thinking about this, I got worried.
Can I connect all the grounds together (4x wall plug, 48V and 12V) ?
If not, what would be a good way to accomplish what I'm trying to do? I would like to read at least the solar battery voltage (40-57V) beacause that changes. The others can be on/off-type.Any help or advice is appreciated!
-
I need help with my build. I had what I thought was a great idea but now I'm having doubts & regrets.
I want to
- monitor the utility power (three phase. L1, L2, L3)
- monitor solar inverter power (single phase)
- monitor solar battery 48+ V
- monitor 12V power supply (DC-DC 48=>12V)
- send alarms if any are down & return back up
- have six green leds on in a dash when all is clear - extra orange and red led for alarm states
The 240Vs each have a plug and a wall wart/phone charger plugged in.
I built a thru-hole pcb with 6 LEDs and voltage dividers for each power supply.
A Rpi Zero + MCP3008 reads the voltage dividers.
I connected the grounds (neg wires) on the chargers (4x) and hooked it to the pcb. I have leds light up. The 48v and 12v however don't light the leds (their gnd is not connected). The MCP3008 is not reading (the code could be wrong - just did a quick test).As I was thinking about this, I got worried.
Can I connect all the grounds together (4x wall plug, 48V and 12V) ?
If not, what would be a good way to accomplish what I'm trying to do? I would like to read at least the solar battery voltage (40-57V) beacause that changes. The others can be on/off-type.Any help or advice is appreciated!
If all grounds are already connected, then you should get along without potential separation. But this is usually not the case. I would do the analog measurement on the high side. A very simple variant would be to measure the voltage with an attiny13 and transfer the measured value serially via an optocoupler to the Rpi. And that for each circuit separately. Then there are no more ground connections.
-
If the grounds are connected: you mean I could connect them. Is it a bad idea?
When I really look at my goals, measuring is necessary only for the 48V line.
All the others I can get by with a on/off-info. Optocouplers for 240v data maybe?
The 48v and 12v probably have common ground considering the dc-dc converter? I'm not familiar with their design.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login