Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. Measure multiple voltages

Measure multiple voltages

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 2 Posters 51 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • MasMatM Offline
    MasMatM Offline
    MasMat
    wrote on last edited by
    #1

    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

    1. monitor the utility power (three phase. L1, L2, L3)
    2. monitor solar inverter power (single phase)
    3. monitor solar battery 48+ V
    4. monitor 12V power supply (DC-DC 48=>12V)
    5. send alarms if any are down & return back up
    6. 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!

    bazzokaB 1 Reply Last reply
    0
    • MasMatM MasMat

      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

      1. monitor the utility power (three phase. L1, L2, L3)
      2. monitor solar inverter power (single phase)
      3. monitor solar battery 48+ V
      4. monitor 12V power supply (DC-DC 48=>12V)
      5. send alarms if any are down & return back up
      6. 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!

      bazzokaB Offline
      bazzokaB Offline
      bazzoka
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • MasMatM Offline
        MasMatM Offline
        MasMat
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • bazzokaB Offline
          bazzokaB Offline
          bazzoka
          wrote on last edited by
          #4

          Never connect the grounds of the DC voltages together.
          Everything that does not have the same ground as the power supply of the RPi must be connected via optocouplers.

          1 Reply Last reply
          0
          • MasMatM Offline
            MasMatM Offline
            MasMat
            wrote on last edited by
            #5

            Check. Gotta redesign.
            I'll get optos on the AC-voltages and power the Rpi from the 48/12V ground source.

            Thanks for confirming my doubts.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            29

            Online

            11.7k

            Users

            11.2k

            Topics

            113.1k

            Posts


            Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • MySensors
            • OpenHardware.io
            • Categories
            • Recent
            • Tags
            • Popular